The Burp Suite User Forum was discontinued on the 1st November 2024.

Burp Suite User Forum

For support requests, go to the Support Center. To discuss with other Burp users, head to our Discord page.

SUPPORT CENTER DISCORD

ToolType.valueOf No enum Constant

Tyler | Last updated: May 24, 2023 01:16PM UTC

Hi, I get the following error when trying to use the valueOf() method of ToolType: No enum constant burp.api.montoya.core.ToolType.Scanner With the following code: ToolType.valueOf("Scanner"); I get the same error for any other Enum value of ToolType. Am I using this correctly or is this a bug? Thank you

Hannah, PortSwigger Agent | Last updated: May 24, 2023 03:22PM UTC

Hi It looks like ToolType.valueOf() is case-sensitive. If you provide it with "SCANNER" instead of "Scanner", you should find that it works as intended. We'll look into changing this behavior, to make this case-insensitive.

Tyler | Last updated: May 24, 2023 03:50PM UTC