FlowiseAI / Flowise

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

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

Closed Bramiproject closed 2 months ago

Bramiproject commented 8 months ago

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

HenryHengZJ commented 8 months ago

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

Bramiproject commented 8 months ago

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

Bramiproject commented 8 months ago

Hi @HenryHengZJ can you run flowise using proxy ?

chz8494 commented 8 months ago

+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: @.***>

Bramiproject commented 8 months ago

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 commented 8 months ago

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

mvenkatsriram commented 7 months ago

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

mikeleedaily commented 4 months ago

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)

IzzyHibbert commented 3 months ago

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)

vinamrajais commented 3 months ago

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/openai@4.28.4/node_modules/openai/core.js:292:19)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async /LLMs/Flowise/node_modules/.pnpm/@langchain+openai@0.0.14/node_modules/@langchain/openai/dist/embeddings.cjs:255:29
    at async RetryOperation._fn (/LLMs/Flowise/node_modules/.pnpm/p-retry@4.6.2/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
Fanxi1992 commented 3 months ago

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......
vinamrajais commented 3 months ago

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

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. Others pls check if you can access openAI APIs

automaton82 commented 3 months ago

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

wywself commented 1 month ago

Hi, @Bramiproject @IzzyHibbert @Fanxi1992 @vinamrajais @HenryHengZJ

I have encountered same problem. And I'm sure my openai key is available. Have you resolved it? Thank you. image

Fanxi1992 commented 1 month ago

havn't, i gave up using flowise finally. I am now establishing my own application by coding by myself.

wangyuwei @.***> 于2024年6月3日周一 19:21写道:

Hi, @Bramiproject https://github.com/Bramiproject @IzzyHibbert https://github.com/IzzyHibbert @Fanxi1992 https://github.com/Fanxi1992 @vinamrajais https://github.com/vinamrajais @HenryHengZJ https://github.com/HenryHengZJ

I have encountered same problem. And I'm sure my openai key is available. Have you resolved it? Thank you. image.png (view on web) https://github.com/FlowiseAI/Flowise/assets/8843053/38cd8b9b-3fff-4ab8-9bc7-0823d8e8d17d

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

mikeleedaily commented 1 month ago

In my case, I have set another computer of mine out of China and use teamviewer to access it lol