Coder Social home page Coder Social logo

Comments (6)

jwcooper avatar jwcooper commented on August 22, 2024

I've updated the editor to change how the callback hostname setup works. It will now automatically detect whatever IP you use. You can either re-install (uninstall first), or try updating.

I had an overly complex method of setting the hostname for some reason...it should be far simpler now.

from adafruit-webide.

jwcooper avatar jwcooper commented on August 22, 2024

This was fixed in 0.1.8. If you aren't able to get to the editor, you may need to uninstall, and then re-install the editor (it will remember your bitbucket settings, so it's just a matter of waiting):
curl https://raw.github.com/adafruit/Adafruit-WebIDE/release/scripts/uninstall.sh | sh
curl https://raw.github.com/adafruit/Adafruit-WebIDE/release/scripts/install.sh | sh

from adafruit-webide.

Thiapalm avatar Thiapalm commented on August 22, 2024

Hello Justin.

Yes, now it's working. Just one question, I've forwarded a port from my router to the PI (running on fixed IP), but I am unable to login from the Internet. Has it something to do with this issue? Is it a new issue, or it's not supposed to be accessed other than locally?

Here goes the error message:

Error: failed to find request token in session
at Strategy.authenticate (/home/pi/Adafruit/WebIDE/editor/node_modules/passport-bitbucket/node_modules/passport-oauth/lib/passport-oauth/strategies/oauth.js:122:54)
at attempt (/home/pi/Adafruit/WebIDE/editor/node_modules/passport/lib/passport/middleware/authenticate.js:223:16)
at Passport.authenticate (/home/pi/Adafruit/WebIDE/editor/node_modules/passport/lib/passport/middleware/authenticate.js:224:7)
at callbacks (/home/pi/Adafruit/WebIDE/editor/node_modules/express/lib/router/index.js:162:11)
at param (/home/pi/Adafruit/WebIDE/editor/node_modules/express/lib/router/index.js:136:11)
at pass (/home/pi/Adafruit/WebIDE/editor/node_modules/express/lib/router/index.js:143:5)
at Router._dispatch (/home/pi/Adafruit/WebIDE/editor/node_modules/express/lib/router/index.js:170:5)
at Object.router as handle
at next (/home/pi/Adafruit/WebIDE/editor/node_modules/express/node_modules/connect/lib/proto.js:190:15)

at Object.handle (/home/pi/Adafruit/WebIDE/editor/server.js:105:3)

Thx

from adafruit-webide.

jwcooper avatar jwcooper commented on August 22, 2024

It should be accessible from the internet, but as it's an alpha, I'm not sure if I'd recommend it. I have tested over the internet though.

Are you on the latest version 0.1.8?

What is the URL for that error page? (you can ommit the IP address)

from adafruit-webide.

jwcooper avatar jwcooper commented on August 22, 2024

I can reproduce this. Restart the editor, and it will work. I'm setting the hostname only once, so it is caching your local IP address. If you restart the editor, and then hit from your outside IP, it will work fine. I'll fix this in 0.1.9.

service adafruit-webide.sh stop
service adafruit-webide.sh start

Then wait like 20-30 seconds for it to fully start up. Hit from your outside IP, and it should work.

from adafruit-webide.

Thiapalm avatar Thiapalm commented on August 22, 2024

Yes, you're right, it's using the local IP:

http://192.168.1.104:3000/auth/bitbucket/callback?oauth_verifier=XXXXXXXXXX&oauth_token=XXXXXXXXXXXXXXXXXX

Using the 0.1.8 (I replaced the token and verifier on the message above))

from adafruit-webide.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.