Burp Suite User Forum

Create new post

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

Thank you for your help!

You must be an existing, logged-in customer to reply to a thread. Please email us for additional support.