microsoft / microsoft/BotFramework-DirectLineJS

POST https://directline.botframework.com/v3/directline/conversations 403 (Forbidden)

Abierto
#434 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Lenguaje dominante
TypeScript
Estrellas
199
Forks
133
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Comienza con la documentación del URI base de Direct Line REST API a la que se hace referencia en el informe; después compara el endpoint de generación de tokens con el endpoint POST de conversación y su respuesta RegionNotAllowed. Reproduce la solicitud usando las URL indicadas y confirma qué endpoint regional se acepta; se considera terminado cuando se documenta una causa y una resolución confirmadas, o se identifica que el problema está fuera de esta biblioteca cliente.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
typescript
Área
api
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
25/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.