Closed ValerCheck closed 3 years ago
I have found, that my issue in the trailing slash in ServerURI /
. In order to make it working, my custom ServerURI has to contain /
in the end so it would end with parse/
. Otherwise a lot of similar exceptions like I have described are appearing.
Moreover, I have a Xamarin project which also was giving me not descriptive exception, like Mono_UnhandledException
in GetCustomAttribute
. I have figured out this issue also. I had to setup ParseClient properly with MetadataMutator and custom EnvironmentData/HostManifestData for Xamaring project. Code above won't work for Xamarin, because default HostManifestData.Inferred
calls Assembly.GetEntryAssembly()
which returns null
. In turn there is a code which calls GetCustomAttribute
on the returned null
and obviously because of that I was getting described unhandled exception. So, the section Use In Unity Client was quite helpful.
New Issue Checklist
Issue Description
I have set up my own parse server and dashboard with free dynos on heroku. I was able to run some queries with PostMan and create users, operate with data. However when I use the most fresh Parse SDK version via nuget package v.2.0.0-develop-1 I have no possibility to access any data from my server.
Steps to reproduce
var user = client.LogInAsync("username", "password").GetAwaiter().GetResult(); var token = client.GetCurrentUser().SessionToken; Console.WriteLine(token);
And next exception is obtained in the result:
Parse.Infrastructure.ParseFailureException: 'Invalid or alternatively-formatted response recieved from server.'
Expected Outcome
Successfully signed up/logged in user
Environment
Server
4.5.0
Win10
heroku
Database
Postgres
13
heroku postgres
Client
2.0.0-develop-1