# SG Desktop login Uncaught Exception! undefined method 'get\_user' for nil:NilClass

**URL:** <https://community.shotgridsoftware.com/t/sg-desktop-login-uncaught-exception-undefined-method-get-user-for-nil-nilclass/13426>\
**Category:** Uncategorized\
**Created:** [September 8, 2021, 5:18pm UTC](https://community.shotgridsoftware.com/t/sg-desktop-login-uncaught-exception-undefined-method-get-user-for-nil-nilclass/13426 "2021-09-08T17:18:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dschwarz](https://avatars.discourse-cdn.com/v4/letter/d/d07c76/32.png) [@dschwarz](https://community.shotgridsoftware.com/u/dschwarz)\
**Post date:** [September 8, 2021, 5:18pm UTC](https://community.shotgridsoftware.com/t/sg-desktop-login-uncaught-exception-undefined-method-get-user-for-nil-nilclass/13426/1 "2021-09-08T17:18:03Z")

</div>

This just started this morning after logging out and attempting to log back in. I am in the process of migrating the site so wondering if something changed to break the ability to login from SG Desktop. We still have to use the SG login with SG Desktop until the migration is complete.  
We’re running SG Desktop v1.5.9.

![Screen Shot 2021-09-08 at 10.15.52 AM](https://global.discourse-cdn.com/shotgunsoftware/original/2X/d/dbc43da677956014795bd275010a76d7ec62a609.png)

---

<div class="post-metadata">

**Author:** ![dschwarz](https://avatars.discourse-cdn.com/v4/letter/d/d07c76/32.png) [@dschwarz](https://community.shotgridsoftware.com/u/dschwarz)\
**Post date:** [September 8, 2021, 5:28pm UTC](https://community.shotgridsoftware.com/t/sg-desktop-login-uncaught-exception-undefined-method-get-user-for-nil-nilclass/13426/2 "2021-09-08T17:28:20Z")

</div>

I tried upgrading to version 1.7.0 but it’s giving the same error.

---

<div class="post-metadata">

**Author:** ![dschwarz](https://avatars.discourse-cdn.com/v4/letter/d/d07c76/32.png) [@dschwarz](https://community.shotgridsoftware.com/u/dschwarz)\
**Post date:** [September 8, 2021, 6:16pm UTC](https://community.shotgridsoftware.com/t/sg-desktop-login-uncaught-exception-undefined-method-get-user-for-nil-nilclass/13426/3 "2021-09-08T18:16:44Z")

</div>

So it appears that there was an issue and the Autodesk team has resolved it. Thanks!

---

<div class="post-metadata">

**Author:** ![mmoshev](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/mmoshev/32/476_2.png) [@mmoshev](https://community.shotgridsoftware.com/u/mmoshev)\
**Post date:** [September 9, 2021, 6:46am UTC](https://community.shotgridsoftware.com/t/sg-desktop-login-uncaught-exception-undefined-method-get-user-for-nil-nilclass/13426/4 "2021-09-09T06:46:53Z")

</div>

What was the resolution? Something on the server side? Or another update of Desktop?

---

<div class="post-metadata">

**Author:** ![dschwarz](https://avatars.discourse-cdn.com/v4/letter/d/d07c76/32.png) [@dschwarz](https://community.shotgridsoftware.com/u/dschwarz)\
**Post date:** [September 9, 2021, 4:16pm UTC](https://community.shotgridsoftware.com/t/sg-desktop-login-uncaught-exception-undefined-method-get-user-for-nil-nilclass/13426/5 "2021-09-09T16:16:19Z")

</div>

Well I managed to get it working for my users that had logged out during this period by deleting the /Shotgun cache directory and having it download again. Fortunately this issue did not last too long and ShotGrid support found the issue and resolved it. It was a “_Some users may have trouble connecting to ShotGrid via the API or a desktop application. We have identified the issue and are proceeding to fix it._”.  
This morning has been busy assisting all of my people using RV of clearing all ShotGrid site connection details and then logging back in. RV was still kind of working but the version notes and sometimes site browsing was throwing up an Oops error. Ya gotta love “Oops errors”. 😉
