Since yesterday GitHub copilot Pro not work in VSCode and Visual Studio #163526
Replies: 3 comments 2 replies
-
|
You're hitting a JSON parsing error that usually means Copilot is receiving unexpected HTML instead of a proper JSON response. This often happens when there's an auth/session issue or network misconfiguration. Here’s what you can try:
Hopefully GitHub rolls out a backend fix soon, but these steps should get you unblocked. Let me know if any part needs elaboration! |
Beta Was this translation helpful? Give feedback.
-
|
Dublicate |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Copilot Feature Area
Visual Studio
Body
Since yesterday Github copliot not work in VSCode and VisualStudio 2022.
I have error Output from VS2022:
[Conversations Information] [SemanticContextService] Generating semantic context for C:\UsersData\Source\scummvm\engines\goldbox\poolrad\views\mainmenu_view.cpp.
[Conversations Information] [SemanticContextService] Generating context with reference hops...
[Conversations Information] [SemanticContextService] ContextBuilder instance created. Initial fetched types from document count: 5, Initial fetched context from document count: 302.
[Conversations Information] [SemanticContextService] Processing reference hop 1...
[Conversations Information] [SemanticContextService] Context with reference hops generated. Total types: 92, Total context: 3752.
[Conversations Information] [SemanticContextService] Calculating Jaccard Similarity for definition context and taking top 100 from max of 1000 files
[Conversations Information] [SemanticContextService] Finished getting ordered context.
[CopilotSessionProvider Information] Begin sending message (ConversationId:6beca0f8-3cb2-4e09-a77b-af1cca51078a, CorrelationId:86918d43-e3f8-44a9-86f6-1682bb54eb47, MessageId: 5a1bb23b-a6ed-4755-8758-feaa7d4487f4)
[CopilotSessionProvider Information] Request content: "updateMenuState party should be class propery "
[Conversations Information] [GetQuota] Environment variable COPILOT_USE_DEFAULTPROXY found: False
[Conversations Information] [CopilotClient] Copilot Internal User response: Conversations.Abstractions.Auth.CopilotUserData
[Conversations Information] [CopilotModels] Environment variable COPILOT_USE_DEFAULTPROXY found: False
[Conversations Information] Copilot auth status: OK. Copilot badge status: Active
[Conversations Error] [CopilotClient] Unknown exception:
'<' is an invalid start of a value. Path: $ | LineNumber: 1 | BytePositionInLine: 0.
[Conversations Error] [CopilotClient] Failed to resolve models.
[Conversations Error] [Conversations] Unhandled exception in AskInConversationAsync: System.Text.Json.JsonException: '<' is an invalid start of a value. Path: $ | LineNumber: 1 | BytePositionInLine: 0.
---> System.Text.Json.JsonReaderException: '<' is an invalid start of a value. LineNumber: 1 | BytePositionInLine: 0.
at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan
1 bytes) at System.Text.Json.Utf8JsonReader.ConsumeValue(Byte marker) at System.Text.Json.Utf8JsonReader.ReadFirstToken(Byte first) at System.Text.Json.Utf8JsonReader.ReadSingleSegment() at System.Text.Json.Utf8JsonReader.Read() at System.Text.Json.Serialization.JsonConverter1.ReadCore(Utf8JsonReader& reader, T& value, JsonSerializerOptions options, ReadStack& state)--- End of inner exception stack trace ---
at System.Text.Json.ThrowHelper.ReThrowWithPath(ReadStack& state, JsonReaderException ex)
at System.Text.Json.Serialization.JsonConverter
1.ReadCore(Utf8JsonReader& reader, T& value, JsonSerializerOptions options, ReadStack& state) at System.Text.Json.Serialization.Metadata.JsonTypeInfo1.Deserialize(Utf8JsonReader& reader, ReadStack& state)at System.Text.Json.JsonSerializer.ReadFromSpan[TValue](ReadOnlySpan
1 utf8Json, JsonTypeInfo1 jsonTypeInfo, Nullable1 actualByteCount) at System.Text.Json.JsonSerializer.ReadFromSpan[TValue](ReadOnlySpan1 json, JsonTypeInfo1 jsonTypeInfo) at System.Text.Json.JsonSerializer.Deserialize[TValue](String json, JsonSerializerOptions options) at Microsoft.VisualStudio.Conversations.CopilotClient.CopilotAPIClient.GetModelsAsync(String userCopilotSku, CancellationToken cancellationToken) in D:\a\_work\1\s\src\CopilotClient\CopilotAPIClient.cs:line 959 at Conversations.Kernel.CopilotModelResolver.ResolveModelsAsync() in D:\a\_work\1\s\src\Copilot.Service.Kernel\CopilotModelResolver.cs:line 258 at Microsoft.VisualStudio.Threading.AwaitExtensions.ExecuteContinuationSynchronouslyAwaiter1.GetResult()at Microsoft.VisualStudio.Threading.AsyncLazy
1.<>c__DisplayClass20_0.<<GetValueAsync>b__0>d.MoveNext() --- End of stack trace from previous location --- at Microsoft.VisualStudio.Threading.ThreadingTools.WithCancellationSlow[T](Task1 task, CancellationToken cancellationToken)at Conversations.Kernel.CopilotModelResolver.GetModelsAsync(CopilotClientId clientId, CancellationToken cancellationToken) in D:\a_work\1\s\src\Copilot.Service.Kernel\CopilotModelResolver.cs:line 97
at Conversations.Kernel.CopilotModelResolver.SelectModelAsync[TModel](IEnumerable
1 requests, CopilotClientId clientId, IReadOnlyCollection1 quotas, CancellationToken cancellationToken) in D:\a_work\1\s\src\Copilot.Service.Kernel\CopilotModelResolver.cs:line 185at Microsoft.VisualStudio.Conversations.Service.ServiceTarget.AskInConversationAsync(CopilotSessionId sessionId, CopilotRequest request, ActiveInteractions activeInteractions, IReadOnlyList
1 history, CopilotRequestOptions requestOptions, CancellationToken cancellation) in D:\a\_work\1\s\src\Copilot.Service\ServiceTarget.cs:line 180 [CopilotSessionProvider Error] Unhandled exception invoking responder GitHub Copilot: StreamJsonRpc.RemoteInvocationException: '<' is an invalid start of a value. Path: $ | LineNumber: 1 | BytePositionInLine: 0. at StreamJsonRpc.JsonRpc.<InvokeCoreAsync>d__1561.MoveNext()--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.VisualStudio.Copilot.ResponderBroker.d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Copilot.ResponderBroker.d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore
1.GetResult(Int16 token) at Microsoft.VisualStudio.Copilot.Core.Agents.CopilotAgentModeResponder.<RespondInternalAsync>d__7.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.VisualStudio.Copilot.Core.Agents.CopilotAgentModeResponder.<RespondInternalAsync>d__7.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore1.GetResult(Int16 token)at Microsoft.VisualStudio.Copilot.CopilotDefaultOrchestrator.d__22.MoveNext()
RPC server exception:
System.Text.Json.JsonException: '<' is an invalid start of a value. Path: $ | LineNumber: 1 | BytePositionInLine: 0.
---> System.Text.Json.JsonReaderException: '<' is an invalid start of a value. LineNumber: 1 | BytePositionInLine: 0.
at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan
1 bytes) at System.Text.Json.Utf8JsonReader.ConsumeValue(Byte marker) at System.Text.Json.Utf8JsonReader.ReadFirstToken(Byte first) at System.Text.Json.Utf8JsonReader.ReadSingleSegment() at System.Text.Json.Utf8JsonReader.Read() at System.Text.Json.Serialization.JsonConverter1.ReadCore(Utf8JsonReader& reader, T& value, JsonSerializerOptions options, ReadStack& state)--- End of inner exception stack trace ---
at System.Text.Json.ThrowHelper.ReThrowWithPath(ReadStack& state, JsonReaderException ex)
at System.Text.Json.Serialization.JsonConverter
1.ReadCore(Utf8JsonReader& reader, T& value, JsonSerializerOptions options, ReadStack& state) at System.Text.Json.Serialization.Metadata.JsonTypeInfo1.Deserialize(Utf8JsonReader& reader, ReadStack& state)at System.Text.Json.JsonSerializer.ReadFromSpan[TValue](ReadOnlySpan
1 utf8Json, JsonTypeInfo1 jsonTypeInfo, Nullable1 actualByteCount) at System.Text.Json.JsonSerializer.ReadFromSpan[TValue](ReadOnlySpan1 json, JsonTypeInfo1 jsonTypeInfo) at System.Text.Json.JsonSerializer.Deserialize[TValue](String json, JsonSerializerOptions options) at Microsoft.VisualStudio.Conversations.CopilotClient.CopilotAPIClient.GetModelsAsync(String userCopilotSku, CancellationToken cancellationToken) in D:\a\_work\1\s\src\CopilotClient\CopilotAPIClient.cs:line 959 at Conversations.Kernel.CopilotModelResolver.ResolveModelsAsync() in D:\a\_work\1\s\src\Copilot.Service.Kernel\CopilotModelResolver.cs:line 258 at Microsoft.VisualStudio.Threading.AwaitExtensions.ExecuteContinuationSynchronouslyAwaiter1.GetResult()at Microsoft.VisualStudio.Threading.AsyncLazy
1.<>c__DisplayClass20_0.<<GetValueAsync>b__0>d.MoveNext() --- End of stack trace from previous location --- at Microsoft.VisualStudio.Threading.ThreadingTools.WithCancellationSlow[T](Task1 task, CancellationToken cancellationToken)at Conversations.Kernel.CopilotModelResolver.GetModelsAsync(CopilotClientId clientId, CancellationToken cancellationToken) in D:\a_work\1\s\src\Copilot.Service.Kernel\CopilotModelResolver.cs:line 97
at Conversations.Kernel.CopilotModelResolver.SelectModelAsync[TModel](IEnumerable
1 requests, CopilotClientId clientId, IReadOnlyCollection1 quotas, CancellationToken cancellationToken) in D:\a_work\1\s\src\Copilot.Service.Kernel\CopilotModelResolver.cs:line 185at Microsoft.VisualStudio.Conversations.Service.ServiceTarget.AskInConversationAsync(CopilotSessionId sessionId, CopilotRequest request, ActiveInteractions activeInteractions, IReadOnlyList
1 history, CopilotRequestOptions requestOptions, CancellationToken cancellation) in D:\a\_work\1\s\src\Copilot.Service\ServiceTarget.cs:line 180 at Microsoft.VisualStudio.Conversations.Service.CopilotServiceContainer.AskInConversationAsync(CopilotSessionId sessionId, CopilotRequest request, ActiveInteractions activeResponse, IReadOnlyList1 history, CopilotRequestOptions requestOptions, CancellationToken cancellationToken) in D:\a_work\1\s\src\Copilot.Service\CopilotServiceContainer.cs:line 508Beta Was this translation helpful? Give feedback.
All reactions