GithubHelp home page GithubHelp logo

404 and 401 errors about glance HOT 9 OPEN

fmontemorano avatar fmontemorano commented on August 16, 2024
404 and 401 errors

from glance.

Comments (9)

ddellspe avatar ddellspe commented on August 16, 2024

You need to use:
https://MYSITE/api/v1/entries/sgv.json

from glance.

fmontemorano avatar fmontemorano commented on August 16, 2024

Hmmm. This gives me a 401 error
https://MYSITE/api/v1/entries/sgv.json

For reference, I followed these steps: https://navid200.github.io/xDrip/docs/Nightscout/GoogleCloud.html

Previously I had tried railway.app but it gave me the same errors as mentioned above.

from glance.

ddellspe avatar ddellspe commented on August 16, 2024

You might need to use:
https://ThisIsMyPassword@MYSITE/api/v1/entries/sgv.json

It seems the default configuration via google is completely password protected which is set up that way due to the AUTH_DEFAULT_ROLES being set to denied

from glance.

Rytiggy avatar Rytiggy commented on August 16, 2024

Hey! In your browser if you navigate to https://MYSITE/pebble what does the data look like? Could you send me it?

I know that there is an issue currently with some / all nightscout sites hosted on https://ns.10be.de where the modified version that they have isn't returning the bgs key on the json object which is what Glance uses.

from glance.

fmontemorano avatar fmontemorano commented on August 16, 2024

Hey, @Rytiggy,

this https://MYSITE/pebble returns {"status":401,"message":"Unauthorized","description":"Invalid/Missing"}
this https://ACCESS_TOKEN@MYSITE/pebble returns "This site can’t be reached"
this https://API_SECRET@MYSITE/pebble returns "This site can’t be reached"

Would you like me to send you the MYSITE and ACCESS_TOKEN to your gmail so you can try it out?

Hey, @ddellspe

this https://ACCESS_TOKEN@MYSITE/api/v1/entries/sgv.json returns "This site can’t be reached"
this https://API_SECRET@MYSITE/api/v1/entries/sgv.json returns "This site can’t be reached"

from glance.

Rytiggy avatar Rytiggy commented on August 16, 2024

Sure but but please do not send me the access token you use. create a new one so you can kick me out after: https://nightscout.github.io/nightscout/security/#create-a-token

My email is [email protected]

from glance.

bernienightscout avatar bernienightscout commented on August 16, 2024

is this problem solved now?

im using 10be too

from glance.

Rytiggy avatar Rytiggy commented on August 16, 2024

I am not currently using nightscout, please report back if its working for you guys and if 10be has fixed the issue on their end.

from glance.

Stevio54 avatar Stevio54 commented on August 16, 2024

So, for those looking at this, the problem is in the settings. If nightscout is set to "private" and requires a token for access, it would normally do this with something like this: https://mysite/pebble?token=MYTOKEN

This will not work here, because in the custom endpoint settings, it will add queryParams to the URL you provide it, and by default it adds "?count=47" which would create a URL like this:

https://mysite/pebble?token=MYTOKEN?count=47 which is a malformed url, it should be:

[https](https://mysite/pebble?token=MYTOKEN&count=47

emphasis on the ampersand there.

The quick workaround is to make your nightscout site public, if your comfortable with that and not require a token in the URL.

If I find some time I will try and build a pull request to fix this going forward.

from glance.

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.