djdd87 / SynoAI

A Synology Surveillance Station notification system utilising DeepStack AI
GNU General Public License v3.0
208 stars 24 forks source link

DeepStackAI: Failed to call API with HTTP status code 'Unauthorized'. #212

Closed mkaltner closed 8 months ago

mkaltner commented 8 months ago

As far as I can tell, everything is configured correctly but I keep getting unauthorized when testing my action rule.

Deepstack is up and running:

image

Deepstack-UI can talk to it:

image

Deepstack UI Config points to 192.168.1.5:1500: image

SynoAI is pointed to the same address:port:

image

The Action rule can call SynoAI:

image

But I get the following error(s):

image

Any idea on what's causing the unauthorized error?

Thanks!

djdd87 commented 8 months ago

Is vision detection set on the environment variables? It doesn't seem to be on the docker config above.

mkaltner commented 8 months ago

Here are the Deepstack ENV variable:

image

mkaltner commented 8 months ago

I tweaked a couple things and it seems to be working now. I had an empty api-key line that may have been causing the issue