Azure / Azure/azure-sdk-tools

[Test Proxy] Request is not matched in playback - (likely) because of the unicode encoding

Open
#2,723 2 comments 0 reactions 1 assignee Claimed by @scbedd View on GitHub
Central-EngSys Test-Proxy
Dominant language
C#
Stars
135
Forks
260
Avg merge
3d 1h
Merged PRs (30d)
143

Description

Issue - Request is not matched in playback - (likely) because of the Unicode encoding.
Who - It's a JS test - Form Recognizer
Seen at - https://github.com/Azure/azure-sdk-for-js/pull/20264

Commit that repros - [5bdeaec](https://github.com/Azure/azure-sdk-for-js/pull/20264/commits/5bdeaec0b0391ed05f87d6e9ff36be1d8c5b1882)

```
// Differences
request: \u0022%PDF-1.7\r%\uFFFD\uFFFD\uFFFD\uFFFD\r\n81 0 obj\r\u003C\u003C/Li\u0022\n
record: \u0022%PDF-1.7\r%\uFFFD\uFFFD\uFFFD\uFFFD\r\n81 0 o\u0022\n"
```

Error below

```sh
[node-tests]
[node-tests] 1) [AAD] analysis (Node)
[node-tests] content analysis
[node-tests] pdf file stream:
[node-tests] RestError: {"Message":"Unable to find a record for the request POST https://endpoint/formrecognizer/documentModels/prebuilt-layout:analyze?api-version=2022-01-30-preview\nHeader differences:\nBody differences:\nRequest and response bodies do not match at index 10:\n request: \u0022%PDF-1.7\r%\uFFFD\uFFFD\uFFFD\uFFFD\r\n81 0 obj\r\u003C\u003C/Li\u0022\n record: \u0022%PDF-1.7\r%\uFFFD\uFFFD\uFFFD\uFFFD\r\n81 0 o\u0022\n","Status":"NotFound"}
[node-tests] at handleErrorResponse (/workspaces/azure-sdk-for-js/sdk/core/core-client/src/deserializationPolicy.ts:251:17)
[node-tests] at deserializeResponseBody (/workspaces/azure-sdk-for-js/sdk/core/core-client/src/deserializationPolicy.ts:159:43)
[node-tests] at processTicksAndRejections (internal/process/task_queues.js:95:5)
```

For now, unblocked my builds with the bodilessmatcher.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.