Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed POST /chats/563/messages: Unexpected token 'I', "Internal S"... is not valid JSON #158

Open
nickknyc opened this issue Aug 17, 2024 · 5 comments

Comments

@nickknyc
Copy link

Running in Docker. No modifications other than the environment and OAI files
Supabase running in the supabase hosted service

I cannot initiate a chat

Here is the log from docker - a clean startup then attempt to chat with the sample "Tools in Assistants" template.

frontend-1 |
frontend-1 | > agentok-ui@ start /app
frontend-1 | > next start
frontend-1 |
frontend-1 | ▲ Next.js 14.2.5
frontend-1 | - Local: http://localhost:2855
frontend-1 |
frontend-1 | ✓ Starting...
frontend-1 | ✓ Ready in 850ms
frontend-1 | params { locale: 'en' }
frontend-1 | Auth event: INITIAL_SESSION
frontend-1 | POST /chats/563/messages data {
frontend-1 | id: 172392929304042,
frontend-1 | type: 'user',
frontend-1 | sender: 'nickknyc',
frontend-1 | content: 'Write a poem based on recent headlines about Vancouver.',
frontend-1 | created_at: '2024-08-17T21:14:53.663Z'
frontend-1 | }
frontend-1 | Failed POST /chats/563/messages: Unexpected token 'I', "Internal S"... is not valid JSON
api-1 | /app/entrypoint.sh: line 2: $'\r': command not found
api-1 | /app/entrypoint.sh: line 4: .venv/bin/activate
: No such file or directory
api-1 | /app/entrypoint.sh: line 5: $'\r': command not found
api-1 | /app/entrypoint.sh: line 8: $'\r': command not found

@hughlv
Copy link
Collaborator

hughlv commented Aug 20, 2024

Sorry about this. I should provide a guide about how to initialize Supabase. will get this done asap.

You can refer to this document on how to setup the Supabase correctly.

@nickknyc
Copy link
Author

@hughlv - unfortunately I am still getting the same error.

POST /chats/588/messages data {
id: 172426943953418,
type: 'user',
sender: 'nickknyc',
content: 'Write a poem based on recent headlines about Vancouver.',
created_at: '2024-08-21T19:43:59.053Z'
}
Failed POST /chats/588/messages: Unexpected token 'I', "Internal S"... is not valid JSON

@nickknyc
Copy link
Author

I should also point out this error I get when starting up the API container (using docker compose)

/app/entrypoint.sh: line 2: $'\r': command not found
/app/entrypoint.sh: line 4: .venv/bin/activate
: No such file or directory
/app/entrypoint.sh: line 5: $'\r': command not found
/app/entrypoint.sh: line 8: $'\r': command not found

@hughlv
Copy link
Collaborator

hughlv commented Aug 22, 2024

I should also point out this error I get when starting up the API container (using docker compose)

/app/entrypoint.sh: line 2: $'\r': command not found /app/entrypoint.sh: line 4: .venv/bin/activate : No such file or directory /app/entrypoint.sh: line 5: $'\r': command not found /app/entrypoint.sh: line 8: $'\r': command not found

Thanks for the details. this is an issue I've never seen before. will look into it asap.

@hughlv
Copy link
Collaborator

hughlv commented Aug 26, 2024

I've tried 'docker-compose up' on my local env, but could not reproduce the issue. The problem seems to be related to Cargo. if you're a developer, could you please try to run without Docker and see whether issue still exists? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants