Azure Custom Text Analytics for Health: How to send Mediacal Text files as input to the Text Analytics for Health API?

Umamaheswari V 60 Reputation points
2023-10-18T07:11:48.0833333+00:00

I am calling the Text Analytics for Health from Postman by uploading a medical related text file.

I have created the required keys and endpoints andd am successfully able to call the API from Postman for a single text. However when i try to attach a file and make a call, I am getting 400 Bad Request.

The error mssg has been attached herewith.

Also the corresponding cURL command of the postman request also included in the attachment.

Would appreciate assistance to fix this issue.

error_screensshot.pdf

Thank you!!

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. YutongTie-9091 54,016 Reputation points Moderator
    2023-10-23T21:07:22.0933333+00:00

    @Umamaheswari V Thanks for reaching out to us, is this document you are following to call the API? https://learn.microsoft.com/en-us/azure/ai-services/language-service/custom-text-analytics-for-health/quickstart?pivots=rest-api

    The error message you shared indicates that you have an empty request sent, could you please check on the guidance to see if you have something missed?

    Please let me know how it works.

    Regards,

    Yutong

    -Please kindly accept the answer if you feel helpful to support the community, thanks a lot.

    0 comments No comments

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.