-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add Cam with basic-auth does not work #18
Comments
How you normally access the camera via browser? Does it work with username/pssword in URL? Thre are some cameras that use digest Auth instead of Basic Auth ... maybe your camera is working like that ... |
Usually I access the cam with an URL like http://username:password@ipaddressofcam/.../....jpg for example. I tried AXIS P1425-LE, AXIS P3225-LVE MKII as well as Mobotix M12. |
I ve the same Problem with the "connect ECONNREFUSED 127.0.0.1:80" message |
Why he tries to use localhost port 80 in your case? This most likely will not work |
I dont know. I ve installed the newest version. The Instance/Adapter dosnt create any DPs... Iv i klick in the cam config on the web link i become the econn err and if i klick on the local link i get the invalid key message. Dont know why because if i klick the test button i see my cam pic without any error. |
I ve set the Log to all. If i klick on the Lokal link the Instance crash:
|
Please retest with newest version |
Describe the bug
Adding an IP-Cam which only accepts access to its streams after entering username and password (basic-auth) does not work for me.
To Reproduce
one: Adding a cam which allows anonymous streaming clients in ioBroker.cameras worked fine (e. g. with an older Arecont-Vision cam)
The object in ioBroker's object-browser is generated, OK.
By click on it, I see the picture from the cam's stream, OK.
one: Now adding a cam which already works in IO-Broker.vis with URL "http://username:[email protected]/jpg/1/image.jpg" in ioBroker.cameras:
Selected on type: "URL with basic auth", specified the following URL: http://192.168.123.123/jpg/1/image.jpg and username as well as password in the given form fields.
Then saved and restarted the adapter ioBroker.cameras.
The object in ioBroker's object-browser is generated, OK.
By click on it, the admin interface crashes.
Tried to open the URL: https://192.168.123.123:8082/cameras.0/cam1
Now the following message appears:
connect ECONNREFUSED 127.0.0.1:8200
I am testing not on the local iobroker-machine. As local ip-address in ioBroker.cameras I tried 127.0.0.1 as well as ioBroker's internal IP.
By the way: If I click on "Prüfung", to check the connection to the camera, I always get an error "timeout". This also happens with the usually working Arecont-Camera (see 1. above).
Including username:password@... like in the URL above and selecting "URL" instead of "URL with basic auth" also did not work.
And finally here's ioBroker's log entry for the not-working cam:
Screenshots & Logfiles
![grafik](https://user-images.githubusercontent.com/110176201/181514461-3788b884-f163-41dd-9276-f0bfa75474c2.png)
![grafik](https://user-images.githubusercontent.com/110176201/181514821-35d5bd03-14d0-486d-b6bb-7d29eee6f5b7.png)
![grafik](https://user-images.githubusercontent.com/110176201/181515047-492141b8-264f-4f0f-a5da-2ec1309d2c38.png)
Versions:
Additional context
On instance ioBroker.vis, SSL with self-signed certificates is activated. Users have to login at the vis-interface at port 8082 and 8081 (admin)
Please let me know if I could test something!
Best regards and thanks for your great work,
micatec
The text was updated successfully, but these errors were encountered: