langgenius / webapp-conversation

MIT License
422 stars 798 forks source link

SyntaxError: Unterminated string in JSON at position 135 #13

Closed shundao-haihe closed 1 year ago

shundao-haihe commented 1 year ago

SyntaxError: Unterminated string in JSON at position 135;对话的时候一直出现这个错误,然后对话终止。

abdinal1 commented 1 year ago

@shundao-haihe Did you find a solution?

isunkit commented 1 year ago

我也是这样,是部署到vercel的原因吗?还有这种 SyntaxError: Bad Unicode escape in JSON at position 134

Gitmaxd commented 1 year ago

Facing the same issue with deployment on Vercel. Any temp fix?

hcj5206 commented 1 year ago

me too

kemeny commented 1 year ago

same issue

eduwass commented 1 year ago

+1

Zhouchuanwen commented 1 year ago

same issue, depoly with docker, not vercel environment !

Zhouchuanwen commented 1 year ago

same issue, depoly with docker, not vercel environment !

Hey guys, I solved my case with the following configurations in Nginx SSE support:

keepalive_timeout 600; client_body_timeout 600; send_timeout 86400; add_header Cache-Control 'no-cache'; add_header Connection 'keep-alive';

proxy_buffering off; proxy_read_timeout 86400s;

abdinal1 commented 1 year ago

same issue, depoly with docker, not vercel environment !

Hey guys, I solved my case with the following configurations in Nginx SSE support:

keepalive_timeout 600; client_body_timeout 600; send_timeout 86400; add_header Cache-Control 'no-cache'; add_header Connection 'keep-alive';

proxy_buffering off; proxy_read_timeout 86400s;

Where to add that in a file in github or is it possible on vercel?

Zhouchuanwen commented 1 year ago

same issue, depoly with docker, not vercel environment !

Hey guys, I solved my case with the following configurations in Nginx SSE support: keepalive_timeout 600; client_body_timeout 600; send_timeout 86400; add_header Cache-Control 'no-cache'; add_header Connection 'keep-alive'; proxy_buffering off; proxy_read_timeout 86400s;

Where to add that in a file in github or is it possible on vercel?

As the README said, vercel hobby has it's limitation, so you need to upgrade to pro or deploy the project on your own server and config it in your nginx.conf file.

eduwass commented 1 year ago

As the README said, vercel hobby has it's limitation, so you need to upgrade to pro or deploy the project on your own server and config it in your nginx.conf file.

I'm on Vercel Pro and it's doing this 😑

Numi2 commented 1 year ago

Having the same issue on Vercel Pro

takatost commented 1 year ago

I reproduced the issue. We will fix it as soon as possible.

Numi2 commented 1 year ago

I deployed with netlify, this time it happens when the responses takess too much time. But when I refresh the page, the answer is there.

iamjoel commented 1 year ago

Fixed: https://github.com/langgenius/webapp-conversation/pull/22 and https://github.com/langgenius/webapp-conversation/pull/23