Flowise icon indicating copy to clipboard operation
Flowise copied to clipboard

[BUG] Not able to use cURL on DigitalOcean

Open oskarkramarz opened this issue 2 years ago • 5 comments

After installing Flowise on my DigitalOcean droplet I'm not able to run API calls. Chat in Flowise works fine. I followed official installation guide.

Command that I run in terminal (copied from Flowise dashboard):

curl http://[MY_IP_ADDRESS]:3000/api/v1/prediction/d45395a3-3cc6-41f6-b887-df5229b79541 \ -X POST \ -d '{"question": "Hey, how are you?"}'

Error that I receive:

Chatflow d45395a3-3cc6-41f6-b887-df5229b79541 first message not found%

bug

Anyone can help with this issue?

oskarkramarz avatar Jun 21 '23 16:06 oskarkramarz

hey @oskarkramarz sorry for the bug!

the fix will be pushed to the docker and npm tomorrow. For now you can have a simple hello message in the Flowise UI Chat, then call the API, it should work

HenryHengZJ avatar Jun 21 '23 18:06 HenryHengZJ

Hello @HenryHengZJ, thanks for prompt reaction.

Just to let you know: I followed your instruction and sent a simple hello message in Flowise UI Chat. After that, I made API call again, but responses are either out of context or I get errors.

Below example response for second API call, after I sent hello message in Flowise UI Chat. For your information: my chatflow is just Conversational Agent template from marketplace, nothing complex.

bug2 2

Thank you in advance for solving this - Flowise is a great software with huge potential.

oskarkramarz avatar Jun 22 '23 09:06 oskarkramarz

also related with #332

emrahtoy avatar Jun 23 '23 07:06 emrahtoy

@oskarkramarz issue should be resolved now in v1.2.13 with this PR - https://github.com/FlowiseAI/Flowise/pull/354

HenryHengZJ avatar Jun 23 '23 09:06 HenryHengZJ

@HenryHengZJ I made an update and response first message not found is gone. However responses via API still are out of context or I get an error 400.

Example response for first message to chatflow through cURL:

bug-1

And an error that I get after sending next messages:

bug-2

oskarkramarz avatar Jun 23 '23 10:06 oskarkramarz