OPENAI Error 400 - None is not of type 'object'

Hi all,

I was building an OPENAI API workflow, where the user would input data and the API would get the data from OpenAI.

The workflow works perfectly when a static data is passed through, however when I am sending a dynamic data - it is showing an error 400

A clarification. When I change the API call to get only 1 input query solved- it works, however, when I try to send the entire conversation log - this error pops up

{ “error”: { “message”: “None is not of type ‘object’ - ‘messages.0’”, “type”: “invalid_request_error”, “param”: null, “code”: null } }

I am not sure, what went wrong here.

Adding screenshots around my setup.

This is my call setup

This is my workflow for storing user input

This is my workflow for the API call of the data stored

This is the step-by-step Debugger’s setup (I have been trying multiple times to send a text through)

This is the error flagged.

Can someone please help me here? I am not sure what I am doing wrong.

This topic was automatically closed after 70 days. New replies are no longer allowed.