CLU API Request giving {'error': {'code': 'InvalidRequest', 'message': 'Invalid request has been sent.', 'innererror': {'code': 'PayloadTooLarge', 'message': 'Max allowed payload is 10MB'}}}

Anonymous
2023-02-10T09:53:39.3833333+00:00

After creating a project on CLU (Conversational language understanding), not able to add intent, entity, utterances because the json created is of more than 20 MB.

entity json - 15 MB

utterances json - 8 MB

intent json - 200 bytes

API is failing and giving the error mentioned below.

status code 413

{'error': {'code': 'InvalidRequest', 'message': 'Invalid request has been sent.', 'innererror': {'code': 'PayloadTooLarge', 'message': 'Max allowed payload is 10MB'}}}

Azure AI Language
Azure AI Language
An Azure service that provides natural language capabilities including sentiment analysis, entity extraction, and automated question answering.
520 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,602 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-02-15T07:02:19.8133333+00:00

    CLU API endpoint -: "https://clu-kubernetes-saas-qa.cognitiveservices.azure.com/language/authoring/analyze-conversations/projects/beagle-nlp-saas-qa-1-471/:import?api-version=2022-10-01-preview"

    By using the above API we are trying to create entities on CLU. Our use case has a huge entities list, so the request size is getting exceeded.

    Entities json size is more than 10 MB.

    We have already tried breaking the request into multiple chunks but the CLU is replacing the entities instead of adding them.

    Now we are stuck and not sure how we can add all the entities to CLU.


Your answer

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