JSON Parse error: Unrecognized token < parse@[native code] after attempt to login in Make It Native app
Today logging into our native app dows not work locally anymore with the Make It Native app. After entering username and password and those are processed in a nanoflow with a “Sign in” action, the mobile app shows (in Dutch): “Uw wijzigingen kunnen niet worden gesynchroniseerd (...)” and logging shows: JSON Parse error: Unrecognized token '<' parse@[native code] Does anyone recognize this? It has worked before, until today.
Axel Brink - Enexis
Yep. The call expects a JSON in the body of the response in of the request, as it usually does, but now something has gone wrong and instead of JSON an XML is received. Mendix accepts that as far as upto the JSON-import mapping, which brakes at the first unexpected character, being the ‘<’ that any xml starts with.
The difficulty here is to get to the code that does the call. That is the native login code. Probably you can’t get to it yourself and Mendix should help as it is their code.
Tim van Steenbergen
The problem disappeared after one night. Maybe VPN was blocking the connection.