Azure Text Analysis client library for JavaScript

Glen Sale 0 Reputation points
2024-02-21T20:59:22.18+00:00

Hello I cloned the repository from https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cognitivelanguage/ai-language-text/samples/v1/javascript/piiEntityRecognition.js

Following these wiki: https://learn.microsoft.com/en-us/javascript/api/overview/azure/ai-language-text-readme?view=azure-node-latest&viewFallbackFrom=azure-node-preview

Changing only the endpoint and apikey directly without using .env file yet just for a quick test.

However I am getting these error "message": "self-signed certificate in certificate chain"

Do you know what's the work around these?

Azure AI Language
Azure AI Language
An Azure service that provides natural language capabilities including sentiment analysis, entity extraction, and automated question answering.
355 questions
{count} votes

1 answer

Sort by: Most helpful
  1. navba-MSFT 17,110 Reputation points Microsoft Employee
    2024-02-27T09:09:16+00:00

    @Glen Sale Thanks for getting back. It seems there is some progress after adding process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'; The 404 error you are getting is because of incorrect endpoint. You need to update the right endpoint in your application. You will find the endpoint details from Azure portal as shown below:

    User's image

    Hope this helps.

    0 comments No comments