chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

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

Open InfernalAzazel opened this issue 1 year ago • 5 comments

微信截图_20230528121519

InfernalAzazel avatar May 28 '23 04:05 InfernalAzazel

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.

willydouhard avatar May 28 '23 09:05 willydouhard

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

InfernalAzazel avatar May 28 '23 09:05 InfernalAzazel

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 :)

willydouhard avatar May 28 '23 10:05 willydouhard

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

InfernalAzazel avatar May 28 '23 10:05 InfernalAzazel

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 :)

willydouhard avatar May 28 '23 16:05 willydouhard