Skip to content

Diagnostics: Diagnostics display the incorrect text for the 404/1002 Status code #5104

@NaluTripician

Description

@NaluTripician

We are continuously addressing and improving the SDK, if possible, make sure the problem persist in the latest SDK version.

Describe the bug

Currently during diagnostics generation the 404 / 1002 status code displays as NotFound / PartitionKeyRangeGone instead of the correct, NotFound / ReadSessionNotAvailable. This is due to the fact that the 1002 substatus code is overloaded.

Fix should occur here:

this.jsonWriter.WriteStringValue(storeResult.SubStatusCode.ToString());

To Reproduce
Steps to reproduce the behavior. If you can include code snippets or links to repositories containing a repro of the issue that can helps us in detecting the scenario it would speed up the resolution.

Expected behavior
A clear and concise description of what you expected to happen.

Actual behavior
Provide a description of the actual behavior observed.

Environment summary
SDK Version:
OS Version (e.g. Windows, Linux, MacOSX)

Additional context
Add any other context about the problem here (for example, complete stack traces or logs).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions