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

readTags returns 500 #20

Open
volkerrichert opened this issue Apr 5, 2024 · 17 comments
Open

readTags returns 500 #20

volkerrichert opened this issue Apr 5, 2024 · 17 comments
Assignees

Comments

@volkerrichert
Copy link

I installed v0.0.2 and configured the adapter to use my Waterkotte EcoTouch DS5014.5 . But readTags fails

/cgi/readTags?n=75&t1=I263&t2=A32&t3=I30&t4=A31&t5=A61&t6=A90&t7=A93&t8=A94&t9=A91&t10=A92&t11=A96&t12=A98&t13=A100&t14=A101&t15=A102&t16=A103&t17=A99&t18=A30&t19=I137&t20=D24&t21=A25&t22=A26&t23=A28&t24=A27&t25=A29&t26=A1&t27=A2&t28=A3&t29=A4&t30=A5&t31=A6&t32=A7&t33=A8&t34=A10&t35=A699&t36=A700&t37=A701&t38=A702&t39=A12&t40=I2017&t41=I2018&t42=I2019&t43=I2020&t44=I2021&t45=I2022&t46=I2025&t47=I2024&t48=I2023&t49=I2032&t50=I2033&t51=I2034&t52=I2039&t53=A13&t54=A14&t55=A15&t56=A17&t57=A18&t58=A19&t59=A20&t60=A21&t61=A16&t62=A1022&t63=A1023&t64=D581&t65=D701&t66=I5&t67=I6&t68=I7&t69=I8&t70=I9&t71=D1010&t72=D815&t73=D816&t74=D817&t75=D818' failed: Request failed with status code 500

If i remember correct, this happens if an TAG isn't supported

@theknut theknut self-assigned this Apr 5, 2024
@theknut
Copy link
Owner

theknut commented Apr 5, 2024

I tried it with my WP and got a proper response. If a tag is not support the tag result is #I5555 E_UNKNOWNTAG rather than S_OK.

Is this error persisting or only occuring once in a while? Please login to your WP website and after that visit this link: http://192.168.178.XX/cgi/readTags?n=75&t1=I263&t2=A32&t3=I30&t4=A31&t5=A61&t6=A90&t7=A93&t8=A94&t9=A91&t10=A92&t11=A96&t12=A98&t13=A100&t14=A101&t15=A102&t16=A103&t17=A99&t18=A30&t19=I137&t20=D24&t21=A25&t22=A26&t23=A28&t24=A27&t25=A29&t26=A1&t27=A2&t28=A3&t29=A4&t30=A5&t31=A6&t32=A7&t33=A8&t34=A10&t35=A699&t36=A700&t37=A701&t38=A702&t39=A12&t40=I2017&t41=I2018&t42=I2019&t43=I2020&t44=I2021&t45=I2022&t46=I2025&t47=I2024&t48=I2023&t49=I2032&t50=I2033&t51=I2034&t52=I2039&t53=A13&t54=A14&t55=A15&t56=A17&t57=A18&t58=A19&t59=A20&t60=A21&t61=A16&t62=A1022&t63=A1023&t64=D581&t65=D701&t66=I5&t67=I6&t68=I7&t69=I8&t70=I9&t71=D1010&t72=D815&t73=D816&t74=D817&t75=D818. Do you get the same error?

@volkerrichert
Copy link
Author

volkerrichert commented Apr 5, 2024

This call works fine.

it's ends with

#A16 S_OK
192 237
#A1022 E_INACTIVETAG
#A1023 E_INACTIVETAG
#D581 S_OK
192 0
#D701 S_OK
192 0
#I5 S_OK
192 5
#I6 S_OK
192 4
#I7 S_OK
192 24
#I8 S_OK
192 3
#I9 S_OK
192 24
#D1010 S_OK
192 0
#D815 S_OK
192 0
#D816 S_OK
192 0
#D817 S_OK
192 0
#D818 S_OK
192 1

@volkerrichert
Copy link
Author

it seems to be a missing/invalid login

@theknut
Copy link
Owner

theknut commented Apr 5, 2024 via email

@volkerrichert
Copy link
Author

all i have is
image

@volkerrichert
Copy link
Author

ok, it was only warn level.

@theknut
Copy link
Owner

theknut commented Apr 10, 2024 via email

@volkerrichert
Copy link
Author

It's updateds after restart. But not after that

@volkerrichert
Copy link
Author

image restarted at 12:33 with some errors and image timestamp keeps the same

@theknut
Copy link
Owner

theknut commented Apr 10, 2024

Okay, interesting... Since you are successfully logged in, the WP should be reachable and the credentials are also correct. Let me think about what could go wrong.

@volkerrichert
Copy link
Author

looks like a timeout of the login to me

@theknut
Copy link
Owner

theknut commented Apr 11, 2024

No, if there is a login timeout, there is a different error and this is handled by renewing the login.
A few more points:

  • can you please set the verbosity of the instance to debug, restart the adapter and send me the loggings?
  • if you restart the adapter, is there at least one successful update?
  • if so, how long does it take until the requests fail?
  • what timeout is currently configured in the adapter settings?

@volkerrichert
Copy link
Author

all i get is

waterkotte-easycon.0
2024-04-12 15:55:31.396 silly redis message expired/evicted keyevent@0:expired:io.system.adapter.luftdaten.0.cputime

waterkotte-easycon.0
2024-04-12 15:55:31.297 silly redis message expired/evicted keyevent@0:expired:io.system.adapter.luftdaten.0.connected

waterkotte-easycon.0
2024-04-12 15:55:31.295 silly redis message expired/evicted keyevent@0:expired:io.system.adapter.luftdaten.0.outputCount

waterkotte-easycon.0
2024-04-12 15:55:30.985 silly redis message expired/evicted keyevent@0:expired:io.system.adapter.luftdaten.0.memHeapTotal

waterkotte-easycon.0
2024-04-12 15:55:30.885 silly redis message expired/evicted keyevent@0:expired:io.system.adapter.luftdaten.0.cpu

waterkotte-easycon.0
2024-04-12 15:55:30.385 silly redis message expired/evicted keyevent@0:expired:io.system.adapter.luftdaten.0.memHeapUsed

waterkotte-easycon.0
2024-04-12 15:55:30.285 silly redis message expired/evicted keyevent@0:expired:io.system.adapter.luftdaten.0.uptime

waterkotte-easycon.0
2024-04-12 15:55:29.985 silly redis message expired/evicted keyevent@0:expired:io.system.adapter.luftdaten.0.memRss

waterkotte-easycon.0
2024-04-12 15:55:29.984 silly redis message expired/evicted keyevent@0:expired:io.system.adapter.luftdaten.0.inputCount

waterkotte-easycon.0
2024-04-12 15:54:47.925 silly info.message found in cache

waterkotte-easycon.0
2024-04-12 15:54:47.924 warn Request to 'http://192.168.120.9/cgi/readTags?n=75&t1=I263&t2=A32&t3=I30&t4=A31&t5=A61&t6=A90&t7=A93&t8=A94&t9=A91&t10=A92&t11=A96&t12=A98&t13=A100&t14=A101&t15=A102&t16=A103&t17=A99&t18=A30&t19=I137&t20=D24&t21=A25&t22=A26&t23=A28&t24=A27&t25=A29&t26=A1&t27=A2&t28=A3&t29=A4&t30=A5&t31=A6&t32=A7&t33=A8&t34=A10&t35=A699&t36=A700&t37=A701&t38=A702&t39=A12&t40=I2017&t41=I2018&t42=I2019&t43=I2020&t44=I2021&t45=I2022&t46=I2025&t47=I2024&t48=I2023&t49=I2032&t50=I2033&t51=I2034&t52=I2039&t53=A13&t54=A14&t55=A15&t56=A17&t57=A18&t58=A19&t59=A20&t60=A21&t61=A16&t62=A1022&t63=A1023&t64=D581&t65=D701&t66=I5&t67=I6&t68=I7&t69=I8&t70=I9&t71=D1010&t72=D815&t73=D816&t74=D817&t75=D818' failed: Request failed with status code 500

@volkerrichert
Copy link
Author

I put the loglevel to silly

@theknut
Copy link
Owner

theknut commented Apr 12, 2024 via email

@volkerrichert
Copy link
Author

only the first one.

waterkotte-easycon.0
2024-04-12 16:34:59.726 warn Request to 'http://192.168.120.9/cgi/readTags?n=75&t1=I263&t2=A32&t3=I30&t4=A31&t5=A61&t6=A90&t7=A93&t8=A94&t9=A91&t10=A92&t11=A96&t12=A98&t13=A100&t14=A101&t15=A102&t16=A103&t17=A99&t18=A30&t19=I137&t20=D24&t21=A25&t22=A26&t23=A28&t24=A27&t25=A29&t26=A1&t27=A2&t28=A3&t29=A4&t30=A5&t31=A6&t32=A7&t33=A8&t34=A10&t35=A699&t36=A700&t37=A701&t38=A702&t39=A12&t40=I2017&t41=I2018&t42=I2019&t43=I2020&t44=I2021&t45=I2022&t46=I2025&t47=I2024&t48=I2023&t49=I2032&t50=I2033&t51=I2034&t52=I2039&t53=A13&t54=A14&t55=A15&t56=A17&t57=A18&t58=A19&t59=A20&t60=A21&t61=A16&t62=A1022&t63=A1023&t64=D581&t65=D701&t66=I5&t67=I6&t68=I7&t69=I8&t70=I9&t71=D1010&t72=D815&t73=D816&t74=D817&t75=D818' failed: Request failed with status code 500

waterkotte-easycon.0
2024-04-12 16:29:58.636 info Successfully logged in

waterkotte-easycon.0
2024-04-12 16:29:57.738 warn Unable to get parameter 'A1023'. Received 'E_INACTIVETAG' instead.

waterkotte-easycon.0
2024-04-12 16:29:57.737 warn Unable to get parameter 'A1022'. Received 'E_INACTIVETAG' instead.

waterkotte-easycon.0
2024-04-12 16:29:54.976 debug Active service: {"de":"Heizbetrieb","en":"Heating","fr":"Chauffage"}

waterkotte-easycon.0
2024-04-12 16:29:54.941 debug Successfully (re-)logged in

waterkotte-easycon.0
2024-04-12 16:29:54.799 info starting. Version 0.0.2 (non-npm: theknut/ioBroker.waterkotte-easycon#cf4498c03fc38696925618504d968242412dc693) in /opt/iobroker/node_modules/iobroker.waterkotte-easycon, node: v18.17.1, js-controller: 5.0.19

@theknut
Copy link
Owner

theknut commented Apr 12, 2024 via email

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

When branches are created from issues, their pull requests are automatically linked.

2 participants