Azure-Samples / cognitive-services-language-understanding

Samples for the Language Understanding Intelligent Service (LUIS)
MIT License
85 stars 139 forks source link

I keep getting this error after deploying a trained model: Badrequest Corresponding activity ID #56

Open xtianus79 opened 2 years ago

xtianus79 commented 2 years ago

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Use the sample output run the endpoint Here is the sample curl

curl -X POST "https://westus2.api.cognitive.microsoft.com/language/:analyze-conversations?projectName=OptumTestIVR&deploymentName=production&api-version=2021-11-01-preview" -H "Ocp-Apim-Subscription-Key: xxxxxxxxxx"  -H "Apim-Request-Id: xxxxxxxxxx" -H "Content-Type: application/json" -d "{\"verbose\":true,\"query\":\"YOUR_QUERY_HERE\",\"language\":\"QUERY_LANGUAGE_HERE\"}"

Technically I don't know what language is supposed to be or Query_language. I don't know if that is causing the error.

Any log messages given by the failure

the issue seems to be the language param. I don't know what else to put besides english or eng

{
    "error": {
        "code": "BadRequest",
        "message": "One or more errors occurred. Corresponding activity ID: ab2dc68a-d5c0-49f9-b621-c97a1f1ccb21.",
        "innerError": {
            "message": "Failed to call the Conversation project OptumTestIVR and deployment production.."
        }
    }
}

Expected/desired behavior

for it to work

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.