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

Uploading to Nightscout 15.0.2 not work #193

Open
Stan-Di opened this issue Aug 23, 2024 · 7 comments
Open

Uploading to Nightscout 15.0.2 not work #193

Stan-Di opened this issue Aug 23, 2024 · 7 comments

Comments

@Stan-Di
Copy link

Stan-Di commented Aug 23, 2024

While testing uploading from Juggluco, I found out that uploading works fine in Nightscout 14.2.6, but does not work in Nightscout 15.0.2 - error java.io.FileNotFound ***/api/v1/entries

How this can be fixed?

@Stan-Di
Copy link
Author

Stan-Di commented Aug 23, 2024

I tested "test v3" in Juggluco and it also working in Nightscout 15.0.2! - https://termux-ssh.99ns.ru/

@Stan-Di
Copy link
Author

Stan-Di commented Sep 13, 2024

I spent a lot of time on tests, but I never got a result. But I was confused that one of my users has everything working.

I continued to search for the problem today. At first I tried disabling https, but that didn't help either. I tried changing all sorts of passwords and addresses on my server - it didn't help either. I tried to change the telecom operators - and it didn't help.

But now I tried to enter the Nightscout address by ip (setting up Nginx of course) and everything worked!

I repeat once again: at the same time, xDrip and AndroidAPS work by domain name!

I do not know how to fix it and do not understand the error java.io.FileNotFoundException but I think there is some problem in the code or in the library... Why is domain name access not working?

If you need additional debug logs, I am ready to provide

@Stan-Di
Copy link
Author

Stan-Di commented Sep 13, 2024

jug

Screenshot

@j-kaltes
Copy link
Owner

j-kaltes commented Sep 13, 2024

The uploader to Nightscout is developed for 15.0.2. I can produce your error message by misspelling the api-secret.
It should have the same value as

export API_SECRET=

when you run Nightscout yourself. It should not be the access token used for v3. See left menu->Settings->Uploader->Help

@Stan-Di
Copy link
Author

Stan-Di commented Sep 13, 2024

I did not change the api_secret when I made access by IP, not by site name.

I think the problem is in DNS, because I gave the API secret and site name to another person and everything worked! I can also give you the address for testing. But unfortunately it does not work for me and another person from another country.

If you tell me how to make logs, I will provide them to you

@j-kaltes
Copy link
Owner

j-kaltes commented Sep 13, 2024

I fix only bugs in Juggluco.

@Stan-Di
Copy link
Author

Stan-Di commented Sep 14, 2024

Then please tell me what libraries are used for the connection? Could they be the problem? Do they require Google Services?

I now tried to establish a connection again from a device on Android 8.1 and there is no connection even via IP and local network. Of course, I copy the address and api_secret from Juggluco and access this data via Chrome. I had to install xDrip and then everything worked. But I would like to exclude xDrip

I'm trying v1 and v3 again now.

v1
v3

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

No branches or pull requests

2 participants