ChatGPT node - Cannot read properties of undefined (reading 'error')

Describe the problem/error/question

Hi, for some weird reason OpenAI node won’t execute. Even when It’s completely detached from the execution pipe - manual trigger immediately results with mentioned error. I though I fixed the issue by adding simple 1:1 data mapper node before the OpenAI mode, however it helped only for few executions.

What is the error message (if any)?

Cannot read properties of undefined (reading ‘error’)

I’ve set logs to debug and still this is the only message

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version: pulled latest docker image today before posting this error
  • Database : SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): docker
  • Operating system: ubuntu

Hello @Hubert_Olkiewicz, welcome to community!
Is your OpenAI in free plan? If it’s yes, try to make a charge to the OpenAI. Because OpenAI free plan have more limitation than charged (pay-as-you go) plan

@cutecatcode Thanks for the response.

You were right, dumb of me, I was out of credits.

However still the thing that misled me was the message itself. I went thru the docs and it was explicitly written that in case of insufficient balance I would get explicit error message.

For the future, is there any way of logging every HTTP request/response?

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