josStorer / chatGPT-search-engine-extension

A browser extension to display ChatGPT response alongside Search Engine results
MIT License
633 stars 76 forks source link

Unexpected non-whitespace character after JSON at position 4 #11

Closed josStorer closed 1 year ago

josStorer commented 1 year ago
    Unexpected non-whitespace character after JSON at position 4

Always hav this issue

Originally posted by @sohaiBiu99 in https://github.com/josStorer/chatGPT-search-engine-extension/issues/6#issuecomment-1376630261

josStorer commented 1 year ago

what's your extension version @sohaiBiu99

sohaiBiu99 commented 1 year ago

v1.12.3, but I tried older ver until v1.6.2, all have the same issue, my friends also like that

josStorer commented 1 year ago

@sohaiBiu99 what browser are you using, and could you provide some screenshots? I have to reproduce the issue

sohaiBiu99 commented 1 year ago

Google Chrome Version 108.0.5359.125 image image

josStorer commented 1 year ago

@sohaiBiu99

The good news is that I can reproduce this issue, the bad news is that this issue also exists on the official website, it occurs when the generated answer is too long, and the openai api stops sending the response, so what I did is just showing the error message in the extension card

You can see Fix answer being overwritten due to "network error" in the readme page, which refers to this issue

sohaiBiu99 commented 1 year ago

This is not due to network error. but previous version like v1.6.2 don't have this issue right? So you mean it cannot generate long answer now? image

This is the screenshot before in v1.6.2, it can produce long respond, but now even I use back the v1.6.2, it still hav the issue image

josStorer commented 1 year ago

@sohaiBiu99 I have tested further, and although errors can occur on the official website, the probability is much lower, and I think there may be some api changes recently that I need some time to process

josStorer commented 1 year ago

I mean that sometimes on the official website, you will get network error when the answer is too long

josStorer commented 1 year ago

@sohaiBiu99 I'm sure this is due to a recent openai api change, so any version of this extension has this problem, and I need to do some updates, I will let you know once I've solved it

josStorer commented 1 year ago

same issue: https://github.com/transitive-bullshit/chatgpt-api/issues/247

sohaiBiu99 commented 1 year ago

Thank you!

josStorer commented 1 year ago

@sohaiBiu99 released https://github.com/josStorer/chatGPT-search-engine-extension/releases/tag/v1.20.0