Skip to content

API Error on KRAGEN backend #87

@HyunjunA

Description

@HyunjunA

Describe the bug
The error shown in the screenshot sometimes occurs when posting a question "Please list five genes associated with Alzheimer's disease" to the Kragen server. Specifically, the POST request to http://127.0.0.1:5050/chat/api/v1/got results in a "500 Internal Server Error." The browser console displays "Failed to fetch data: SyntaxError: Unexpected token '<', '<!doctype '... is not valid JSON," indicating that the server response was not in JSON format as expected. Instead, the server seems to have returned an HTML document (often an error page), which the client-side script attempted to parse as JSON.

To Reproduce
Steps to reproduce the behavior:

  1. Ask KRAGEN the question: 'Please list five genes associated with Alzheimer's disease.
  2. Check if it shows the API call error or not by opening the console on the web.
  3. Please use docker logs to check the API calls and error messages.

Screenshots
image

image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions