Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zmNinja fails against ZM 1.31.1 #533

Closed
tradel opened this issue Sep 11, 2017 · 2 comments
Closed

zmNinja fails against ZM 1.31.1 #533

tradel opened this issue Sep 11, 2017 · 2 comments

Comments

@tradel
Copy link

tradel commented Sep 11, 2017

Before you create an issue, please make sure you have read the FAQ at https://github.com/pliablepixels/zmNinja/wiki/FAQ. Common questions on API, no image etc are covered there.

Platform & OS Version
MacOS Sierra 10.12.6

The version of the app you are reporting:
1..2.41D

Device details:
MacBook Pro

What is the nature of your issue
Bug

Details
With a clean install of ZM 1.31.1, zmNinja passes the API tests but fails to bring up the montage or event list. The following error is reported in the logs:

Sep 11, 2017 06:37 PM INFO Error retrieving ZM_PATH_ZMS: {"success":false,"data":{"name":"Invalid config","message":"Invalid config","url":"/zm/api/configs/viewByName/ZM_PATH_ZMS.json","exception":{"class":"NotFoundException","code":404,"message":"Invalid config"}}}
Sep 11, 2017 06:37 PM DEBUG Config URL for ZMS PATH is:https://zoneminder.radel.us/zm/api/configs/viewByName/ZM_PATH_ZMS.json

Full log file is attached. Same happens with zmNinja on iOS by the way.

zmNinja-logs-Sep-11-17_18-38-35.txt

Thanks!

@pliablepixels
Copy link
Member

I am on ZM 1.31.1 as well, and on OS X. I use both zmNinja desktop and iOS versions and they both work fine. You might have truncated logs - I ZM_PATH_ZMS failing is fine - its part of the wizard process. I don't see any logs related to events list or montage list. Best thing to do is try the APIs on the browser first - see if you get anything (or a blank screen)

  1. Launch a browser
  2. Log in
  3. Open a new tab in the same browser
  4. type in http://server/zm/api/events.json and http://server/zm/api/monitors.json - what do you see? If its empty, you have a UTF8 issue
  5. If it works, please send logs for those screens (please don't truncate logs)

@tradel
Copy link
Author

tradel commented Sep 12, 2017

I already did the API troubleshooting steps, and was able to pull up both monitors.json and events.json with no problem.

Oddly enough, I restarted zmNinja to grab more debug logs, and the problem went away. So maybe it's a problem only on the first run of the app.

@tradel tradel closed this as completed Sep 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants