how to use langflow js api #5511
Replies: 1 comment
-
To resolve the "400 Bad Request" error you're encountering with the Langflow JS API, ensure that you do not pass both an Here's a brief explanation of the relevant code logic:
To fix this, adjust your API request payload to ensure that you are not including both an To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Beta Was this translation helpful? Give feedback.
-
When i try to use langflow js API I get this error
Request Error: 400 Bad Request - {"detail":"If you pass an input_value to the chat input, you cannot pass a tweak with the same name."} Error running flow: Error: 400 Bad Request - {"detail":"If you pass an input_value to the chat input, you cannot pass a tweak with the same name."} at LangflowClient.post (file:///home/ayush/code/hackathon/backend/langflow/langflow.api.js:20:21) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async LangflowClient.runFlow (file:///home/ayush/code/hackathon/backend/langflow/langflow.api.js:58:32) at async main (file:///home/ayush/code/hackathon/backend/langflow/langflow.api.js:145:16) Stream Error: Error initiating session Main Error response is not defined
Beta Was this translation helpful? Give feedback.
All reactions