Closed uparix closed 6 years ago
Ut oh! Thanks for reporting this, @uparix. How did you go about adding the token? I just tried the process again from the README.md and it worked.
The rough steps looked something like this:
Selecting the repo
and user
scopes:
Clicking the Copy Token button
Going into the GitHub action and clicking "Settings"
Chose "Set GitHub access token from clipboard"
Which gave me this:
My hunch would be that you didn't select the user
scope when generating the token, which would make this similar to https://github.com/bswinnerton/launchbar-github/issues/37. Is that true @uparix?
I just tested this out and it looks like it works even if you don't select the user
scope. @uparix, could you outline the steps you took and if the instructions above help?
Just tried it again as given in your instructions, but have the same result. Maybe the only difference is that I have two factor auth enabled. Not sure if that has an effect. I have selected user and repo scope, but it fails on line 38.
Does it fail on step 4 or step 5?
Step 5
I verified that I have the access token in the clipboard
Now it worked. I created a new access token. But not sure if that was the issue. I guess you can close this issue.
Hmph. That's bizarre, I'm not sure what exactly is causing this, but I'm relatively confident that the issue is happening right here.
I'll try to see if I can find a way to reproduce the issue. In the mean time, it'd be very helpful to see what the response is coming back from GitHub. You can do so by taking these steps:
Opening up LaunchBar's Action Editor (I usually do this by invoking LaunchBar and typing "Action"
Choosing the GitHub action on the left
Enabling Debug Log
Quit and reopen LaunchBar
Repeating the steps to try and set the access token
Open up the Console application (/Applications/Utilities/Console.app
)
Filter the requests by action=launchbar-github response=
From here, you should see the responses coming back from GitHub. As long as there is no sensitive information (like your token
), it'd be great if you could post that here ❤️.
Now it worked. I created a new access token. But not sure if that was the issue. I guess you can close this issue.
Ah, interesting. Were you reusing an older token, or one that was created just for LaunchBar?
I'm just curious for anyone else who may run into this problem.
👋 @uparix,
I've created http://launchbar-github.com to hopefully assist with this sort of thing in the future. By clicking on "Install" on that page, it should go through the GitHub OAuth dance and automatically configure your OAuth token (as of version v0.2.6). No more having to go to https://github.com/settings/tokens/new and manually checking checkboxes.
I hope this helps people out in the future.
For now, I'm going to close out this issue since it sounds like you were able to resolve the problem. Thanks again for reporting it, and let me know if you have any feedback!