-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Unable to parse JSON response (yesterday I was) #2217
Comments
I recovered my last version of the project: it had restsharp 110.2.0 and it was Ok. |
What's the code for Also, |
This would work: var response = client.ExecuteGet<Torneo[]>(request); |
Sorry I missed the class(es):
I returned to 110.2.0 and I have no problems. |
When you say this
what does it mean? |
Sorry .. simply that in that day I forgot that I had a library update to 111.1.0. |
That I understand, but I still don't know what you've got with 111.0 |
Version 111.1.0 does not parse the json string that 110.2.0 does. |
Sorry, I don't know how to help you. If you can create a reproduction repo, it can be fixed. Otherwise, it's too hard as you have some JSON and some classes on your side, which I can't see. RestSharp has a bunch of tests for JSON calls and all of them pass on the latest version, so I am not sure what is wrong there. |
Today I updated the verion to the lastone at this moment: 111.3.0.
The error is that response.Data is null.
and the class(es) is:
Again, with version 110.2.0 everyting is ok. |
Please spend 10 minutes of your time and compose a repro available for public in a GitHub repository. |
Hi there,
I'm developing a C# app by vs2022.
I installed RestSharp by NuGet --> version 111.1.0
Some JSON replies that until yesterday was parsed, now they are not. (???)
The request is (contains two requests ..):
The class is:
The response is the following (copy and pasted from the debugger:
The response is without any exception, I set the client members as
and Data is null without errors.
If I visualize the Content member with the JSON viewer I correctly see:
![Screenshot 2024-05-28 160456](https://private-user-images.githubusercontent.com/8493374/334446917-6c6e22e7-0e31-4ae0-9699-bd4b9c7614bd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM5ODgzOTksIm5iZiI6MTcyMzk4ODA5OSwicGF0aCI6Ii84NDkzMzc0LzMzNDQ0NjkxNy02YzZlMjJlNy0wZTMxLTRhZTAtOTY5OS1iZDRiOWM3NjE0YmQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgxOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MThUMTMzNDU5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZDgzNmQzOWEwODZkMGZhY2Y5OTlhMjVkMTI3YjMxMWRmZTM4OTllYjkxODFhYzNkZjYyODIzNDA0ZGI5NTBlNSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.x_3KLT8TtfQDW-7qEv8JajfGBSzS4XvKNmD3P4UbVbQ)
Just one note: the contentType is text/html --> is it misunderstood ??
Thanks!
The text was updated successfully, but these errors were encountered: