[Report bug] N8n version 1.84.1 bug openai

Describe the problem/error/question

openai is not working on node ai agent

What is the error message (if any)?

When I run it in test mode it works, but when I put it into production it gives an error, however when I use the grop AI it works normally


Message erro
Bad request - please check your parameters

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.)


Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • **n8n version:184.1
  • **Database :POSTGRES
  • n8n EXECUTIONS_PROCESS setting (default: main):
  • Running n8n via (Docker):
  • **Operating system:UBUNTO 20.04

Hey @Ruan17

1.84.1 is a Pre-release, meaning bugs are expected.
Try to stick with Releases.

On the GitHub page you can see the latest releases and pre-releases:

But I’m running some tests here with 1.84.1 and I’ll make sure to report this bug, if I can replicate it.

:point_right: If my reply answers your question, please remember to mark it as a solution.

Hey @Ruan17

After testing, I wasn’t able to replicate your issue.
Maybe it’s a problem with your credentials or your installation.

Here’s my workflow if you’d like to copy & paste to your instance an see if it runs. I worked fine here.

Did you test in production? Because in test mode it works but in production

Yes, running fine:


.
I would still recommend to stick with the latest release, instead of using pre-release versions.

I tested today the latest version but it doesn’t work either

I did new tests and with node in openai in version 1.0 it works normally, but version 1.2 does not work


version n8n
image


and I tested another version of n8n, and it has the same problem, that’s the only way I could solve it

I wrote this reply while you were writing yours :sweat_smile:

EDIT:
It seems to be bug, then.

Click the “Report bug” button on the sidebar.

If possible, share the report link here. I’ll try to replicate your issue again, to contribute to the report.

Thanks for the report I will take a look in the morning and see if I can reproduce it

1 Like

Thanks, @Jon

Is it already on GitHub?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.