-
Notifications
You must be signed in to change notification settings - Fork 2
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
Error when creating token file #9
Comments
Hi, the development branch should work. I am waiting in #8 to get feedback about it. But it looks like something is not working. Let me check it again on my side. |
I fixed it in the development branch. Unfortunately I have no account anymore to test it, because my time for free usage is over. |
Yes it's a shame that they started the payed access. I cloned the branch again and now I get just the following feedback: |
I added my credentials in the niu-cloud-connector library and ran the test:
|
My guess is that we have changes in the protocol as mentioned here: |
Yes, it looks like. I will have a look what they did in the ha component and see whether I can update accordingly. Let's see whether I can download the current niu app and disassemble it too. |
Everything should work now again. The problem was that v2 of the authentication API support stopped. Now I am using the v3 of the authentication API. Please try again and don't forget to update the submodule too. If successful, I will merge it to the master branch and release a new version. I plan an update to nodejs v20.x.x LTS later (my stupid virtual machine don't like the latest debian at the moment). Currently I am using v18.13.0 |
I'm still getting the feedback "internal error." grant_type, scope and app_id are missing. |
I tried to include the mentioned parameters and also to switch over to md5-hex, but that didn't help so far. |
Sounds like you didn't update the git submodule. I verified with an account and everything was working. .md5 hash is already considered. |
Do you have any recommendation how to do that? |
Can you go inside ./libs/niu-cloud-connector and check there the last log? |
I searched for the log file but wasn't able to find it. Strangely I still get this error, when running the test of the interface lib:
Is it because the domain can't be resolved to an IP? |
Hmm ... looks like. Are you in a docker container or something like that? BTW can you remove the whole local repository on your hard disk and clone again the master branch? Use the following commands to clone, install and create a token. I am interesting whether you still get the connection refused.
|
That just gave me the hint I needed. |
Hi there,
is there a known problem with the communication protocol?
Main branch gave me some protocol errors, so I tried the development branch as it was more recent.
When I want to create the token file, I get the following error:
The text was updated successfully, but these errors were encountered: