SignIn never returns and awaits for forever

Hi i am currently playing around with the SDKs and i can’t get the dotnet SDK to log into the server. The server is a self hosted opencore.

I can .connect just fine, but when i call:

var (jwt, error, success) = await client.Signin(“marvstestbot”,“marvstestbot”);

the program is stuck waiting for it to return. The log shows the following:

2025-01-30T12:00:33.510291Z DEBUG signin: openiap_client: Attempting sign-in using SigninRequest { username: "marvstestbot", password: "marvstestbot", jwt: "", ping: false, validateonly: false, agent: "dotnet", version: "0.0.18", longtoken: false }
2025-01-30T12:00:33.510827Z TRACE signin:send:send_noawait:send_envelope: openiap_client: Sending signin message, in the thread
2025-01-30T12:00:33.510991Z DEBUG openiap_client::ws: Send #2 #naqyf6 signin message
2025-01-30T12:00:33.784019Z TRACE parse_incomming_envelope: openiap_client: parse_incomming_envelope, command: signinreply
2025-01-30T12:00:33.784261Z DEBUG parse_incomming_envelope: openiap_client: Received #2 #o16lksctt (reply to #naqyf6) signinreply message
2025-01-30T12:00:33.784503Z DEBUG signin: openiap_client: Sign-in reply received
2025-01-30T12:00:33.784641Z DEBUG signin: openiap_client: Sign-in successful
2025-01-30T12:00:33.784786Z TRACE signin: openiap_client: Set connected: Signedin from Connected

any idea what i am doing wrong?

embarrassing … you found an error in my code, for handling callbacks with signin() thank you for reporting this.

it MUST work, but generally you are not suppose to call it, you are suppose to use the environment variables. ( the agent will inject the correct token, and while testing in vs code you can use the openiap extension to setup the correct environment variables )

I have pushed a new version 0.0.19 that solves the callback issue (it maybe take 10-15 minutes before nuget makes it public, they need to scan it first )

Thank you for the fast update i can confirm it works now.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.