15326 - [WebServer] Depricated RType Topic is solved

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!

Moderators: leecollings, remb0

Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post

Please mark your topic as Solved when the problem is solved.
Post Reply
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

15326 - [WebServer] Depricated RType

Post 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.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
User avatar
waltervl
Posts: 5842
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: 15326 - [WebServer] Depricated RType

Post by waltervl »

Is there something else running or accessing Domoticz on the same time? That would help debugging....
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: 15326 - [WebServer] Depricated RType

Post by EdwinK »

No, nothing else running at the same time.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
Joep123
Posts: 56
Joined: Monday 26 March 2018 18:44
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: 15326 - [WebServer] Depricated RType

Post 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!
arnout
Posts: 4
Joined: Friday 02 June 2023 10:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: 15326 - [WebServer] Depricated RType

Post 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
User avatar
waltervl
Posts: 5842
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: 15326 - [WebServer] Depricated RType

Post by waltervl »

Be sure you cleared your browser cache as a lot of javascript files have been modified in this latest beta version!
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
arnout
Posts: 4
Joined: Friday 02 June 2023 10:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: 15326 - [WebServer] Depricated RType

Post 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?
User avatar
waltervl
Posts: 5842
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: 15326 - [WebServer] Depricated RType

Post 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).
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
waltervl
Posts: 5842
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: 15326 - [WebServer] Depricated RType

Post 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

Code: Select all

/json.htm?type=graph&...
has been changed to

Code: Select all

/json.htm?type=command&param=graph&
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
gizmocuz
Posts: 2536
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: 15326 - [WebServer] Depricated RType

Post 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
Quality outlives Quantity!
Joep123
Posts: 56
Joined: Monday 26 March 2018 18:44
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: 15326 - [WebServer] Depricated RType

Post 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):

Code: Select all

/json.htm?type=devices
into

Code: Select all

/json.htm?type=command&param=getdevices

and

Code: Select all

/json.htm?type=graph&
into

Code: Select all

/json.htm?type=command&param=graph&
The messages about "Depricated RType" don't appear anymore :)
commentator
Posts: 54
Joined: Thursday 23 June 2016 14:41
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: NL
Contact:

Re: 15326 - [WebServer] Depricated RType

Post 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):

Code: Select all

/json.htm?type=devices
into

Code: Select all

/json.htm?type=command&param=getdevices

and

Code: Select all

/json.htm?type=graph&
into

Code: Select all

/json.htm?type=command&param=graph&
The messages about "Depricated RType" don't appear anymore :)
thanks!
arnout
Posts: 4
Joined: Friday 02 June 2023 10:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: 15326 - [WebServer] Depricated RType

Post 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

Code: Select all

/json.htm?type=graph&...
has been changed to

Code: Select all

/json.htm?type=command&param=graph&
thanks! I updated the API Command, now it's working again.
User avatar
waltervl
Posts: 5842
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: 15326 - [WebServer] Depricated RType

Post 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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
SeLeRik
Posts: 1
Joined: Saturday 03 June 2023 19:52
Target OS: Raspberry Pi / ODroid
Domoticz version: 15330
Location: Ukraine/Odesa
Contact:

Re: 15326 - [WebServer] Depricated RType

Post 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).
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: 15326 - [WebServer] Depricated RType

Post 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.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
devros
Posts: 183
Joined: Saturday 29 October 2016 20:55
Target OS: -
Domoticz version:
Contact:

Re: 15326 - [WebServer] Depricated RType

Post 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):

Code: Select all

/json.htm?type=devices
into

Code: Select all

/json.htm?type=command&param=getdevices

and

Code: Select all

/json.htm?type=graph&
into

Code: Select all

/json.htm?type=command&param=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...
Loky31
Posts: 40
Joined: Monday 11 March 2019 13:46
Target OS: -
Domoticz version:
Contact:

Re: 15326 - [WebServer] Depricated RType

Post 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 !
User avatar
kiddigital
Posts: 438
Joined: Thursday 10 August 2017 6:52
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: 15326 - [WebServer] Depricated RType

Post 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&param=getdevices`
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
User avatar
waltervl
Posts: 5842
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: 15326 - [WebServer] Depricated RType

Post 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?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest