forked from Azure/azure-sdk-for-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
recording_service_errors_on_unsupported_language.json
71 lines (71 loc) · 2.44 KB
/
recording_service_errors_on_unsupported_language.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{
"Entries": [
{
"RequestUri": "https://endpoint/language/:analyze-text?api-version=2022-05-01",
"RequestMethod": "POST",
"RequestHeaders": {
"Accept": "application/json",
"Accept-Encoding": "gzip, deflate, br",
"Accept-Language": "en-US",
"Authorization": "Sanitized",
"Connection": "keep-alive",
"Content-Length": "160",
"Content-Type": "application/json",
"Referer": "http://localhost:9876/",
"sec-ch-ua": "",
"sec-ch-ua-mobile": "?0",
"sec-ch-ua-platform": "",
"Sec-Fetch-Dest": "empty",
"Sec-Fetch-Mode": "cors",
"Sec-Fetch-Site": "same-site",
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/103.0.5058.0 Safari/537.36",
"x-ms-client-request-id": "85bf11e1-0fd6-4400-ae28-e427200a0cb9",
"x-ms-useragent": "azsdk-js-ai-language-text/1.0.0 core-rest-pipeline/1.9.2 OS/Linuxx86_64"
},
"RequestBody": {
"kind": "EntityLinking",
"analysisInput": {
"documents": [
{
"id": "0",
"text": "This is some text, but it doesn\u0027t matter.",
"language": "notalanguage"
}
]
},
"parameters": {}
},
"StatusCode": 200,
"ResponseHeaders": {
"apim-request-id": "ac74148b-b66a-4fa1-90a8-86ed6861e203",
"Content-Length": "393",
"Content-Type": "application/json; charset=utf-8",
"Date": "Wed, 07 Sep 2022 04:20:49 GMT",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
"X-Content-Type-Options": "nosniff",
"x-envoy-upstream-service-time": "3"
},
"ResponseBody": {
"kind": "EntityLinkingResults",
"results": {
"documents": [],
"errors": [
{
"id": "0",
"error": {
"code": "InvalidArgument",
"message": "Invalid Language Code.",
"innererror": {
"code": "UnsupportedLanguageCode",
"message": "Invalid language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"
}
}
}
],
"modelVersion": "2021-06-01"
}
}
}
],
"Variables": {}
}