rvi / ONVIFCameraAndroid

Example on how to connect to an ONVIF camera on Android
MIT License
142 stars 68 forks source link

ErrorCode 500, Internal Server Error on getProfiles() #9

Closed HevilPrajapati closed 4 years ago

HevilPrajapati commented 5 years ago

Hello, i am new to this technology. I am getting Internal server error, Error Code is 500. Please help me to resolve this issue. I've gone through documentation it's easy to understand. I am not able to get media profiles and rtsp url also. Please help. Here are the log details.

getServices()

<?xml version="1.0" encoding="utf-8"?>admin</wsse:Username>cMY4zICXTSgiZIMCaLrScottS/A=</wsse:Password>MjE2ZDM5MzAtYjM5My00MzA0LWFhYzYtNzU2NDBmZGFhNmI5 </wsse:Nonce>2019-10-16T06:13:000Z</wsu:Created></wsse:UsernameToken></wsse:Security></soap:Header>false</soap:Body></soap:Envelope> true Request GetServices performed.

getDeviceInformation()

<?xml version="1.0" encoding="utf-8"?>admin</wsse:Username>EhkGLRFAOzgjd/UihGLedGjYvJI=</wsse:Password>ODBlYzBkYWItNGRlYi00ODI5LWE1ZDAtODNhMTAzMDcyZjZj </wsse:Nonce>2019-10-16T06:13:000Z</wsu:Created></wsse:UsernameToken></wsse:Security></soap:Header></soap:Body></soap:Envelope> true Request GetDeviceInformation performed. Device information: Manufacturer: HIKVISION Model: DS-2CD122P-I3 FirmwareVersion: V5.4.50 build 180602 SerialNumber: DS-2CD122P-I320190604AAWR234641390

getProfiles()

<?xml version="1.0" encoding="utf-8"?>admin</wsse:Username>THOWbf+eUm4MBI8xVKMi+taceic=</wsse:Password>MTNjOGQ1OWItMTZhNC00MDdjLWEzMTgtYTM1MWZjZGQ1NTky </wsse:Nonce>2019-10-16T06:13:000Z</wsu:Created></wsse:UsernameToken></wsse:Security></soap:Header></soap:Body></soap:Envelope> Response{protocol=http/1.1, code=500, message=Internal Server Error, url=http://ipaddress:port/onvif/device_service} false Request GetProfiles performed.

rvi commented 5 years ago

That's weird, I believe it's something wrong with your camera. Can you check if it's up to date and if it conforms with the profile T?

rvi commented 4 years ago

Closing this one, since I don't have any updates.

navidcity commented 3 years ago

@HevilPrajapati @rvi I have the same issue with the same Camera as @HevilPrajapati had used. I can communicate with other brands. It seems that something is wrong with HIKVISION cameras.