-
-
Notifications
You must be signed in to change notification settings - Fork 23.1k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
The chatflow API does not work as expected and as described in the documentation.
When getting chatflow by ID, with an invalid id, or a not existing id, instead of receiving a 400 or a 404 status code, status code is 500 with the following response
{ "statusCode": 500, "success": false, "message": "Error: chatflowsService.getChatflowById - Chatflow e not found in the database!", "stack": {} }
To Reproduce
Getting chatflow by ID, with an invalid id
- Use chatflow - Get chatflow by ID endpoint : .../chatflows/invalid-id
- Response is an error with statusCode 500 instead of 400
Getting chatflow by ID, with a not existing id
- Use chatflow - Get chatflow by ID endpoint : .../chatflows/dafb70a2-c258-4a36-ae81-2a401c7cd147 (where no chatflow has this id)
- Response is an error with statusCode 500 instead of 404
Expected behavior
Getting chatflow by ID, with an invalid id
- Expected statusCode is 400
Getting chatflow by ID, with a not existing id
- Expected statusCode is 404
Screenshots
No response
Flow
No response
Use Method
None
Flowise Version
No response
Operating System
None
Browser
None
Additional context
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working