Page 1 of 10
15326 - [WebServer] Depricated RType
Posted: Thursday 01 June 2023 23:18
by EdwinK
2023-06-01 23:12:13.626 Status: [WebServer] Depricated RType (cameras) for API request. Please use correct API Command!
2023-06-01 23:16:04.417 Status: [WebServer] Depricated RType (devices) for API request. Please use correct API Command!
Since this last update I get the above messages. I don't have any camera's installed at the moment.
Re: 15326 - [WebServer] Depricated RType
Posted: Friday 02 June 2023 0:01
by waltervl
Is there something else running or accessing Domoticz on the same time? That would help debugging....
Re: 15326 - [WebServer] Depricated RType
Posted: Friday 02 June 2023 7:56
by EdwinK
No, nothing else running at the same time.
Re: 15326 - [WebServer] Depricated RType
Posted: Friday 02 June 2023 9:03
by Joep123
Same messages here.... (only about devices, not cameras)
Code: Select all
2023-06-02 09:02:00.900 Status: [WebServer] Depricated RType (devices) for API request. Please use correct API Command!
2023-06-02 09:02:00.903 Status: [WebServer] Depricated RType (devices) for API request. Please use correct API Command!
2023-06-02 09:02:00.905 Status: [WebServer] Depricated RType (devices) for API request. Please use correct API Command!
2023-06-02 09:02:00.909 Status: [WebServer] Depricated RType (devices) for API request. Please use correct API Command!
2023-06-02 09:02:00.921 Status: [WebServer] Depricated RType (devices) for API request. Please use correct API Command!
2023-06-02 09:02:00.925 Status: [WebServer] Depricated RType (devices) for API request. Please use correct API Command!
2023-06-02 09:02:00.933 Status: [WebServer] Depricated RType (devices) for API request. Please use correct API Command!
2023-06-02 09:02:00.941 Status: [WebServer] Depricated RType (devices) for API request. Please use correct API Command!
2023-06-02 09:02:00.949 Status: [WebServer] Depricated RType (devices) for API request. Please use correct API Command!
2023-06-02 09:02:00.952 Status: [WebServer] Depricated RType (devices) for API request. Please use correct API Command!
2023-06-02 09:02:00.954 Status: [WebServer] Depricated RType (devices) for API request. Please use correct API Command!
2023-06-02 09:02:00.958 Status: [WebServer] Depricated RType (devices) for API request. Please use correct API Command!
2023-06-02 09:02:01.189 Status: [WebServer] Depricated RType (devices) for API request. Please use correct API Command!
2023-06-02 09:03:01.015 Status: [WebServer] Depricated RType (devices) for API request. Please use correct API Command!
2023-06-02 09:03:01.029 Status: [WebServer] Depricated RType (devices) for API request. Please use correct API Command!
2023-06-02 09:03:01.040 Status: [WebServer] Depricated RType (devices) for API request. Please use correct API Command!
2023-06-02 09:03:01.065 Status: [WebServer] Depricated RType (devices) for API request. Please use correct API Command!
2023-06-02 09:03:01.069 Status: [WebServer] Depricated RType (devices) for API request. Please use correct API Command!
2023-06-02 09:03:01.129 Status: [WebServer] Depricated RType (devices) for API request. Please use correct API Command!
2023-06-02 09:03:01.151 Status: [WebServer] Depricated RType (devices) for API request. Please use correct API Command!
2023-06-02 09:03:01.165 Status: [WebServer] Depricated RType (devices) for API request. Please use correct API Command!
2023-06-02 09:03:01.174 Status: [WebServer] Depricated RType (devices) for API request. Please use correct API Command!
2023-06-02 09:03:01.182 Status: [WebServer] Depricated RType (devices) for API request. Please use correct API Command!
2023-06-02 09:03:01.193 Status: [WebServer] Depricated RType (devices) for API request. Please use correct API Command!
2023-06-02 09:03:01.213 Status: [WebServer] Depricated RType (devices) for API request. Please use correct API Command!
2023-06-02 09:03:01.216 Status: [WebServer] Depricated RType (devices) for API request. Please use correct API Command!
Re: 15326 - [WebServer] Depricated RType
Posted: Friday 02 June 2023 10:33
by arnout
Same error occurs here on build 15326 when doing a request on the API/JSON. In my case I'm doing a GET on the historic data:
https://www.domoticz.com/wiki/Domoticz_ ... 7s#History
Re: 15326 - [WebServer] Depricated RType
Posted: Friday 02 June 2023 10:57
by waltervl
Be sure you cleared your browser cache as a lot of javascript files have been modified in this latest beta version!
Re: 15326 - [WebServer] Depricated RType
Posted: Friday 02 June 2023 11:10
by arnout
I tested it by doing a GET-request with Postman, same error: [WebServer] Depricated RType (graph) for API request. Please use correct API Command!
I don't see that has anything to do with cache in my browser?
Re: 15326 - [WebServer] Depricated RType
Posted: Friday 02 June 2023 11:38
by waltervl
That is correct in your specific case, only to be sure browser cache is not the source of these log entries.
Also for the other users that have similar log entries but say not to use API calls (but do when using the browser).
Re: 15326 - [WebServer] Depricated RType
Posted: Friday 02 June 2023 11:47
by waltervl
arnout wrote: ↑Friday 02 June 2023 11:10
I tested it by doing a GET-request with Postman, same error: [WebServer] Depricated RType (graph) for API request. Please use correct API Command!
I don't see that has anything to do with cache in my browser?
In the change
https://github.com/domoticz/domoticz/pull/5697/files I see the API call
has been changed to
Code: Select all
/json.htm?type=command¶m=graph&
Re: 15326 - [WebServer] Depricated RType
Posted: Friday 02 June 2023 14:04
by gizmocuz
For external API queries, RType queries have been replaced by normal queries.
We might need to update the wiki for these left overs.
The user interface commands (web gui) have been modified
Re: 15326 - [WebServer] Depricated RType
Posted: Friday 02 June 2023 19:55
by Joep123
gizmocuz wrote: ↑Friday 02 June 2023 14:04
For external API queries, RType queries have been replaced by normal queries.
I changed all my scripts (104):
into
Code: Select all
/json.htm?type=command¶m=getdevices
and
into
Code: Select all
/json.htm?type=command¶m=graph&
The messages about "Depricated RType" don't appear anymore

Re: 15326 - [WebServer] Depricated RType
Posted: Friday 02 June 2023 21:05
by commentator
Joep123 wrote: ↑Friday 02 June 2023 19:55
gizmocuz wrote: ↑Friday 02 June 2023 14:04
For external API queries, RType queries have been replaced by normal queries.
I changed all my scripts (104):
into
Code: Select all
/json.htm?type=command¶m=getdevices
and
into
Code: Select all
/json.htm?type=command¶m=graph&
The messages about "Depricated RType" don't appear anymore
thanks!
Re: 15326 - [WebServer] Depricated RType
Posted: Friday 02 June 2023 21:36
by arnout
waltervl wrote: ↑Friday 02 June 2023 11:47
arnout wrote: ↑Friday 02 June 2023 11:10
I tested it by doing a GET-request with Postman, same error: [WebServer] Depricated RType (graph) for API request. Please use correct API Command!
I don't see that has anything to do with cache in my browser?
In the change
https://github.com/domoticz/domoticz/pull/5697/files I see the API call
has been changed to
Code: Select all
/json.htm?type=command¶m=graph&
thanks! I updated the API Command, now it's working again.
Re: 15326 - [WebServer] Depricated RType
Posted: Saturday 03 June 2023 9:44
by waltervl
EdwinK wrote: ↑Thursday 01 June 2023 23:18
2023-06-01 23:12:13.626 Status: [WebServer] Depricated RType (cameras) for API request. Please use correct API Command!
2023-06-01 23:16:04.417 Status: [WebServer] Depricated RType (devices) for API request. Please use correct API Command!
Since this last update I get the above messages. I don't have any camera's installed at the moment.
In your case it looks to be a browser cache issue, please clear it. If it does not disappear it should be triggered to a User action. Please check what you are doing with Domoticz if the message appears.
Re: 15326 - [WebServer] Depricated RType
Posted: Saturday 03 June 2023 20:00
by SeLeRik
I had such a problem after update 15326. In addition, both applications on the phone (old and new with an annual subscription) stopped working - they cannot connect - an error (Error getting http data!). For any request through the site or the site "controlicz"com" - I get errors in the logs described above in the posts. And there is the same error in the logs when I try to see the voltage or temperature graph in the application on the phone. At the same time, the graph does not appear on the phone (the page in the application just twitches to the side).
Re: 15326 - [WebServer] Depricated RType
Posted: Sunday 04 June 2023 8:48
by EdwinK
Had cleared the browser cache, but still there. Even cleared out browsing history cached images with time range 'all time'. Treid switching browser, but still this
2023-06-04 09:11:12.836 Status: [WebServer] Depricated RType (devices) for API request. Please use correct API Command!
2023-06-04 09:11:17.837 Status: [WebServer] Depricated RType (devices) for API request. Please use correct API Command!
2023-06-04 09:11:17.885 Status: [WebServer] Depricated RType (settings) for API request. Please use correct API Command!
2023-06-04 09:11:18.491 Status: [WebServer] Depricated RType (cameras) for API request. Please use correct API Command!
Also turned off all the events I had. So the only thing I could think of is the Open Meteo flow.
Still no luck. Giving up right now. It doesn't really hurt anything, just filling the logs with this error.
Re: 15326 - [WebServer] Depricated RType
Posted: Monday 05 June 2023 0:54
by devros
Joep123 wrote: ↑Friday 02 June 2023 19:55
gizmocuz wrote: ↑Friday 02 June 2023 14:04
For external API queries, RType queries have been replaced by normal queries.
I changed all my scripts (104):
into
Code: Select all
/json.htm?type=command¶m=getdevices
and
into
Code: Select all
/json.htm?type=command¶m=graph&
The messages about "Depricated RType" don't appear anymore
Thanks
any idea whats new command for
Code: Select all
/json.htm?type=schedules&filter=device
?
old one isnt working...
Re: 15326 - [WebServer] Depricated RType
Posted: Monday 05 June 2023 1:17
by Loky31
Hi,
Just faced the same issue...
I'm using Monitor (
https://github.com/vil1driver/monitor) as custom page , and was working fine until this damned beta update...
Why are they breaking this API ?
Is that a mistake or will it be it at final ?
My problem is on Devices and Scenes... if there is an easy way to fix Monitor I'm in !
Re: 15326 - [WebServer] Depricated RType
Posted: Monday 05 June 2023 7:06
by kiddigital
No mistake, matter of cleaning up old inconsistencies.
Should be easy to fix. Maybe ask the either the author to fix it for you or do it yourself.
Look for the API calls that do not start with `type=command`.
Example `type=devices` should become `type=command¶m=getdevices`
Re: 15326 - [WebServer] Depricated RType
Posted: Monday 05 June 2023 8:52
by waltervl
EdwinK wrote: ↑Sunday 04 June 2023 8:48
Had cleared the browser cache, but still there. Even cleared out browsing history cached images with time range 'all time'. Treid switching browser, but still this
2023-06-04 09:11:12.836 Status: [WebServer] Depricated RType (devices) for API request. Please use correct API Command!
2023-06-04 09:11:17.837 Status: [WebServer] Depricated RType (devices) for API request. Please use correct API Command!
2023-06-04 09:11:17.885 Status: [WebServer] Depricated RType (settings) for API request. Please use correct API Command!
2023-06-04 09:11:18.491 Status: [WebServer] Depricated RType (cameras) for API request. Please use correct API Command!
Also turned off all the events I had. So the only thing I could think of is the Open Meteo flow.
Still no luck. Giving up right now. It doesn't really hurt anything, just filling the logs with this error.
Could be your theme as some themes have Camera suppport added. Do you use a default theme or a custom one?