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

Miso Tomovski 20 Reputation points


I am using .net maui to build a mobile application for android and iOS. An 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,


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 ( 59,056 Reputation points

    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