microsoft / microsoft/BotFramework-DirectLineJS
POST https://directline.botframework.com/v3/directline/conversations 403 (Forbidden)
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 199
- Fork
- 133
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
I get this error since last week. Our bot worked fine and suddenly started giving us this error. Until last week we used https://directline.botframework.com/v3/directline/tokens/generate to generate a token. We then switched to https://europe.directline.botframework.com/v3/directline/tokens/generate because our resources (Azure Bot, Web App running the bot, WebApp running the web chat; all F0-tier) were created in West Europe last year but with no success.
The exact error is:
{
"message": "ajax error 403",
"xhr": {},
"request": {
"async": true,
"crossDomain": false,
"withCredentials": false,
"headers": {
"Accept": "application/json",
"Content-Type": "application/json",
"Authorization": "Bearer <Token>",
"x-ms-bot-agent": "DirectLine/3.0 (directlinejs; WebChat/4.17.0 (Full) 0.15.5)",
"X-Requested-With": "XMLHttpRequest"
},
"method": "POST",
"responseType": "json",
"timeout": 20000,
"url": "https://directline.botframework.com/v3/directline/conversations",
"body": "{\"user\":{}}"
},
"status": 403,
"responseType": "json",
"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-service-4.0#base-uri."
}
}
}
The error states that the request is received in france, but none of our resources were created in france. I already renewed the keys of the directline channel, which did not work.
Any help is appreciated.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia dalla documentazione dell’URI di base di Direct Line REST API citata nel report, quindi confronta l’endpoint di generazione del token con l’endpoint POST della conversazione e la relativa risposta RegionNotAllowed. Riproduci la richiesta usando gli URL elencati e conferma quale endpoint regionale viene accettato; il lavoro è completato quando vengono documentate una causa e una risoluzione confermate, oppure quando si identifica che il problema è esterno a questa libreria client.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- typescript
- Ambito
- api
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100