OpenAI - Request failed with status code 520

Describe the problem/error/question

Sometimes (~30% of the time) I receive an error message from OpenAI causing to return “null”. I thought that might be a sporadic error and that is why I implemented a loop after the error occurs and returns “null”. After waiting for 1 minute the OpenAI node is triggered again. Apparently it does not fix the issue.

I tested with different 3.5 models aswell. Error is sporadic the same.

What is the error message (if any)?

Issues:
- There was a problem loading the parameter options from server: “Request failed with status code 520”

Please share your workflow

Share the output returned by the last node

“null” after the error.

  • n8n version:
    1.18.2
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
    n8n cloud
  • Operating system
    Win 11

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hey @olip,

Welcome to the community :raised_hands:

I have taken a quick look and 520 seems to be a special Cloudflare error which you can find more information on here: 520 Web server is returning an unknown error it looks this is one of those errors where you wouldn’t be able to resolve it and neither would we as it looks to be an issue between Cloudflare and the backend OpenAI server.

Hello @Jon,

thanks for your help!

We deactivated Cloudflare to check, what will happen. The issue still occurs but the error-message is different:

Is this maybe an OpenAI error that I cant fix?

Best,

Hey @olip,

Yeah the issue won’t be on your side the 520 is an issue between Cloudflare and the host in this case it would be OpenAI. The new error though could be something else does the node work if you try and run it?

Hey @Jon,
Well, I had 6 runs now and 2 of them were again empty because of the error.

Was it the same 520 error?

@Jon
"Issues: - There was a problem loading the parameter options from server : “Can’t connect to n8n.”

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