-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5069292
commit 561d522
Showing
14 changed files
with
79 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 12 additions & 12 deletions
24
...ormrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_locale_error.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
interactions: | ||
- request: | ||
body: 'b''{"source": "blob_sas_url"}''' | ||
body: 'b''{"urlSource": "blob_sas_url"}''' | ||
headers: | ||
Accept: | ||
- application/json | ||
Content-Length: | ||
- '221' | ||
- '224' | ||
Content-Type: | ||
- application/json | ||
User-Agent: | ||
- azsdk-python-ai-formrecognizer/3.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) | ||
- azsdk-python-ai-formrecognizer/3.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) | ||
method: POST | ||
uri: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1/prebuilt/receipt/analyze?includeTextDetails=false&locale=not%20a%20locale | ||
uri: https://region.api.cognitive.microsoft.com/formrecognizer/documentModels/prebuilt-receipt:analyze?locale=not%20a%20locale&stringIndexType=unicodeCodePoint&api-version=2021-09-30-preview | ||
response: | ||
body: | ||
string: '{"error": {"code": "UnsupportedLocale", "innerError": {"requestId": | ||
"c72b100e-f260-4bd3-874f-3354e1b08e83"}, "message": "Locale unsupported. Supported | ||
locales include en-AU, en-CA, en-GB, en-IN and en-US."}}' | ||
string: '{"error": {"code": "InvalidArgument", "message": "Invalid argument.", | ||
"innererror": {"code": "InvalidParameter", "message": "The parameter Locale | ||
is invalid: The language code is invalid or not supported."}}}' | ||
headers: | ||
apim-request-id: c72b100e-f260-4bd3-874f-3354e1b08e83 | ||
content-length: '200' | ||
apim-request-id: e6c4d122-9c19-4bfb-9d69-f5914cfc29b4 | ||
content-type: application/json; charset=utf-8 | ||
date: Tue, 11 May 2021 03:12:51 GMT | ||
date: Thu, 30 Sep 2021 17:06:34 GMT | ||
strict-transport-security: max-age=31536000; includeSubDomains; preload | ||
transfer-encoding: chunked | ||
x-content-type-options: nosniff | ||
x-envoy-upstream-service-time: '897' | ||
x-envoy-upstream-service-time: '581' | ||
status: | ||
code: 400 | ||
message: Bad Request | ||
url: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1/prebuilt/receipt/analyze?includeTextDetails=false&locale=not%20a%20locale | ||
url: https://region.api.cognitive.microsoft.com/formrecognizer/documentModels/prebuilt-receipt:analyze?locale=not%20a%20locale&stringIndexType=unicodeCodePoint&api-version=2021-09-30-preview | ||
version: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.