I think I have an issue with my API, not sure where to look

Current Development version likely to have breaking changes
Post Reply
homebrewdude
Posts: 54
Joined: Mon Aug 26, 2019 12:42 pm

I think I have an issue with my API, not sure where to look

Post by homebrewdude »

http://server/zm/api/monitors.json on the machine with zoneminder seems ok.

When I look at this same address on my tablet logined to zoneminder first.
It is just a bunch of strings of txt, not in the table format like my attached photo.
Attachments
Screenshot from 2024-01-22 17-52-03.png
Screenshot from 2024-01-22 17-52-03.png (30.83 KiB) Viewed 2781 times
dougmccrary
Posts: 1224
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: I think I have an issue with my API, not sure where to look

Post by dougmccrary »

the machine with zoneminder seems ok.
That surprises me. Mine looks like your posted example.
homebrewdude
Posts: 54
Joined: Mon Aug 26, 2019 12:42 pm

Re: I think I have an issue with my API, not sure where to look

Post by homebrewdude »

I agree, that's was on the machine running zoneminder.


My phone/tablet trying to run ZmNinja
Attachments
Screenshot_20240122_184709_Chrome.jpg
Screenshot_20240122_184709_Chrome.jpg (132.58 KiB) Viewed 2769 times
dougmccrary
Posts: 1224
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: I think I have an issue with my API, not sure where to look

Post by dougmccrary »

Just a guess, but maybe https:// ?
homebrewdude
Posts: 54
Joined: Mon Aug 26, 2019 12:42 pm

Re: I think I have an issue with my API, not sure where to look

Post by homebrewdude »

I can access zoneminder HTTP but not HTTPS
dougmccrary
Posts: 1224
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: I think I have an issue with my API, not sure where to look

Post by dougmccrary »

Yeah...ISTR something about android needing https in later versions.
Don't mean to send you down a rathole, but I suspect that's at the bottom of this.
I don't use ninja at present so that's all I got. Sorry, and good luck.

(a better screenshot of the error on phone might be helpful)
homebrewdude
Posts: 54
Joined: Mon Aug 26, 2019 12:42 pm

Re: I think I have an issue with my API, not sure where to look

Post by homebrewdude »

I reinstalled the older zmNinjaPro which prompts for http or https and I choose http and basically it works.

So maybe there is something with https...
User avatar
iconnor
Posts: 2913
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: I think I have an issue with my API, not sure where to look

Post by iconnor »

http vs https shouldn't be an issue here. It only seems to affect image loading.

The response is pretty clear, Not Authenticated. The question is, why?
homebrewdude
Posts: 54
Joined: Mon Aug 26, 2019 12:42 pm

Re: I think I have an issue with my API, not sure where to look

Post by homebrewdude »

Not sure what I did...

I am now HTTPS with SSL and everything seems to be working
Post Reply