dchesterton/amcrest2mqtt

400 Client Error: Bad Request

leonardomrc opened this issue · 4 comments

I deployed in Portainer and that's what I get from the logs:

29/05/2021 23:53:11 [INFO] Fetching storage sensors...

<Name:SERIAL> Trying again due to error: HTTPError('400 Client Error: Bad Request for url: http://AmcrestIP:80/cgi-bin/storageDevice.cgi?action=getDeviceAllInfo')

<Name:SERIAL> Trying again due to error: HTTPError('400 Client Error: Bad Request for url: http://AmcrestIP:80/cgi-bin/storageDevice.cgi?action=getDeviceAllInfo')

<Name:SERIAL> Trying again due to error: HTTPError('400 Client Error: Bad Request for url: http://AmcrestIP6:80/cgi-bin/storageDevice.cgi?action=getDeviceAllInfo')

29/05/2021 23:53:12 [WARNING] Error fetching storage information 400 Client Error: Bad Request for url: http://AmcrestIP:80/cgi-bin/storageDevice.cgi?action=getDeviceAllInfo

I don't know how to fix this. If I type "http://AmcrestIP:80/cgi-bin/storageDevice.cgi?action=getDeviceAllInfo" on an Internet browser, it asks me for username and password (admin:MYPASSWORD). Then, it shows:

Error
Bad Request!

Which Amcrest device are you using?

AD110.

Important info: Although I can see the message above in the logs, Home Assistant seems to be able to get the correct status from the doorbell's entities such as "button press" etc.

Do you have an SD card installed? I think you might get that error if you don't.

Do you have an SD card installed? I think you might get that error if you don't.

I just installed a SD card and the logs are not showing the same problem anymore.