FalkTannhaeuser / python-onvif-zeep

ONVIF Client Implementation in Python 2+3 (using https://github.com/mvantellingen/python-zeep instead of suds as SOAP client)
MIT License
420 stars 137 forks source link

"Unknown fault occured" in creating the camera #92

Closed relaxtheo closed 2 years ago

relaxtheo commented 2 years ago

I got a exception in calling "ONVIFCamera(ip, port, user, pass)", "Unknown fault occured".

By debugging the client.py, this problem should happened in calling "capabilities = self.devicemgmt.GetCapabilities({'Category': 'All'})"

I have tried 2 cameras, they have same problem. By using OnvifDeviceManager on windows, they work fine.

What could be the problem? Thank you.

relaxtheo commented 2 years ago

The problem is caused by the incorrect port, you should get both IP and port in the xaddrs

Kerblif commented 11 months ago

@relaxtheo, can you explain in more detail how to solve this problem, please?

Kerblif commented 11 months ago

Ok, http port and server port is different things.

In my case: 80 is http port, 6688 is server port. You need pass 6688, not 80.