keithamus / mqtt-bridges

A platform for bridging APIs into mqtt messages
4 stars 1 forks source link

mqtt-bridge-doorbird doesn't recover from connection issues while polling for doorbell / motion events #21

Open pleschev opened 3 years ago

pleschev commented 3 years ago

Steps to reproduce:

Issue is here - https://github.com/keithamus/mqtt-bridges/blob/master/packages/mqtt-bridge-doorbird/index.js#L38 fetch doesn't support timeouts, and no timeout functionality has been implemented. An example of how it can be found here - https://github.com/hjdhjd/homebridge-doorbird/blob/master/src/doorbird-api.ts#L118

keithamus commented 3 years ago

thanks for filing, I'll look into fixing it