Skip to content

Getting 400 errors in GitHub Codespaces #136

@charris-msft

Description

@charris-msft

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)

Metadata

Metadata

Assignees

Labels

codespaceIssue exclusively related to running @azure in codespace environmentexternal

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions