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

getPresets() failed #19

Closed
Pioxis opened this issue Aug 17, 2022 · 1 comment
Closed

getPresets() failed #19

Pioxis opened this issue Aug 17, 2022 · 1 comment

Comments

@Pioxis
Copy link

Pioxis commented Aug 17, 2022

Hello,

After call:

var presets = await insertO.ptz.getPresets(profs[0].token, limit: 15);

I'm getting error:

flutter: ‼️ 14:14:47.675264 ERROR    UI Loggy - Onvif - ERROR:
DioError [DioErrorType.response]: Http status error [500]
[ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: Exception: Error code: {Code: {Value: {$: env:Receiver}, Subcode: {Value: {$: ter:ActionNotSupported}, Subcode: {Value: {$: ter:InvalidOperation}}}}, Reason: {Text: {@xml:lang: en, $: Optional Action Not Implemented}}}
#0      Soap.send (package:easy_onvif/src/soap.dart:43:11)
<asynchronous suspension>
#1      Soap.retrieveEnvelope (package:easy_onvif/src/soap.dart:59:26)
<asynchronous suspension>
#2      Ptz.getPresets (package:easy_onvif/src/ptz.dart:173:22)
<asynchronous suspension>

@faithoflifedev
Copy link
Owner

Hello @Pioxis,

The errors returned from your device are "ActionNotSupported" and "InvalidOperation". Most likely the device is not fully Onvif compliant. Have you tried any other Onvif software with it, like (node-onvif)[https://github.com/GuilhermeC18/node-onvif].

If node-onvif shows the same error then the problem is with your device. You can try checking for updated firmware for the device.

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

2 participants