parse-community / Parse-SDK-dotNET

Parse SDK for .NET, Xamarin, Unity.
http://parseplatform.org
Apache License 2.0
322 stars 260 forks source link

.NET client not able to connect to parse-server anymore #355

Closed oyvindvol closed 3 years ago

oyvindvol commented 3 years ago

As of today our .net client was not able to connect to our parse-server hosted on Heroku anymore. Yesterday (and for the previous years) it has worked.

Parse-server version 4.5.0 (latest) Parse-dotNET-sdk version 1.7.0 (latest)

The .Net client is a .NET MVC4 web app, and we initialize the connection like this:

ParseClient.Initialize(new ParseClient.Configuration
    {
                ApplicationId = <parseApplicationId>,
                WindowsKey = <parseWindowsKey>,
                Server = <parseServerUrl>
    });

The error occurs whenever we are using any of the ParseClasses from the SDK, for example ParseUser.LogInAsync() or ParseUser.RequestPasswordResetAsync() functions. In that case we get a NullReferenceExeption on ParseUser. We think there must be some error in the connection with the server, since there are even no calls to the Heroku server, for example when pressing Log in. It fails on the client server code with NullReferenceExeption, so it seems that ParseUser is not made available due to some connection initailization error.

Stacktrace .net client:

at Parse.Internal.HttpClient.<>c__DisplayClass16.<ExecuteAsync>b__d(Task`1 t) at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke() at System.Threading.Tasks.Task.Execute() at Parse.Internal.InternalExtensions.<>c__DisplayClass7`1.<OnSuccess>b__6(Task t) at System.Threading.Tasks.ContinuationResultTaskFromTask`1.InnerInvoke() at System.Threading.Tasks.Task.Execute() at Parse.Internal.InternalExtensions.<>c__DisplayClass7`1.<OnSuccess>b__6(Task t) at System.Threading.Tasks.ContinuationResultTaskFromTask`1.InnerInvoke() at System.Threading.Tasks.Task.Execute() at Parse.Internal.InternalExtensions.<>c__DisplayClass7`1.<OnSuccess>b__6(Task t) at System.Threading.Tasks.ContinuationResultTaskFromTask`1.InnerInvoke() at System.Threading.Tasks.Task.Execute() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()

Any help is much appreciated.

mtrezza commented 3 years ago

I'm closing this as it does not seem to be a Parse Platform issue.

For help with Parse Platform, here are some resources you can try:

Feel free to comment if you have any questions and we can re-open this issue.

Please avoid cross-posting, as mostly the same people are active on either site (Parse Community Forum, GitHub, StackOverflow). Instead, please pick the most appropriate site to post and if you don't get a satisfactory answer within reasonable time and you decide to post on another site, please make sure to link the posts with each other.