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

Use the DirectLine base URL returned from the 'start-conversation' API #306

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

daxian-dbw
Copy link
Member

PR Summary

We got report that AI Shell cannot create a chat session in France with the following failure:

ERROR: Failed to open an conversation. HTTP status: Forbidden, Response: {
  "error": {
    "code": "RegionNotAllowed",
    "message": "The request received in france but target regional bot belongs to europe. Please check BaseURI
https://docs.microsoft.com/azure/bot-service/rest-api/bot-framework-rest-direct-line-3-0-api-reference?view=azure-bot-se
rvice-4.0#base-uri."
  }
}

It turns out we need to use different Direct Line base URL for different regions. To handle that, we should use the base URL returned from the 'start-conversation' API instead of hardcoding it.

@daxian-dbw daxian-dbw merged commit f301c44 into PowerShell:main Nov 18, 2024
4 checks passed
@daxian-dbw daxian-dbw deleted the auth branch November 18, 2024 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant