-
Notifications
You must be signed in to change notification settings - Fork 10
Possible input parsing error #7
Description
Hi Ric,
First thanks for sharing your work with the community!
Error: Error processing AI findings: A JSONObject text must begin with '{' at 1 [character 2 line 1]
I've compiled version 1.1 and load it okay in Burp Pro (latest version to date).
- Added a gemini API key
- Loaded on of your default prompts from the app
- Set a req/response payload from Burp proxy
- Now the following was in the addons output:
[2025-10-22 06:04:26] processAuditRequest: Selected Model: gemini/gemini-2.0-flash-lite, Determined Provider: gemini, Model Name for API: gemini-2.0-flash-lite
[2025-10-22 06:04:26] getApiKeyForModel: Determined provider: gemini for model: gemini/gemini-2.0-flash-lite
[2025-10-22 06:04:26] processAuditRequest - Request length: 8044, Response length: 0, Combined contentToChunk length: 8046
[2025-10-22 06:04:26] Estimated PromptTokens=242, ContentTokens=2012, Total-Tokens=2254, Total-Requests=1
[2025-10-22 06:04:26] sendToAI: Selected Model: gemini/gemini-2.0-flash-lite, Determined Provider: gemini, Model Name for API: gemini-2.0-flash-lite
[2025-10-22 06:04:26] Using Gemini API Key: ...d9k
[2025-10-22 06:04:26] Final URL for connection: https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash-lite:generateContent?key=
[2025-10-22 06:04:26] -Sending POST to https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash-lite:generateContent?key=
[2025-10-22 06:04:26] --Body: {"contents":[{"parts":[{"text":"You are an expert web application security researcher spec... (oneliner)
[2025-10-22 06:04:42] API Response: { "candidates": [ { "content": { "parts": [ { "tex... (oneliner)
[2025-10-22 06:04:42] AI Response: {
"candidates": [{
"avgLogprobs": -0.70560883219298931,
"finishReason": "STOP... (oneliner)
[2025-10-22 06:04:42] extractContentFromResponse: Selected Model: gemini/gemini-2.0-flash-lite, Determined Provider: gemini
[2025-10-22 06:04:42] Raw response: {"candidates":[{"avgLogprobs":-0.70560883219298931,"finishReason":"STOP","content":{"r... (oneliner)
[2025-10-22 06:04:42] Raw content: Okay, let's analyze this HTTP request for potential security vulnerabilities. This is a... (oneliner)
[2025-10-22 06:04:42] Extracted JSON: Okay, let's analyze this HTTP request for potential security vulnerabilities. This i... (oneliner)
[2025-10-22 06:04:42] All chunks processed for the request.
***The was in the error output tab for the addon:
Error processing AI findings: A JSONObject text must begin with '{' at 1 [character 2 line 1]