Skip to content

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

Closed
@oyvindvol

Description

@oyvindvol

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions