FlowiseAI / Flowise

Drag & drop UI to build your customized LLM flow
https://flowiseai.com
Apache License 2.0
28.04k stars 14.44k forks source link

Chatflows LLM running with server error: "Connection error." #1980

Closed vinamrajais closed 3 months ago

vinamrajais commented 4 months ago

Describe the bug Flowise OpenAI is throwing "Connection error" with normal "hello" prompt.

To Reproduce Steps to reproduce the behavior:

  1. Created a simple Flowise APP as below image

  2. See error 2024-03-18 12:34:20 [INFO]: ⬆️ POST /api/v1/internal-prediction/b60182b2-f13b-45ce-a8cf-1f6692fbfa03 2024-03-18 12:34:20 [INFO]: [server]: Chatflow b60182b2-f13b-45ce-a8cf-1f6692fbfa03 added into ChatflowPool 2024-03-18 12:36:10 [ERROR]: [server]: Error: Connection error. Error: Connection error. at OpenAI.makeRequest (/Users/vinamra/Documents/SW Projects/LLMs/Flowise/node_modules/.pnpm/openai@4.28.4/node_modules/openai/core.js:292:19) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async /Users/vinamra/Documents/SW Projects/LLMs/Flowise/node_modules/.pnpm/@langchain+openai@0.0.14/node_modules/@langchain/openai/dist/chat_models.cjs:650:29 at async RetryOperation._fn (/Users/vinamra/Documents/SW Projects/LLMs/Flowise/node_modules/.pnpm/p-retry@4.6.2/node_modules/p-retry/index.js:50:12)

Expected behavior Connection should be established successfully

Setup

I have tried some more ChatFlows, but all returning with same Error. Created new API KEY in OpenAI as suggested and using the same to connect.

Am I missing something very basic here?

HenryHengZJ commented 4 months ago

maybe proxy issue, or was openai server down?

vinamrajais commented 4 months ago

@HenryHengZJ openAI server is fine as able to execute queries directly and from other sites who uses openAI APIs. I am not running any proxy or VPN.

Is there a way to check if nothing is wrong with flowise setup?

vinamrajais commented 3 months ago

Its working now. Issue was with OpenAI APIs access quota, I have to buy a plan to able to use APIs.