Azure / azure-sdk-for-js

This repository is for active development of the Azure SDK for JavaScript (NodeJS & Browser). For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/javascript/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-js.

Repository from Github https://github.comAzure/azure-sdk-for-jsRepository from Github https://github.comAzure/azure-sdk-for-js

[Text Analytics] [APIKey] TextAnalyticsClient > fast tests > #analyzeSentiment > client accepts string[] and language failing in nightly runs

jerryshia opened this issue · comments

Text Analytics nightly test runs are failing with:

Error message:
Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource.

Stack trace:
RestError: Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource.
❯ handleErrorResponse ../../core/core-client/dist/browser/deserializationPolicy.js:255:16
❯ deserializeResponseBody ../../core/core-client/dist/browser/deserializationPolicy.js:159:42

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: '401', statusCode: 401, request: { url: 'https://textanalytics-tee3b579ffb464c89.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?stringIndexType=Utf16CodeUnit', body: '{"documents":[{"id":"0","text":"I had a wonderful trip to Seattle last week and even visited the Space Needle 2 times!","language":"en"},{"id":"1","text":"Unfortunately, it rained during my entire trip to Seattle. I didn't even get to visit the Space Needle","language":"en"},{"id":"2","text":"I went to see a movie on Saturday and it was perfectly average, nothing more or less than I expected.","language":"en"},{"id":"3","text":"I didn't like the last book I read at all.","language":"en"}]}', headers: { 'content-type': 'application/json', accept: 'application/json, text/json', 'x-ms-useragent': 'azsdk-js-ai-textanalytics/5.1.1 azsdk-js-ai-text-analytics/5.1.1 core-rest-pipeline/1.19.1 Chromium/133 OS/x86-Windows-12.0.0', 'x-ms-client-request-id': 'f002f161-81e3-4e3b-9b49-4804cc394c92', 'ocp-apim-subscription-key': 'f7350c5aaa3a417c9c117516f2412b2a' }, method: 'POST', timeout: +0, disableKeepAlive: false, streamResponseStatusCodes: { constructor: 'Function', has: 'Function', add: 'Function', delete: 'Function', clear: 'Function', entries: 'Function', forEach: 'Function', size: +0, values: 'Function', keys: 'Function', union: 'Function', intersection: 'Function', difference: 'Function', symmetricDifference: 'Function', isSubsetOf: 'Function', isSupersetOf: 'Function', isDisjointFrom: 'Function' }, withCredentials: false, tracingOptions: { tracingContext: { _contextMap: { constructor: 'Function', get: 'Function', set: 'Function', has: 'Function', delete: 'Function', clear: 'Function', entries: 'Function', forEach: 'Function', keys: 'Function', size: 1, values: 'Function' }, constructor: 'Function', setValue: 'Function', getValue: 'Function', deleteValue: 'Function' } }, requestId: 'f002f161-81e3-4e3b-9b49-4804cc394c92', allowInsecureConnection: false, enableBrowserStreams: false, constructor: 'Function' }, response: { request: { url: 'https://textanalytics-tee3b579ffb464c89.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?stringIndexType=Utf16CodeUnit', body: '{"documents":[{"id":"0","text":"I had a wonderful trip to Seattle last week and even visited the Space Needle 2 times!","language":"en"},{"id":"1","text":"Unfortunately, it rained during my entire trip to Seattle. I didn't even get to visit the Space Needle","language":"en"},{"id":"2","text":"I went to see a movie on Saturday and it was perfectly average, nothing more or less than I expected.","language":"en"},{"id":"3","text":"I didn't like the last book I read at all.","language":"en"}]}', headers: { 'content-type': 'application/json', accept: 'application/json, text/json', 'x-ms-useragent': 'azsdk-js-ai-textanalytics/5.1.1 azsdk-js-ai-text-analytics/5.1.1 core-rest-pipeline/1.19.1 Chromium/133 OS/x86-Windows-12.0.0', 'x-ms-client-request-id': 'f002f161-81e3-4e3b-9b49-4804cc394c92', 'ocp-apim-subscription-key': 'f7350c5aaa3a417c9c117516f2412b2a' }, method: 'POST', timeout: +0, disableKeepAlive: false, streamResponseStatusCodes: { constructor: 'Function', has: 'Function', add: 'Function', delete: 'Function', clear: 'Function

For more details check here:
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=4627888&view=results