# SignIn never returns and awaits for forever

**URL:** <https://discourse.openiap.io/t/signin-never-returns-and-awaits-for-forever/2018>\
**Category:** Random\
**Created:** [January 30, 2025, 12:03pm UTC](https://discourse.openiap.io/t/signin-never-returns-and-awaits-for-forever/2018 "2025-01-30T12:03:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Morphyum](https://discourse.openiap.io/user_avatar/discourse.openiap.io/morphyum/32/2012_2.png) [@Morphyum](https://discourse.openiap.io/u/Morphyum)\
**Post date:** [January 30, 2025, 12:03pm UTC](https://discourse.openiap.io/t/signin-never-returns-and-awaits-for-forever/2018/1 "2025-01-30T12:03:19Z")

</div>

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:

```auto
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?

---

<div class="post-metadata">

**Author:** ![Allan\_Zimmermann](https://discourse.openiap.io/user_avatar/discourse.openiap.io/allan_zimmermann/32/12_2.png) [@Allan\_Zimmermann](https://discourse.openiap.io/u/Allan_Zimmermann)\
**Post date:** [January 30, 2025, 12:30pm UTC](https://discourse.openiap.io/t/signin-never-returns-and-awaits-for-forever/2018/2 "2025-01-30T12:30:49Z")

</div>

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 )

---

<div class="post-metadata">

**Author:** ![Morphyum](https://discourse.openiap.io/user_avatar/discourse.openiap.io/morphyum/32/2012_2.png) [@Morphyum](https://discourse.openiap.io/u/Morphyum)\
**Post date:** [January 30, 2025, 1:06pm UTC](https://discourse.openiap.io/t/signin-never-returns-and-awaits-for-forever/2018/3 "2025-01-30T13:06:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://discourse.openiap.io/uploads/default/original/2X/a/a1ca7b164ac9a826839704d9ac82c7b5e6bcf557.png) [@system](https://discourse.openiap.io/u/system)\
**Post date:** [February 2, 2025, 1:07pm UTC](https://discourse.openiap.io/t/signin-never-returns-and-awaits-for-forever/2018/4 "2025-02-02T13:07:07Z")

</div>

Closed on February 2, 2025, 1:07pm UTC

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