VorlonCD / bi-aidetection

Alarm system for Blue Iris based on Artificial Intelligence.
https://ipcamtalk.com/threads/tool-tutorial-free-ai-person-detection-for-blue-iris.37330/
GNU General Public License v2.0
207 stars 45 forks source link

Need help with Pushover issue... "Specified argument was out of the range of valid values" #193

Closed 162884 closed 3 years ago

162884 commented 3 years ago

Any thoughts on how I can resolve this issue? It happens every so often. Thanks!

2021-03-02 12:19:20.412628|Error|AITOOLS.EXE|SendPushoverMessageAsync|Amazon_Objects:us-east-2|Driveway_AI|| Specified argument was out of the range of valid values.;Parameter name: retryOptions.retryPeriod [ArgumentOutOfRangeException] (In Pushover.SendPushoverMessageAsync:221 > Validators.DefaultMessageValidator.Validate(String paramName, Message message):57)|11148|9||26 2021-03-02 12:19:20.413628|Error|AITOOLS.EXE|PushoverUpload|Amazon_Objects:us-east-2|Driveway_AI|| Pushover response code=0 in 1ms, Errs='Specified argument was out of the range of valid values.;Parameter name: retryOptions.retryPeriod [ArgumentOutOfRangeException] (In Pushover.SendPushoverMessageAsync:221 > Validators.DefaultMessageValidator.Validate(String paramName, Message message):57)' |11149|8||26 2021-03-02 12:19:20.414627|Error|AITOOLS.EXE|Trigger|Amazon_Objects:us-east-2|Driveway_AI|Driveway_Cam.20210302_121917679.jpg| -> ERROR sending message or image to Pushover|11150|7||26

VorlonCD commented 3 years ago

I may have fixed it in this version, let me know: AITool-VorlonCD-v2.0.988.zip

162884 commented 3 years ago

Thanks @VorlonCD, I'll install it today and let you know how it works.

162884 commented 3 years ago

Running this version, I'm still getting this error message below. I appreciate your help in trying to get this resolved.

2021-03-21 19:27:10.728315|Error|AITOOLS.EXE|SendPushoverMessageAsync|Amazon_Objects:us-east-2|Driveway_AI|None| Specified argument was out of the range of valid values.;Parameter name: retryOptions.retryPeriod [ArgumentOutOfRangeException] (In Pushover.SendPushoverMessageAsync:221 > Validators.DefaultMessageValidator.Validate(String paramName, Message message):57)|4601|6||19 2021-03-21 19:27:10.729315|Error|AITOOLS.EXE|PushoverUpload|Amazon_Objects:us-east-2|Driveway_AI|None| Pushover response code=0 in 1ms, Errs='Specified argument was out of the range of valid values.;Parameter name: retryOptions.retryPeriod [ArgumentOutOfRangeException] (In Pushover.SendPushoverMessageAsync:221 > Validators.DefaultMessageValidator.Validate(String paramName, Message message):57)' |4602|5||19 2021-03-21 19:27:10.730314|Error|AITOOLS.EXE|Trigger|Amazon_Objects:us-east-2|Driveway_AI|Driveway_Cam.20210321_192707652.jpg| -> ERROR sending message or image to Pushover|4603|4||19

VorlonCD commented 3 years ago

If you recreate the camera in AITOOL it should fix. Or if you close AITOOL, edit AITOOL.Settings.JSON, and change anywhere that "Action_pushover_expire_seconds" is set higher than 86400 (24 hours) to something more reasonable like 10800 (3 hours) it should fix. There used to be a bug where seconds got converted to hours and 24 hours is the max pushover "retry period" so it would go over that.

162884 commented 3 years ago

@VorlonCD, I just checked my settings file and all occurrences of Action_pushover_expire_seconds were already set to 10800. Should I still try re-creating the cameras? I really appreciate your help.

VorlonCD commented 3 years ago

Looks like you would bypass the error if you didnt have priority set to Emergency.

I made some minor tweaks and added a little better logging in this, let me know: AITool-VorlonCD-v2.0.999.zip

162884 commented 3 years ago

I just installed this update. I'll post the log result if it occurs again. Thanks!

162884 commented 3 years ago

@VorlonCD... so far, so good. I haven't seen this error again since installing the update.

VorlonCD commented 3 years ago

Ok, great!