Skip to content
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

Authentication from own server working with Rumpel, but not data-plugs or data-market #27

Closed
ryanswrt opened this issue Aug 7, 2016 · 2 comments

Comments

@ryanswrt
Copy link

ryanswrt commented Aug 7, 2016

Managed to get my own server running (localhost proxied through ngrok for now), and I can access Rumple and update my details, but when trying to enable a data-plug, like social-plug.hubofallthings.com, I receive a 502 after entering my PHATA.

The ngrok proxy throws a few GET /data/table 404 Not Found, but it seems to be rumpel querying missing data sources

[INFO ] [08/07/2016 13:33:22] API-Access - GET:http://a5b6c56f.ngrok.io/data/table?name=events&source=facebook:404 Not Found
[INFO ] [08/07/2016 13:33:22] API-Access - GET:http://a5b6c56f.ngrok.io/data/table?name=posts&source=facebook:404 Not Found
[INFO ] [08/07/2016 13:33:22] API-Access - GET:http://a5b6c56f.ngrok.io/data/table?name=events&source=ical:404 Not Found
[INFO ] [08/07/2016 13:33:23] API-Access - GET:http://a5b6c56f.ngrok.io/data/table?name=locations&source=iphone:404 Not Found
@augustinas
Copy link
Contributor

augustinas commented Aug 8, 2016

@TheAncientGoat Our current infrastructure setup requires that both the HAT and the data plug would be known to the MarketSquare. The 502 error results from the data plug not being able to connect to your local HAT as it cannot find it in the MS registrar.

In order to circumvent the default MS integration, you will need to download the source code of the respective data plug, disable the code responsible for doing the MS check and run the code on your local machine/server.

For example, with the Social Data Plug, open up the following file https://github.com/Hub-of-all-Things/DataPlugFacebook/blob/master/app/routes/dataPlug.js and comment out lines 23-28 and line 57. That should do the trick.

Very similar changes are required for the other two plugs.

@augustinas
Copy link
Contributor

Issue out of date

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants