New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting up Adafruit WedIDE with Github Account #254
Comments
Did you install the WebIDE with the github flag? If not, you need to run this: redis-cli HMSET server github 1 Also, the GitHub mode isn't as streamlined as using BitBucket (mostly experimental), any issues you run into you'll likely need to work through on your own. We chose BitBucket by default, as it allows private repositories with free user accounts. The callback URL should be: Also, make sure you add the client id and client secret to the /setup page. |
Thanks jwcooper. I updated the callback URL on Github and the Client ID on the Setup page and that got me one step forward. I now get the following error: There was an error signing in. It could be any number of reasons, but first ensure that your date/time is set accurately on your Pi. For More help, visit the FAQ for assistance. To try and repair the error, by setting your date and time, click the below link. You will be redirected to the login page after 5-10 seconds to try login in again. failed to fetch user profile (status: 403 data: Request forbidden by administrative rules. Please make sure your request has a User-Agent header (http://developer.github.com/v3/#user-agent-required). Check https://developer.github.com for other possible causes.) I followed the instructions on the FAQ to reset the date (ran sudo /etc/init.d/ntp force-reload) but I am still getting the same error. I understand this is experimental. If you have any other pointers that would be great, but if not, that's ok too. Appreciate the assist. |
Try the latest version of this file: I just added a commit to add a userAgent header. It's completely untested, but it looks like a new requirement. The file should be in /usr/share/adafruit/webide/server.js |
No change I'm afraid. Still getting the same error. |
I've done a little digging, didn't come up with a solution more of clue: It appears that the module 'passport-github' (https://github.com/jaredhanson/passport-github) might need to be updated too as the one bundled doesn't appear to use the 'userAgent' variable (the parent 'passport' module may need to updated too). All this said, I tried moving the two modules out of the way and pulling down the current copied but alas, failed again (even if I removed the passport-github directory altogether?!). Maybe someone could follow this up if relevant. |
Altering package.json so that adafruit-webide depends on passport-github-0.1.5 and then running The login looks like it succeeds, and the client (browser) gets as far as "Editor settings received" then the server stops. Running the server on the console shows this as the final output (email and name anonymised):
|
I am in the same boat here, I was able to get to the edit updating passport github to 0.1.5 and then every time I load the WebIDE it dies as soon as the editor is displayed (after showing all the "loading..." data), more specifically seems to die as soon as the "Attempting to reconnect" red text is set at the top right corner:
(edited my <<my_github_email>> and <<my_username>> for clarify) Reverting back to passport-github 0.1.3 causes the same result. |
We're closing all existing issues as we have a fairly large update to the webide. Please create a new issue for any issues found once we release the new version. Thanks! |
Hi, I'm trying to get everything set up with Github instead of Bitbucket. At http://raspberrypi.local/setup I am asked for a "key" and "secret".
I created my RSA key on the PI, added it to Github and added it at http://raspberrypi.local/setup.
In order to add a "secret" I guess I need to add an Application to Github which asks me for a "Homepage URL" and "Authorization callback URL". I set both of these to http://raspberrypi.local. This provided me a "secret" which I added to http://raspberrypi.local/setup.
When I press Submit I get "Settings Successfully Configured." but when I then click "click here to log in to your Github Account", I get a 404 Page Not found.
I'm not sure what to try next. Anyone have any tips on what I am doing wrong?
The text was updated successfully, but these errors were encountered: