Best answer

Getting Error While Trying To Use "API Request (Beta)" Vision - Could not parse the JSON body of your request

  • 5 January 2024
  • 1 reply
  • 67 views

Hi,

As the title says, I’m getting an error message saying when I try to have OpenAI Vision extract text from a receipt:

“We could not parse the JSON body of your request. (HINT: This likely means you aren't using your HTTP library correctly. The OpenAI API expects a JSON payload, but what was sent was not valid JSON. If you have trouble figuring out how to fix this, please contact us through our help center at help.openai.com.)”

Here are some screenshots of the set up:

 

 

Here is the error message after running it:

 

Thank you for your time!

icon

Best answer by Troy Tessalone 5 January 2024, 03:08

View original

1 reply

Userlevel 7
Badge +14

Hi @AI Amplifi 

TIP: You can use ChatGPT to troubleshoot your JSON.

You are missing a “ after the :

 

Reply