Skip to content
This repository was archived by the owner on Jun 14, 2026. It is now read-only.
This repository was archived by the owner on Jun 14, 2026. It is now read-only.

API 401 Error - Basic Auth #774

@tgreer

Description

@tgreer

Before you create an issue, please make sure you have read the FAQ. Common questions on API, no image etc are covered there. Please also read HOWTO REPORT ISSUES

Platform & OS Version

iOS 12.1.2 & MacOS 10.14.2

The version of zmNinja you are reporting:

1.3.039 on both

The version of ZoneMinder you are using:

1.32.2

Device details:

Macbook Pro & iPhone 7

What is the nature of your issue

Bug/Error

Details

Getting 401 error in the logs for the API. Testing via brower on mac and iphone has all the pages return OK.

Debug Logs (if applicable)


Jan 30, 2019 10:03:20 AM INFO API login error {"data":"<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<html><head>\n<title>401 Unauthorized</title>\n</head><body>\n<h1>Unauthorized</h1>\n<p>This server could not verify that you\nare authorized to access the document\nrequested.  Either you supplied the wrong\ncredentials (e.g., bad password), or your\nbrowser doesn't understand how to supply\nthe credentials required.</p>\n<hr>\n<address>Apache/2.4.29 (Ubuntu) Server at [URL] Port 443</address>\n</body></html>\n","status":401,"config":{"method":"GET","transformRequest":[null],"transformResponse":[null],"url":"https://[URL]/zm/api/host/getVersion.json","headers":{"Accept":"application/json, text/plain, */*","Authorization":"Basic [string removed]"},"withCredentials":true},"statusText":"Unauthorized"}

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions