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

hikvision.com ver20 XMLSchema parsing issue #34

Open
leodesigner opened this issue Apr 10, 2023 · 0 comments
Open

hikvision.com ver20 XMLSchema parsing issue #34

leodesigner opened this issue Apr 10, 2023 · 0 comments

Comments

@leodesigner
Copy link

leodesigner commented Apr 10, 2023

Hi,

Thank you for creating this.

While testing it with the DS-2CD2343G2-IU HikVision camera I am getting the following error in docker logs:

STARTING...
Initializing MQTT bus...
MQTT: CONNECTED TO mqtt.xxx.xxx     
EOF
XML syntax error on line 12: invalid character entity & (no semicolon)
malformed MIME header: missing colon: "--boundary"
multipart: unexpected line in Next(): "Content-Type: application/xml; charset=\"UTF-8\"\r\n"
multipart: unexpected line in Next(): "Content-Length: 580\r\n"
multipart: expecting a new Part; got line "<EventNotificationAlert version=\"2.0\" xmlns=\"https://www.hikvision.com/ver20/XMLSchema\">\r\n"
multipart: unexpected line in Next(): "<ipAddress>10.0.44.12</ipAddress>\r\n"
multipart: unexpected line in Next(): "<ipv6Address>XXXX:XXXX:XXXX:dd:dd:dd:dd:dd</ipv6Address>\r\n"
multipart: unexpected line in Next(): "<portNo>80</portNo>\r\n"
multipart: unexpected line in Next(): "<protocol>HTTP</protocol>\r\n"
multipart: unexpected line in Next(): "<macAddress>XX:XX:XX:XX:XX:XX</macAddress>\r\n"
multipart: unexpected line in Next(): "<channelID>1</channelID>\r\n"
multipart: unexpected line in Next(): "<dateTime>2023-04-10T18:06:55+03:00</dateTime>\r\n"
multipart: unexpected line in Next(): "<activePostCount>1</activePostCount>\r\n"
multipart: unexpected line in Next(): "<eventType>videoloss</eventType>\r\n"
multipart: unexpected line in Next(): "<eventState>inactive</eventState>\r\n"
multipart: unexpected line in Next(): "<eventDescription>videoloss alarm</eventDescription>\r\n"
multipart: unexpected line in Next(): "<channelName>Terrasse</channelName>\r\n"
multipart: unexpected line in Next(): "</EventNotificationAlert>\r\n"

It looks like this XML output is not parsed correctly.
Is there any fix for this? (Sorry have no chance to work with Go for now)
Thanks!

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

No branches or pull requests

1 participant