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

Most probably the changes related to serialisation/deserialisation is breaking for some cameras #71

Open
momshaddinury opened this issue Dec 4, 2024 · 3 comments

Comments

@momshaddinury
Copy link
Contributor

Our sunba cameras used to work with onvif protocol. But after the recent update onvif is failing to connect.
Here is the error log:

[log] #0      OnvifUtil.xmlToMap (package:easy_onvif/src/util/util.dart:22:30)
#1      new Envelope.fromXmlString (package:easy_onvif/src/model/envelope.dart:26:35)
#2      Transport.sendRequest (package:easy_onvif/src/soap/transport.dart:92:21)
<asynchronous suspension>
#3      Transport.request (package:easy_onvif/src/soap/transport.dart:130:57)
<asynchronous suspension>
#4      DeviceManagement.getSystemDateAndTime (package:easy_onvif/src/device_management.dart:370:30)
<asynchronous suspension>
#5      Onvif.getTimeDelta (package:easy_onvif/src/onvif_base.dart:117:22)
@faithoflifedev
Copy link
Owner

Hi @momshaddinury,

I can't replicate this issue with the devices I have available to me. Is it possible for you to provide the XML response from the device. You can get it with the following commands:

#install the easy_onvif cli utility
dart pub global activate easy_onvif_cli

#provide connection and authentication for the device (ipaddress:port, username, passowrd)
onvif authorize

# make the GetSystemDateAndTime request to the device and write the response to the debug.txt file
onvif device-management get-system-date-and-time --log-level all > debug.txt

Once I can see the response I should be able to debug the isue.

@cdavis-venngo
Copy link

@momshaddinury is this still an issue?

@momshaddinury
Copy link
Contributor Author

@momshaddinury is this still an issue?

Yes, it is. I was busy with a release so couldn't get back to this. I'll try to share the cli logs this week

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

3 participants