ioBroker.parser
ioBroker.parser copied to clipboard
Cannot read link Error: Parse Error: Expected HTTP/
I try to parse the output of my Oildsensor.
In the adapter/instance settings its works with my test output. But if i try to run it agains the URL of my sensor (which will provide me the xml output) i get the following error in the logfile.
if i try to open the URL wich i setuped in the instance in my chrome or safari brower i get the normal repsonse. that means for me the URL is ok.
2024-02-22 12:08:48.640 - debug: parser.0 (5253) Redis Objects: Use Redis connection: 0.0.0.0:9001
--
2024-02-22 12:08:48.776 - debug: parser.0 (5253) Objects client ready ... initialize now
2024-02-22 12:08:48.779 - debug: parser.0 (5253) Objects create System PubSub Client
2024-02-22 12:08:48.780 - debug: parser.0 (5253) Objects create User PubSub Client
2024-02-22 12:08:49.372 - debug: parser.0 (5253) Objects client initialize lua scripts
2024-02-22 12:08:49.386 - debug: parser.0 (5253) Objects connected to redis: 0.0.0.0:9001
2024-02-22 12:08:49.387 - silly: parser.0 (5253) redis psubscribe cfg.o.system.user.*
2024-02-22 12:08:49.589 - silly: parser.0 (5253) redis psubscribe cfg.o.enum.*
2024-02-22 12:08:49.590 - silly: parser.0 (5253) objectDB connected
2024-02-22 12:08:49.591 - debug: parser.0 (5253) Redis States: Use Redis connection: 0.0.0.0:9000
2024-02-22 12:08:49.699 - debug: parser.0 (5253) States create System PubSub Client
2024-02-22 12:08:49.700 - debug: parser.0 (5253) States create User PubSub Client
2024-02-22 12:08:49.976 - debug: parser.0 (5253) States connected to redis: 0.0.0.0:9000
2024-02-22 12:08:49.977 - silly: parser.0 (5253) statesDB connected
2024-02-22 12:08:50.301 - debug: parser.0 (5253) Plugin sentry Initialize Plugin (enabled=true)
2024-02-22 12:08:50.531 - info: parser.0 (5253) starting. Version 2.1.0 in /opt/iobroker/node_modules/iobroker.parser, node: v18.19.0, js-controller: 5.0.19
2024-02-22 12:08:50.547 - silly: parser.0 (5253) States system redis pmessage system.adapter.parser.0.logLevel/system.adapter.parser.0.logLevel:{"val":"silly","ack":true,"ts":1708600130543,"q":0,"from":"system.adapter.parser.0","lc":1708600130543}
2024-02-22 12:08:51.352 - silly: parser.0 (5253) redis psubscribe cfg.o.parser.0.*
2024-02-22 12:08:51.364 - debug: parser.0 (5253) States for current Interval (300000): ["parser.0.OiltankLevel","parser.0.OiltankPercentage","parser.0.OiltankFree"]
2024-02-22 12:08:51.364 - debug: parser.0 (5253) Do Link: http://192.168.2.195/xml
2024-02-22 12:08:51.364 - debug: parser.0 (5253) Queue http://192.168.2.195/xml
2024-02-22 12:08:51.364 - debug: parser.0 (5253) Creating request queue for 192.168.2.195
2024-02-22 12:08:51.365 - debug: parser.0 (5253) Request URL: http://192.168.2.195/xml
2024-02-22 12:08:51.399 - debug: parser.0 (5253) Dequeue http://192.168.2.195/xml
2024-02-22 12:08:51.399 - debug: parser.0 (5253) Request queue for 192.168.2.195 is now empty
2024-02-22 12:08:51.399 - debug: parser.0 (5253) Process ["parser.0.OiltankLevel","parser.0.OiltankPercentage","parser.0.OiltankFree"] for link http://192.168.2.195/xml
2024-02-22 12:08:51.400 - debug: parser.0 (5253) analyseData CHECK for parser.0.OiltankLevel, old=null
2024-02-22 12:08:51.400 - info: parser.0 (5253) Cannot read link "http://192.168.2.195/xml": Error: Parse Error: Expected HTTP/
2024-02-22 12:08:51.400 - debug: parser.0 (5253) analyseData CHECK for parser.0.OiltankPercentage, old=null
2024-02-22 12:08:51.403 - info: parser.0 (5253)
2024-02-22 12:08:48.640 - debug: parser.0 (5253) Redis Objects: Use Redis connection: 0.0.0.0:9001
--
2024-02-22 12:08:48.776 - debug: parser.0 (5253) Objects client ready ... initialize now
2024-02-22 12:08:48.779 - debug: parser.0 (5253) Objects create System PubSub Client
2024-02-22 12:08:48.780 - debug: parser.0 (5253) Objects create User PubSub Client
2024-02-22 12:08:49.372 - debug: parser.0 (5253) Objects client initialize lua scripts
2024-02-22 12:08:49.386 - debug: parser.0 (5253) Objects connected to redis: 0.0.0.0:9001
2024-02-22 12:08:49.387 - silly: parser.0 (5253) redis psubscribe cfg.o.system.user.*
2024-02-22 12:08:49.589 - silly: parser.0 (5253) redis psubscribe cfg.o.enum.*
2024-02-22 12:08:49.590 - silly: parser.0 (5253) objectDB connected
2024-02-22 12:08:49.591 - debug: parser.0 (5253) Redis States: Use Redis connection: 0.0.0.0:9000
2024-02-22 12:08:49.699 - debug: parser.0 (5253) States create System PubSub Client
2024-02-22 12:08:49.700 - debug: parser.0 (5253) States create User PubSub Client
2024-02-22 12:08:49.976 - debug: parser.0 (5253) States connected to redis: 0.0.0.0:9000
2024-02-22 12:08:49.977 - silly: parser.0 (5253) statesDB connected
2024-02-22 12:08:50.301 - debug: parser.0 (5253) Plugin sentry Initialize Plugin (enabled=true)
2024-02-22 12:08:50.531 - info: parser.0 (5253) starting. Version 2.1.0 in /opt/iobroker/node_modules/iobroker.parser, node: v18.19.0, js-controller: 5.0.19
2024-02-22 12:08:50.547 - silly: parser.0 (5253) States system redis pmessage system.adapter.parser.0.logLevel/system.adapter.parser.0.logLevel:{"val":"silly","ack":true,"ts":1708600130543,"q":0,"from":"system.adapter.parser.0","lc":1708600130543}
2024-02-22 12:08:51.352 - silly: parser.0 (5253) redis psubscribe cfg.o.parser.0.*
2024-02-22 12:08:51.364 - debug: parser.0 (5253) States for current Interval (300000): ["parser.0.OiltankLevel","parser.0.OiltankPercentage","parser.0.OiltankFree"]
2024-02-22 12:08:51.364 - debug: parser.0 (5253) Do Link: http://192.168.2.195/xml
2024-02-22 12:08:51.364 - debug: parser.0 (5253) Queue http://192.168.2.195/xml
2024-02-22 12:08:51.364 - debug: parser.0 (5253) Creating request queue for 192.168.2.195
2024-02-22 12:08:51.365 - debug: parser.0 (5253) Request URL: http://192.168.2.195/xml
2024-02-22 12:08:51.399 - debug: parser.0 (5253) Dequeue http://192.168.2.195/xml
2024-02-22 12:08:51.399 - debug: parser.0 (5253) Request queue for 192.168.2.195 is now empty
2024-02-22 12:08:51.399 - debug: parser.0 (5253) Process ["parser.0.OiltankLevel","parser.0.OiltankPercentage","parser.0.OiltankFree"] for link http://192.168.2.195/xml
2024-02-22 12:08:51.400 - debug: parser.0 (5253) analyseData CHECK for parser.0.OiltankLevel, old=null
2024-02-22 12:08:51.400 - info: parser.0 (5253) Cannot read link "http://192.168.2.195/xml": Error: Parse Error: Expected HTTP/
2024-02-22 12:08:51.400 - debug: parser.0 (5253) analyseData CHECK for parser.0.OiltankPercentage, old=null
2024-02-22 12:08:51.403 - info: parser.0 (5253) Cannot read link "http://192.168.2.195/xml": Error: Parse Error: Expected HTTP/
2024-02-22 12:08:51.405 - debug: parser.0 (5253) analyseData CHECK for parser.0.OiltankFree, old=null
2024-02-22 12:08:51.405 - info: parser.0 (5253) Cannot read link "http://192.168.2.195/xml": Error: Parse Error: Expected HTTP/
2024-02-22 12:08:51.979 - info: admin.0 (26776) ==> Connected system.user.admin from ::ffff:192.168.2.163
2024-02-22 12:08:51.405 - debug: parser.0 (5253) analyseData CHECK for parser.0.OiltankFree, old=null
2024-02-22 12:08:51.405 - info: parser.0 (5253) Cannot read link "http://192.168.2.195/xml": Error: Parse Error: Expected HTTP/
2024-02-22 12:08:51.979 - info: admin.0 (26776) ==> Connected system.user.admin from ::ffff:192.168.2.163
Seems the device is answering with an invalid HTTP response. Try to enable "Use insecure HTTP parser" in settings