Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting 400 errors in GitHub Codespaces #136

Open
charris-msft opened this issue Jan 31, 2025 · 1 comment
Open

Getting 400 errors in GitHub Codespaces #136

charris-msft opened this issue Jan 31, 2025 · 1 comment
Assignees
Labels
codespace Issue exclusively related to running @azure in codespace environment external

Comments

@charris-msft
Copy link
Contributor

When trying to use @Azure in Codespaces, I'm getting the following error:

2025-01-31 17:13:03.944 [info] Received chat: what is aks?
2025-01-31 17:13:03.944 [info] Created chat session ID: 8eeb13b3-ebef-443d-8440-dd99e08c4d26
2025-01-31 17:13:07.763 [error] [Microsoft.Azure.CopilotForAzure.AIService.Orchestration.OrchestratorBase] Chat streaming request was bad. Http status code: BadRequest.
System.ClientModel.ClientResultException: Service request failed.
Status: 400 (Bad Request)

   at OpenAI.ClientPipelineExtensions.ProcessMessageAsync(ClientPipeline pipeline, PipelineMessage message, RequestOptions options)
   at OpenAI.Chat.ChatClient.CompleteChatAsync(BinaryContent content, RequestOptions options)
   at OpenAI.Chat.ChatClient.<>c__DisplayClass12_0.<<CompleteChatStreamingAsync>g__sendRequestAsync|0>d.MoveNext()
--- End of stack trace from previous location ---
   at OpenAI.Chat.InternalAsyncStreamingChatCompletionUpdateCollection.GetRawPagesAsync()+MoveNext()
   at System.ClientModel.AsyncCollectionResult`1.GetAsyncEnumerator(CancellationToken cancellationToken)+MoveNext()
   at System.ClientModel.AsyncCollectionResult`1.GetAsyncEnumerator(CancellationToken cancellationToken)+MoveNext()
   at Microsoft.SemanticKernel.Connectors.OpenAI.ClientCore.GetStreamingChatMessageContentsAsync(String targetModel, ChatHistory chatHistory, PromptExecutionSettings executionSettings, Kernel kernel, CancellationToken cancellationToken)+MoveNext()
   at Microsoft.SemanticKernel.Connectors.OpenAI.ClientCore.GetStreamingChatMessageContentsAsync(String targetModel, ChatHistory chatHistory, PromptExecutionSettings executionSettings, Kernel kernel, CancellationToken cancellationToken)+MoveNext()
   at Microsoft.Azure.CopilotForAzure.AIService.Orchestration.OrchestratorBase.ChatAsync(ChatHistory history, ChannelWriter`1 responseChannelWriter, KernelParameters kernelParameters, CancellationToken cancellationToken)
   at Microsoft.Azure.CopilotForAzure.AIService.Orchestration.OrchestratorBase.ChatAsync(ChatHistory history, ChannelWriter`1 responseChannelWriter, KernelParameters kernelParameters, CancellationToken cancellationToken)
@JasonYeMSFT JasonYeMSFT added the codespace Issue exclusively related to running @azure in codespace environment label Jan 31, 2025
@JasonYeMSFT
Copy link
Contributor

This issue shares the same root cause of an upstream issue. https://github.com/microsoft/vscode-copilot/issues/5412

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
codespace Issue exclusively related to running @azure in codespace environment external
Projects
None yet
Development

No branches or pull requests

2 participants