Decoder ran into invalid data problem on .net maui ios?

Miso Tomovski 20 Reputation points
2024-05-24T11:54:55.22+00:00

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

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,062 questions
0 comments No comments
{count} votes

Accepted answer
  1. Bruce (SqlWork.com) 59,056 Reputation points
    2024-05-25T18:24:30.85+00:00

    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.


0 additional answers

Sort by: Most helpful