Share via

LUIS Add Utterance in code JSON POST failing

You-Hsuan Jaing 1 Reputation point
2021-01-16T09:29:28.52+00:00

I followed the document to add utterance in batch.

But I got this:
57341-image.png

I coded in Node.js,
here is how I send the request ( I used requestretry package):
57188-image.png
57238-image.png

here is my request body look like
57239-image.png
...
...

Azure App Service
Azure App Service

Azure App Service is a service used to create and deploy scalable, mission-critical web apps.

Foundry Tools
Foundry Tools

Formerly known as Azure AI Services or Azure Cognitive Services is a unified collection of prebuilt AI capabilities within the Microsoft Foundry platform

0 comments No comments

1 answer

Sort by: Most helpful
  1. Rohit Mungi 49,131 Reputation points Microsoft Employee Moderator
    2021-01-18T09:55:25.403+00:00

    @You-Hsuan Jaing With respect to your above request while adding the example utterances there is no entity name or location in the entityLabels key. Do you intend to add the utterances without any mapping to the entity?

    Based on the error mentioned are you using both the AppId and version in the URL? It looks like one of them might be missing in your request URL? The format should be of the following type for your URL with both the app id and the version.

    https://{endpoint}/luis/authoring/v3.0-preview/apps/{appId}/versions/{versionId}/examples

    The ExampleId field also seems like a response from the add operation of the utterances rather than the request body.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.