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

Error syncing domoticz devices. Domotics says "Deprecated RType () for API request" #88

Closed
d-EScape opened this issue Feb 2, 2024 · 4 comments · Fixed by #89
Closed

Comments

@d-EScape
Copy link

d-EScape commented Feb 2, 2024

Trying to switch from dzga to dzga-flask, but besides the reverse proxy challenges I have been unsuccessful connecting it to Domoticz.

Running the latest Domitcz (2024.4) and the latest DZGA-Flask
Every time i press the sync devices button in dzga-flask I get an error in dzga-flask and the domoticz log says:
"Status: [WebServer] Deprecated RType () for API request. Call ignored, please use correct API Command! (172.17.0.7)".

The console log for dzga-flask shows:
"http://192.168.19.222:8080 "GET /json.htm?custom=sync HTTP/1.1" 200 22"

Seems Domitcz is no longer fulfilling the deprecated api syntax. I don't know it the sync command mentioned above is the culprit, but this is all the relevant logging I could find.

DewGew added a commit that referenced this issue Feb 2, 2024
@DewGew DewGew mentioned this issue Feb 2, 2024
@DewGew DewGew linked a pull request Feb 2, 2024 that will close this issue
@DewGew DewGew closed this as completed in #89 Feb 2, 2024
@DewGew
Copy link
Owner

DewGew commented Feb 2, 2024

Trying to switch from dzga to dzga-flask, but besides the reverse proxy challenges I have been unsuccessful connecting it to Domoticz.

Running the latest Domitcz (2024.4) and the latest DZGA-Flask Every time i press the sync devices button in dzga-flask I get an error in dzga-flask and the domoticz log says: "Status: [WebServer] Deprecated RType () for API request. Call ignored, please use correct API Command! (172.17.0.7)".

The console log for dzga-flask shows: "http://192.168.19.222:8080 "GET /json.htm?custom=sync HTTP/1.1" 200 22"

Seems Domitcz is no longer fulfilling the deprecated api syntax. I don't know it the sync command mentioned above is the culprit, but this is all the relevant logging I could find.

Nothing to do the this error in domoticz logs. Its something else. Try running manually to get more logs.
"Deprecated RType () for API request" is fixed in latest

@DewGew DewGew reopened this Feb 2, 2024
@d-EScape
Copy link
Author

d-EScape commented Feb 2, 2024

The RType was indeed not the (only) cause of my problems, but would always and immediately occur after pressing the sync button. The message is gone now.

The error message might have been misleading, because synchronization would also fail when action on google failed. That seemed to be my real problem.

I eventually got dzga-flask working using my existing action on google, but ran into some strange things along the way. If I have some more time I will have to look into that.

For some reason I could not get a newly created action on google to work. It says it is connected and than fails with a "something went wrong". Using the same dzga-flask docker, domoticz and nginx setup.

Before I got that far, I didn't even see the expected traffic on nginx and it looked like dns-rebind protection was blocking it on the router. For some reason traffic for the existing ("classic") dzga service got through (was allready working and kept working). Very strange, since they both used the same fulfillment, oath and token url's (subdomain) and where behind the same nginx proxy (they were not running at the same time of course).
Edit: I think this was only a problem from inside my own lan, when the google home app was trying to login to dzga (from a local ip). I was able to login from my phone after I turned of wifi. Will a sync initiated form the dzga-fask ui fail until actions on google was actually logged in and synced from the phone? That would explain why the old dzga did not have the networking problem. In that case the error message could have been more informative.

I would love to hear if there is a logical explanation, otherwise we could close this issue, since the original problem is fixed. Thanks!

@DewGew
Copy link
Owner

DewGew commented Feb 3, 2024

#44 same issue

@d-EScape
Copy link
Author

d-EScape commented Feb 3, 2024

The original issue (error message) is fixed, so I will close this issue.

The remaining issue might indeed be related to #44. Although I am able to run dzga-flask behind nginx. As long a I use my existing (old) actions on google setup. The newly created one doesn't work (I followed the instructions by the letter). If I can figure out the difference between them I will report it in #44.

@d-EScape d-EScape closed this as completed Feb 3, 2024
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

Successfully merging a pull request may close this issue.

2 participants