Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

listByRequest errors on returned payload #4310

Open
2 of 9 tasks
Phantom140220 opened this issue Mar 21, 2024 · 0 comments
Open
2 of 9 tasks

listByRequest errors on returned payload #4310

Phantom140220 opened this issue Mar 21, 2024 · 0 comments
Assignees
Labels
customer-reported question Further information is requested

Comments

@Phantom140220
Copy link

Phantom140220 commented Mar 21, 2024

Link to sample

https://learn.microsoft.com/en-us/rest/api/apimanagement/reports/list-by-request?view=rest-apimanagement-2022-08-01&tabs=HTTP

Library name and version

@azure/arm-apimanagement 9.1.0

Language of the Sample

  • C#/.NET
  • Java
  • JavaScript/TypedScript
  • Python
  • Golang
  • Other - Please specify in Issue details field

Sample Issue Type

  • Sample not working
  • Sample missing
  • Do not understand sample

Issue details

When trying the sample in typescript following error is thrown:
RestError: Error "SyntaxError: Unexpected token  in JSON at position 0" occurred while parsing the response body - {"value":

All the other report functions work like expected

Expected behavior

Like described in the sample
an array that looks like
{
"value": [
{

Actual behavior

RestError: Error "SyntaxError: Unexpected token  in JSON at position 0" occurred while parsing the response body - {"value":

Reproduction Steps

follow the sample

Environment

ES2022

@microsoft-github-policy-service microsoft-github-policy-service bot added question Further information is requested customer-reported labels Mar 21, 2024
@kazrael2119 kazrael2119 self-assigned this Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-reported question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants