LSP-copilot icon indicating copy to clipboard operation
LSP-copilot copied to clipboard

Payload cancelled by server?

Open jfcherng opened this issue 3 years ago • 5 comments

:: <-  LSP-copilot statusNotification: {'message': '', 'status': 'Normal'}
:: <<< LSP-copilot 12: {'completions': []}
:: <-  LSP-copilot LogMessage: {'level': 1, 'message': '[INFO] [default] [2022-08-01T07:59:31.840Z] request.response: [https://copilot-proxy.githubusercontent.com/v1/engines/copilot-codex/completions] took 283 ms', 'metadataStr': '[INFO] [default] [2022-08-01T07:59:31.840Z]', 'extra': ['request.response: [https://copilot-proxy.githubusercontent.com/v1/engines/copilot-codex/completions] took 283 ms']}
:: <-  LSP-copilot statusNotification: {'message': '', 'status': 'Warning'}
↑ Warning
:: <-  LSP-copilot LogMessage: {'level': 1, 'message': '[INFO] [fetch] [2022-08-01T07:59:31.840Z] Cancelled by server', 'metadataStr': '[INFO] [fetch] [2022-08-01T07:59:31.840Z]', 'extra': ['Cancelled by server']}
↑ Cancelled by server
:: <<< LSP-copilot 13: {'completions': []}
↑ Always empty

There seems to be some rate/burst limit things? I encounter Cancelled by server quite frequently and always get empty completions when this happens.

jfcherng avatar Aug 01 '22 09:08 jfcherng

Yeah, interesting. I wonder if we need to monitor for certain messages in the LogMessage response

TerminalFi avatar Aug 01 '22 15:08 TerminalFi

@jfcherng are you still seeing this ? I've not received it in awhile. And I also don't believe this is an issue with the plug-in.

The only thing I can think of I potentially monitoring for this issue, then refrigerant the request again. But I don't believe it is needed.

Thoughts ?

TerminalFi avatar Jan 21 '23 22:01 TerminalFi

In the initial log it looks like there were two completion requests made without waiting for the response. I suppose server only expects one at a time. In that sense it looks like a client issue. It shouldn't happen with LSP but I guess it might if you have some custom logic that requests those.

rchl avatar Jan 22 '23 14:01 rchl

In the initial log it looks like there were two completion requests made without waiting for the response. I suppose server only expects one at a time. In that sense it looks like a client issue. It shouldn't happen with LSP but I guess it might if you have some custom logic that requests those.

That makes the most sense.

TerminalFi avatar Jan 24 '23 02:01 TerminalFi

Actually I've just noticed that it can happen with plain LSP too so it's probably something that we should fix.

rchl avatar Jan 24 '23 13:01 rchl

Actually I've just noticed that it can happen with plain LSP too so it's probably something that we should fix.

Did you ever get a chance to look into this ?

TerminalFi avatar Jul 07 '24 03:07 TerminalFi

Seeing as this isn't copilot specific and LSP related, closing out

TerminalFi avatar Jul 16 '24 04:07 TerminalFi