Flowise icon indicating copy to clipboard operation
Flowise copied to clipboard

[BUG] Issue for connect to Azure Open AI "LLM run errored with error: "Connection error.""

Open Bramiproject opened this issue 1 year ago • 14 comments

Any issue for connect to Azure Open AI LLM run errored with error: "Connection error."

im installed in docker container

image

image

Please you're advices

Bramiproject avatar Oct 19 '23 07:10 Bramiproject

can you double check if you can make connection to Azure using API outside of Flowise? Docs - https://docs.flowiseai.com/chat-models/azure-chatopenai

HenryHengZJ avatar Oct 20 '23 11:10 HenryHengZJ

Previously I ran no problem, but now there is an issue, is this related to the Docker environment?

Bramiproject avatar Oct 20 '23 12:10 Bramiproject

Hi @HenryHengZJ can you run flowise using proxy ?

Bramiproject avatar Oct 27 '23 07:10 Bramiproject

+1 The chat models and chains can be modified easily to use proxy, but those which relies on langchain is really kinda annoying, I have to change pkg in sub dist…

On Fri, Oct 27, 2023 at 03:28 Bramiproject @.***> wrote:

Hi @HenryHengZJ https://github.com/HenryHengZJ can you run flowise using proxy ?

— Reply to this email directly, view it on GitHub https://github.com/FlowiseAI/Flowise/issues/1097#issuecomment-1782434065, or unsubscribe https://github.com/notifications/unsubscribe-auth/AETUAHAO2ONGWJOZ4O3DOYLYBNPDNAVCNFSM6AAAAAA6GWQNYCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBSGQZTIMBWGU . You are receiving this because you are subscribed to this thread.Message ID: @.***>

chz8494 avatar Oct 27 '23 11:10 chz8494

can you any sample for this, regarding to use proxy or Flowise support configure for proxy ? my problem in proxy when request to azure with langchain.

Bramiproject avatar Oct 28 '23 15:10 Bramiproject

can you any sample for this, regarding to use proxy or Flowise support configure for proxy ? my problem in proxy when request to azure with langchain.

can you help me @chz8494 or @HenryHengZJ

Bramiproject avatar Oct 28 '23 15:10 Bramiproject

Any fixes we made on flowwise behind proxy. We are getting same proxy issue in docker.

mvenkatsriram avatar Dec 03 '23 13:12 mvenkatsriram

Hey @Bramiproject @HenryHengZJ I have encountered same problem. when I search up the discord it seems like there are people who face the same problem but remained unsolved. Any guidance on how to solve the problem?

(Plus I kinda feel like people in China using VPN encounters this problem. I'm using Flowise with VPN in China and the other guy from discord profile contains some Chinese character, thus assuming he's the same too)

mikeleedaily avatar Mar 05 '24 04:03 mikeleedaily

Same issue. Catching it inside of a Docker image with latest version (didn't experience anything similar months ago..)

2024-03-15 17:16:01 2024-03-15 16:16:01 [INFO]: ⬆️ POST /api/v1/chatflows
2024-03-15 17:16:32 2024-03-15 16:16:32 [INFO]: ⬆️ POST /api/v1/internal-prediction/3d1e72ab-fb43-47f5-840d-9b277d0cc34c
2024-03-15 17:18:19 2024-03-15 16:18:19 [ERROR]: Connection error.
2024-03-15 17:18:19 Error: Connection error.
2024-03-15 17:18:19     at OpenAI.makeRequest (/usr/local/lib/node_modules/flowise/node_modules/openai/core.js:292:19)
2024-03-15 17:18:19     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2024-03-15 17:18:19     at async /usr/local/lib/node_modules/flowise/node_modules/@langchain/openai/dist/embeddings.cjs:255:29
2024-03-15 17:18:19     at async RetryOperation._fn (/usr/local/lib/node_modules/flowise/node_modules/p-retry/index.js:50:12)
2024-03-15 17:18:19 2024-03-15 16:18:19 [ERROR]: [server]: Error: Error: Connection error.
2024-03-15 17:18:19 Error: Error: Connection error.
2024-03-15 17:18:19     at buildFlow (/usr/local/lib/node_modules/flowise/dist/utils/index.js:326:19)
2024-03-15 17:18:19     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2024-03-15 17:18:19     at async App.buildChatflow (/usr/local/lib/node_modules/flowise/dist/index.js:1898:40)
2024-03-15 17:18:19     at async /usr/local/lib/node_modules/flowise/dist/index.js:1265:13

IT happens that Flowise doesn't even perform the calls (I am usng a LOCALAI model and have access to the log)

IzzyHibbert avatar Mar 15 '24 16:03 IzzyHibbert

Same issue, Unable to connect to OpenAI

2024-03-16 08:38:17 [INFO]: ⬆️ POST /api/v1/internal-prediction/b9b72ef9-c9af-4b73-ae4e-60c86d5ca096
2024-03-16 08:39:36 [ERROR]: Connection error.
Error: Connection error.
    at OpenAI.makeRequest (/LLMs/Flowise/node_modules/.pnpm/[email protected]/node_modules/openai/core.js:292:19)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async /LLMs/Flowise/node_modules/.pnpm/@[email protected]/node_modules/@langchain/openai/dist/embeddings.cjs:255:29
    at async RetryOperation._fn (/LLMs/Flowise/node_modules/.pnpm/[email protected]/node_modules/p-retry/index.js:50:12)
2024-03-16 08:39:36 [ERROR]: [server]: Error: Error: Connection error.
Error: Error: Connection error.
    at buildFlow (/LLMs/Flowise/packages/server/dist/utils/index.js:326:19)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async App.buildChatflow (/LLMs/Flowise/packages/server/dist/index.js:1898:40)
    at async /LLMs/Flowise/packages/server/dist/index.js:1265:13

vinamrajais avatar Mar 16 '24 07:03 vinamrajais

Error: Connection error. at OpenAI.makeRequest (C:\Users\15680\AppData\Roaming\npm\node_modules\flowise\node_modules\openai\core.js:292:19) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async C:\Users\15680\AppData\Roaming\npm\node_modules\flowise\node_modules@langchain\openai\dist\llms.cjs:475:29 at async RetryOperation._fn (C:\Users\15680\AppData\Roaming\npm\node_modules\flowise\node_modules\p-retry\index.js:50:12)

same question, i'm in China too, who knows how to fix it? crying......

Fanxi1992 avatar Mar 18 '24 16:03 Fanxi1992

@Bramiproject @IzzyHibbert @Fanxi1992 I see this ticket is open from some time. Anyone of you able to resolve it?

vinamrajais avatar Mar 26 '24 14:03 vinamrajais

Its working now. Issue was with OpenAI APIs access quota, I have to buy a plan to able to use APIs. Others pls check if you can access openAI APIs

vinamrajais avatar Mar 29 '24 04:03 vinamrajais

Related to https://github.com/FlowiseAI/Flowise/issues/2077 ?

automaton82 avatar Apr 09 '24 20:04 automaton82