Unity icon indicating copy to clipboard operation
Unity copied to clipboard

Login Issues

Open Danickar opened this issue 4 years ago • 41 comments

Prerequisites

  • Be sure to run with tracing enabled to capture runtime details in the log file
  • Include the log file in the PR.
    • On Windows, the extension log file is at %LOCALAPPDATA%\GitHubUnity\github-unity.log
    • On macOS, the extension log file is at ~/Library/Logs/GitHubUnity/github-unity.log
    • On linux, the extension log file is at ~/.local/share/GitHubUnity/github-unity.log

Description

When my students try to login they get an error message "Error validating token." I know the internet filter isn't blocking GitHub because the students can login to the GitHub website and the GitHub desktop app.

Steps to Reproduce

  1. Click on Sign In for GitHub for Unity
  2. Click Sign in with your browser
  3. After the browser opens and does its thing, going back to Unity has the error message.

Expected behavior: [What you expect to happen] GitHub signs in so students can access repositories directly in Unity.

Actual behavior: [What actually happens] Does not sign in with Error Validating Token

Reproduces how often: [What percentage of the time does it reproduce?] It reproduces 100% for my students.

Additional Information

Any additional information, configuration or data that might be necessary to reproduce the issue.

We are using Unity LTS 2020.3.14 with Unity GitHub 1.4 github-unity.log

Danickar avatar Sep 10 '21 19:09 Danickar

i got the same issue

CarrierChristopher21 avatar Sep 12 '21 12:09 CarrierChristopher21

I also got the same issue with Unity LTS 2020.3.3f1 and Unity GitHub 1.4

mrdaljama avatar Sep 14 '21 05:09 mrdaljama

I also had the same issue on Unity 2021.1.20f1

AlexGalindoFreire avatar Sep 14 '21 17:09 AlexGalindoFreire

Same issue on Unity 2019.3.3f1. I recently got an email from GitHub about changing my personal authentication token. I'm not a Git expert, so I just did what it said, but I think it messed up my account for GitHub for Unity. When I click the normal sign in button, I get an error that says "Not Found" and when I click sign in with browser, I get the same error as above. This is regardless of whether I use my password or authentication token as the password. I've been able to work around it by signing in using the command line with my authentication token.

AlecMuchnok avatar Sep 15 '21 18:09 AlecMuchnok

I have the same error when I dont put the required credentials

yuran09 avatar Sep 24 '21 08:09 yuran09

Same problem

0xEquinox avatar Oct 04 '21 00:10 0xEquinox

I have the same "Not Found" issue. Signing in with a browser doesn't work either (tried Firefox and Chrome). It just hangs after I auth with github and says "Error Validating Token." I couldn't work around this with the github console because it would immediately close as soon as it opened.

darkfoxtokoyami avatar Oct 06 '21 06:10 darkfoxtokoyami

Yeah happened to me 2021.1.13f1 Shame this project is dead, does anyone know of a working alternative?

Crazyafk avatar Oct 15 '21 14:10 Crazyafk

Same here

kevduc avatar Oct 21 '21 05:10 kevduc

same here

demolen avatar Oct 21 '21 19:10 demolen

Yeah happened to me 2021.1.13f1 Shame this project is dead, does anyone know of a working alternative?

I ended up not logging in and setting up the remote and publishing the first time directly with VSCode (I guess you could also do it from the command line). Now I can do everything fine from the plugin.

kevduc avatar Oct 21 '21 21:10 kevduc

happens to me too. And in turn whenever I wish to push to my repository, I always get an error message "Device not configured". Repo details are all correct except for this sign in bug. Im using github desktop too so I know the local settings are properly configured as wel. Is this somehow related too to why I am having trouble pushing my changes from local to remote?

jrdndj avatar Oct 22 '21 14:10 jrdndj

Issue confirmed : last version of github for unity (1.4.0) and Unity 2020.3.21f1 (LTS) I can not login (with Username / Password or with Browser)

I finally found something : the paths to git programm (Settings\Path to git + Settings\Path to git LFS) were not set properly. I push the button "Find system Git" it solves connection issues and i could push my project.

StudioAlbert avatar Oct 27 '21 21:10 StudioAlbert

same here

bilalgrden avatar Nov 08 '21 14:11 bilalgrden

Same issue.

BenCraystonStudent avatar Nov 12 '21 22:11 BenCraystonStudent

Same issue

kennethdemaio avatar Nov 13 '21 19:11 kennethdemaio

Any fixes? I pressed "find system git" but that didn't solve my problem...

TurtleSeal avatar Nov 17 '21 16:11 TurtleSeal

Tried all of the recommendations and nothing really works. It's just totally broken for signing in - something that is kinda a fundamental ability of being able to use the plugin.

penseurai avatar Nov 19 '21 02:11 penseurai

Here's how I'm currently using it.

  1. Initialize a repository with Github desktop and add unity libraries to it.
  2. then open the project and import GitHub for unity.

Screenshot 2021-11-20 205907 3. It shows up like this. Even though I can't sign in here, I can push/pull and commit to my repository.

05Alston avatar Nov 20 '21 15:11 05Alston

I've submited a pull request with a fix https://github.com/github-for-unity/Unity/pull/1160 but it doesn't look like they are going to merge it anytime soon so you can just fix it manually.

replace line 16: type: "oauth" with: type: "token"

in %userprofile%\AppData\Local\GitHubUnity\octorun\src\api.js

chantzish avatar Jan 13 '22 18:01 chantzish

I switched to plastic scm

On Thu, Jan 13, 2022 at 12:17 PM chantzish @.***> wrote:

I've submited a pull request with a fix #1160 https://github.com/github-for-unity/Unity/pull/1160 but it doesn't look like they are going to merge it anytime soon so you can just fix it manually.

replace line 15: type: "oauth" with: type: "token"

in %userprofile%\AppData\Local\GitHubUnity\octorun\src\api.js

— Reply to this email directly, view it on GitHub https://github.com/github-for-unity/Unity/issues/1152#issuecomment-1012389620, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWQX6BKYLM56L2KKAYAHID3UV4JKHANCNFSM5DZ5KNIA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

TurtleSeal avatar Jan 13 '22 18:01 TurtleSeal

I've submited a pull request with a fix #1160 but it doesn't look like they are going to merge it anytime soon so you can just fix it manually.

replace line 16: type: "oauth" with: type: "token"

in %userprofile%\AppData\Local\GitHubUnity\octorun\src\api.js

This worked for me, thank you!

jillazalat avatar Jan 16 '22 15:01 jillazalat

I've submited a pull request with a fix #1160 but it doesn't look like they are going to merge it anytime soon so you can just fix it manually.

replace line 16: type: "oauth" with: type: "token"

in %userprofile%\AppData\Local\GitHubUnity\octorun\src\api.js

This also worked for me, thanks!

Miredly avatar Jan 19 '22 08:01 Miredly

I've submited a pull request with a fix #1160 but it doesn't look like they are going to merge it anytime soon so you can just fix it manually.

replace line 16: type: "oauth" with: type: "token"

in %userprofile%\AppData\Local\GitHubUnity\octorun\src\api.js

worked for me too. thank you so much

BensonCoolfi avatar Jan 27 '22 21:01 BensonCoolfi

I've submited a pull request with a fix #1160 but it doesn't look like they are going to merge it anytime soon so you can just fix it manually.

replace line 16: type: "oauth" with: type: "token"

in %userprofile%\AppData\Local\GitHubUnity\octorun\src\api.js

THANK YOU. this worked perfectly!!!

DougCruz avatar Jan 31 '22 22:01 DougCruz

I've submited a pull request with a fix #1160 but it doesn't look like they are going to merge it anytime soon so you can just fix it manually.

replace line 16: type: "oauth" with: type: "token"

in %userprofile%\AppData\Local\GitHubUnity\octorun\src\api.js

Worked perfectly.

For anyone on Mac, the file location is: Users\Username\Library\Application Support\GitHubUnity\octorun\src\api.js

Ross-Patterson avatar Feb 05 '22 12:02 Ross-Patterson

I've submited a pull request with a fix #1160 but it doesn't look like they are going to merge it anytime soon so you can just fix it manually.

replace line 16: type: "oauth" with: type: "token"

in %userprofile%\AppData\Local\GitHubUnity\octorun\src\api.js

This worked for me as well.

Shrammer1 avatar Feb 07 '22 20:02 Shrammer1

I've submited a pull request with a fix #1160 but it doesn't look like they are going to merge it anytime soon so you can just fix it manually.

replace line 16: type: "oauth" with: type: "token"

in %userprofile%\AppData\Local\GitHubUnity\octorun\src\api.js

You've saved us after 3 hours of searching!

AndyPorsche avatar Feb 10 '22 18:02 AndyPorsche

I've submited a pull request with a fix #1160 but it doesn't look like they are going to merge it anytime soon so you can just fix it manually.

replace line 16: type: "oauth" with: type: "token"

in %userprofile%\AppData\Local\GitHubUnity\octorun\src\api.js

Still only working like this for me, Thanks!

RaYVen1337 avatar Feb 25 '22 19:02 RaYVen1337

I've submited a pull request with a fix #1160 but it doesn't look like they are going to merge it anytime soon so you can just fix it manually.

replace line 16: type: "oauth" with: type: "token"

in %userprofile%\AppData\Local\GitHubUnity\octorun\src\api.js

Still need to do that today.

icariantk avatar Mar 19 '22 19:03 icariantk