The error means the data format (probably json, you don’t identify) is invalid. This is typically the server returning an html error page. Be sure the server logs errors. Use the debugger to dump the http response body to debug further.
Decoder ran into invalid data problem on .net maui ios?
Miso Tomovski
20
Reputation points
Hello,
I am using .net maui to build a mobile application for android and iOS. An asp.net core is used for the backend.
As of recently I started receiving an issue when retrieving data from all of the API endpoints - with the error being - Decoder ran into invalid data. Without any changes to the http and network logic whatsoever.
This is only applicable for iOS, while on Android is working just fine. I am using .net 8.0 for my maui project.
Many thanks,
Miso