zed icon indicating copy to clipboard operation
zed copied to clipboard

"Error interacting with language model: unknown error"

Open trevyn opened this issue 1 year ago • 5 comments

Check for existing issues

  • [X] Completed

Describe the bug / provide steps to reproduce it

Using "gpt-4" via OpenAI. The response is partially generated, but then might be hitting an output token limit or something. Regardless, the "unknown error" is insufficiently helpful for diagnosing!

Environment

Zed: v0.155.1 (Zed Preview) OS: macOS 14.7.0 Memory: 32 GiB Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

Screenshot 2024-10-01 at 08 01 11

If applicable, attach your Zed.log file to this issue.

no relevant log entries

trevyn avatar Oct 01 '24 05:10 trevyn

I get the same, also with gemini flash and pro. I also see "missing field 'content' at line 1 column 359.

tino376dev avatar Oct 02 '24 12:10 tino376dev

@reider-dev

I was trying to let Gemini summarize some text within Zed.

I also got the exact same error message with Gemini 1.5 flash: image

When I gave the same question to the web interface, this was the answer: image

teamspeakuser0 avatar Oct 03 '24 13:10 teamspeakuser0

Sounds reasonable and might suggest there is better solution. I have yet to see the same errors using VSCode with the same Copilot and Gemini accounts.


From: KZ @.> Sent: Sunday, October 6, 2024 8:04:04 PM To: zed-industries/zed @.> Cc: Reider Forest @.>; Mention @.> Subject: Re: [zed-industries/zed] "Error interacting with language model: unknown error" (Issue #18561)

I get this error very frequently when using AI. This error is from isahc: https: //docs. rs/isahc/latest/isahc/error/enum. ErrorKind. html I suspect there are bugs in isahc http_client, since this library is not maintained, latest update is 2022

I get this error very frequently when using AI.

This error is from isahc: https://docs.rs/isahc/latest/isahc/error/enum.ErrorKind.htmlhttps://urldefense.com/v3/__https://docs.rs/isahc/latest/isahc/error/enum.ErrorKind.html__;!!BmfVKN8_!eKMEiRF0BX3DpT_gizpT8ze6wXTz62qYronSGjWnP0AEhmEHa3s1FnFA2TfFxiXFcpRDc4FNuAUynVLfQViqk9zrW4nRIQ$

I suspect there are bugs in isahc http_client, since this library is not maintained, latest update is 2022

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/zed-industries/zed/issues/18561*issuecomment-2395528083__;Iw!!BmfVKN8_!eKMEiRF0BX3DpT_gizpT8ze6wXTz62qYronSGjWnP0AEhmEHa3s1FnFA2TfFxiXFcpRDc4FNuAUynVLfQViqk9xKSE_Mbw$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/BFOWSAAH5BOOW2TBK4WQIF3Z2F3RJAVCNFSM6AAAAABPEXWENGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJVGUZDQMBYGM__;!!BmfVKN8_!eKMEiRF0BX3DpT_gizpT8ze6wXTz62qYronSGjWnP0AEhmEHa3s1FnFA2TfFxiXFcpRDc4FNuAUynVLfQViqk9zw3swwRA$. You are receiving this because you were mentioned.Message ID: @.***>

tino376dev avatar Oct 06 '24 18:10 tino376dev

@reider-dev I think I replied to wrong ticket, what I get is "the server made an unrecoverable HTTP protocol violation".

kzhui125 avatar Oct 06 '24 18:10 kzhui125

I'm also having this issue with both Gemini 1.5 pro and flash, with flash getting further along the output

Xorger23 avatar Oct 09 '24 04:10 Xorger23

I wonder whether this is the same underlying issue as:

  • https://github.com/zed-industries/zed/issues/17515

We recently landed a significant set of changes to our http_client and I believe this may now be solved. Can someone build from main and see if the issue is fixed there?

notpeter avatar Oct 13 '24 15:10 notpeter

I wonder whether this is the same underlying issue as:

We recently landed a significant set of changes to our http_client and I believe this may now be solved. Can someone build from main and see if the issue is fixed there?

From my side it looks likely (sorry, not proficient enough build from main).

tino376dev avatar Oct 15 '24 05:10 tino376dev

i ran in the same problem. Is it because there is a problem with the api access, maybe?

Emjaybee-iam avatar Oct 29 '24 12:10 Emjaybee-iam

i ran in the same problem. Is it because there is a problem with the api access, maybe?

got it. Log in your Zed account (via github e.g) and then go to "Configure". Check the Terms of Service. Restart

Emjaybee-iam avatar Oct 29 '24 12:10 Emjaybee-iam

image

failable avatar Oct 30 '24 12:10 failable

I believe this has been resolved in an intervening Zed update. If you are still seeing this issue with a current Zed, please open a clean issue with steps to reproduce.

Thanks for reporting.

notpeter avatar Jan 21 '25 19:01 notpeter