Chainlit / chainlit

Build Conversational AI in minutes ⚡️
https://docs.chainlit.io
Apache License 2.0
6.24k stars 799 forks source link

cloud.chainlit.io Oh no... Unexpected error bug #11

Closed InfernalAzazel closed 1 year ago

InfernalAzazel commented 1 year ago

微信截图_20230528121519

willydouhard commented 1 year ago

Is this happening when creating the project?

I see an InvalidCharacterError: Invalid character error in the logs so I would be interested to get the project name you are trying to create.

InfernalAzazel commented 1 year ago

Is this happening when creating the project?

I see an InvalidCharacterError: Invalid character error in the logs so I would be interested to get the project name you are trying to create.

I use Chinese for the project name

willydouhard commented 1 year ago

Can you try with a project using the latin alphabet to make sure this is the issue? If that is the case I will investigate to fix it :)

InfernalAzazel commented 1 year ago

Can you try with a project using the latin alphabet to make sure this is the issue? If that is the case I will investigate to fix it :)

I use Chinese for the project name e.g: 项目

My guess is that your database fields may use a specific encoding

Usually too many UTF-8 supports Chinese language display

I am unable to assist you with testing at the moment because I entered the page as Oh no... Unexpected error

willydouhard commented 1 year ago

I was able to reproduce. This is only problematic for the ID of the project. Because the ID is then used to generate cursors for pagination and this is where the error happens.

Since the ID of the project is derived from the name, please use the latin alphabet for the name of your project until we find a solution. For the rest, you should be able to use chinese characters :)