alarmserver icon indicating copy to clipboard operation
alarmserver copied to clipboard

DAHUA HTTP Connection Error

Open francoisdutoit opened this issue 1 year ago • 2 comments

Hi , I'm getting the below error when running the server - Any special config needed on the camera? Thanks in advance :)

Get "/cgi-bin/eventManager.cgi?action=attach&codes=All": unsupported protocol scheme "" DAHUA: Error opening HTTP connection to camera Get "/cgi-bin/eventManager.cgi?action=attach&codes=All": unsupported protocol scheme "" DAHUA: Error opening HTTP connection to camera DAHUA: Error opening HTTP connection to camera DAHUA: Error opening HTTP connection to camera Get "/cgi-bin/eventManager.cgi?action=attach&codes=All": unsupported protocol scheme ""

Below is my config

debug: false

dahua: enabled: true cams: myCam: address: 192.168.88.208 https: false username: theusername password: thepassword

ftp: enabled: true port: 21 password: "alarmftppassword" allowFiles: true rootPath: "./ftp"

webhooks: enabled: true items: urls: - "https://127.0.0.1:5001/api/DahuaCameraEvent/v1/dahua/newevent"

francoisdutoit avatar Aug 20 '22 18:08 francoisdutoit

Hey, thank you for testing the Dahua server! What camera models are you testing with?

It seems like a bug with Dahua config parsing. I'll get on fixing it!

As I do not currently own any Dahua or Dahua-OEM cameras, it's hard for me to test it, and bugs are expected. Thanks for reporting it!

toxuin avatar Aug 20 '22 20:08 toxuin

Hi, thanks for the quick response. Attached is details about my dahua camera. :) Let me know if you need any more info. Thanks!

francoisdutoit avatar Aug 21 '22 05:08 francoisdutoit

Hi @toxuin , have you managed to find time to look into this issue?

francoisdutoit avatar Sep 07 '22 12:09 francoisdutoit

Hello. UP. I have error like this. Dahua NVR5432/4208/16/32. Can I help for you with testing?

imcrazyk avatar Sep 08 '22 02:09 imcrazyk

@toxuin Sure - Actually - I can set up a Dahua test camera for you to access. How can I share this information with you privately so that you can access it?

francoisdutoit avatar Sep 08 '22 04:09 francoisdutoit

I've pushed a new build where Dahua config parsing is fixed. There surely may be other bugs, but this one should be gone... You can always contact me directly at https://t.me/toxuin but I probably would not have time for remote debugging with live cam right now as I am in another country on vacation😛

I'd need to just get my own Dahua camera for testing... But thanks for your offer!

Please let me know if this release fixes the error. If there are more errors - feel free to open more issues!

toxuin avatar Sep 08 '22 20:09 toxuin