-
Notifications
You must be signed in to change notification settings - Fork 6
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
Error: ERR_HTTP_INVALID_HEADER_VALUE #9
Comments
This plugin needs to be updated to support the UDM, UDM Pro and the Cloudkey Gen 2 with 2.0 firmware. My stab at doing this is in pull request #7 and you try it out as mentioned at #8 (comment) |
Hello Okay i will try out, first i must remove the current plugin and then i can install your version with npm install git+https://github.com/rloomans/homebridge-unifi-kids-cry.git Is this right, and i can use the same config.json settings? |
Yes, exactly. My fork is using exactly the same plugin name, etc, so the
same config will work... with addition of the unifios: true setting to
enable my changes.
…On Thu, 21 Jan 2021 at 17:21, suxus-zz ***@***.***> wrote:
Hello
Okay i will try out, first i must remove the current plugin and then i can
install your version with
npm install git+https://github.com/rloomans/homebridge-unifi-kids-cry.git
Is this right, and i can use the same config.json settings?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#9 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAWPZPDXFH6ZG5A6K6NT5LS27IXHANCNFSM4WLCBKMA>
.
--
Robert Loomans
[email protected]
|
It try this but i can't see the plugin i have this output pi@homebridge:~ $ npm install git+https://github.com/rloomans/homebridge-unifi-kids-cry.git
1 package is looking for funding found 0 vulnerabilities |
You have run npm in the homebridge directory.
If you have the homebridge ui plugin installed, the easiest way is to use
the terminal built into that.
[image: image.png]
…On Thu, 21 Jan 2021 at 17:34, suxus-zz ***@***.***> wrote:
@rloomans <https://github.com/rloomans>
It try this but i can't see the plugin i have this output
***@***.***:~ $ npm install git+
https://github.com/rloomans/homebridge-unifi-kids-cry.git
npm WARN saveError ENOENT: no such file or directory, open
'/home/pi/package.json'
npm notice created a lockfile as package-lock.json. You should commit this
file.
npm WARN enoent ENOENT: no such file or directory, open
'/home/pi/package.json'
npm WARN pi No description
npm WARN pi No repository field.
npm WARN pi No README data
npm WARN pi No license field.
- ***@***.***
added 5 packages from 5 contributors and audited 5 packages in 11.501s
1 package is looking for funding
run npm fund for details
found 0 vulnerabilities
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#9 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAWPZINJ5UZFHQKEE2KJ33S27KIRANCNFSM4WLCBKMA>
.
--
Robert Loomans
[email protected]
|
Yes i have install homebridge-config-ui-x v4.36.0 but i can't the terminal to input the command. |
If you can't use the terminal from the UI, then you need to find where
homebridge is installed on your pi and change directory to that before
running npm.
If you've used the Raspberry Pi image, that probably is
/var/lib/homebridge. So after ssh'ing into the pi, cd /var/lib/homebridge
and then run the npm command.
…On Thu, 21 Jan 2021 at 17:43, suxus-zz ***@***.***> wrote:
Yes i have install homebridge-config-ui-x v4.36.0 but i can't the terminal
to input the command.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#9 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAWPZMOTA7M2PKSXTFLNH3S27LIVANCNFSM4WLCBKMA>
.
--
Robert Loomans
[email protected]
|
I find the terminal, must actived in the conf but when i run the commend in the terminal then i have this output homebridge@homebridge:/var/homebridge $ npm install git+https://github.com/rloomans/homebridge-unifi-kids-cry.git
1 package is looking for funding I try it now with |
@rloomans have you a idea why i can't install your version from the plugin? Or is there another way to install the plugin. I think the idea of plugin is brilliant and I could really use it very well for myself, so it would be great if I could get it to work on myself. |
It looks like I might have misunderstood how the homekit raspberry pi image
is installed... it appears to be quite different from the container version
I use.
You can try adding a `-g` to the npm command, ie `npm install -g git+
https://github.com/rloomans/homebridge-unifi-kids-cry.git` or if you get
complaints about permission denied, try `sudo npm install -g git+
https://github.com/rloomans/homebridge-unifi-kids-cry.git`
…On Fri, 22 Jan 2021 at 15:54, suxus-zz ***@***.***> wrote:
@rloomans <https://github.com/rloomans> have you a idea why i can't
install your version from the plugin? Or is there another way to install
the plugin. I think the idea of plugin is brilliant and I could really use
it very well for myself, so it would be great if I could get it to work on
myself.
Thank you very much
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#9 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAWPZJG2KNFKPBRSBMXWCTS3EHHVANCNFSM4WLCBKMA>
.
--
Robert Loomans
[email protected]
|
I use this version and i try yesterday (on the Web-UI Terminal and on the Terminal) ` npm ERR! A complete log of this run can be found in: |
Have you tried doing npm install -g git+
https://github.com/rloomans/homebridge-unifi-kids-cry.git without the sudo?
…On Fri, 22 Jan 2021 at 16:17, suxus-zz ***@***.***> wrote:
I use this version
***@***.***:~ $ cat /etc/os-release PRETTY_NAME="Raspbian GNU/Linux 9
(stretch)" NAME="Raspbian GNU/Linux" VERSION_ID="9" VERSION="9 (stretch)"
VERSION_CODENAME=stretch ID=raspbian ID_LIKE=debian HOME_URL="
http://www.raspbian.org/" SUPPORT_URL="
http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="
http://www.raspbian.org/RaspbianBugs"
and i try yesterday (on the Web-UI Terminal and on the Terminal)
`
***@***.***:~ $ sudo npm install -g git+
https://github.com/rloomans/homebridge-unifi-kids-cry.git
npm ERR! code 128
npm ERR! Command failed: git clone --mirror -q
https://github.com/rloomans/homebridge-unifi-kids-cry.git
/root/.npm/_cacache/tmp/git-clone-07c486a8/.git
npm ERR! fatal: could not create leading directories of
'/root/.npm/_cacache/tmp/git-clone-07c486a8/.git'
npm ERR!
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-01-21T16_31_05_776Z-debug.log
`
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#9 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAWPZK5H6IXY67VKAGTBLLS3EJ6VANCNFSM4WLCBKMA>
.
--
Robert Loomans
[email protected]
|
I find a way from a few minutes, i have successfully install your version. ` ` I think the "rm -rf .npm" was importend. |
Hello, the plugin works wonderfully for me, exactly what I was looking for. |
@rloomans regards |
I saw that occasionally too on the cloudkey when it was busy. I haven't
seen it since upgrading to the UDM Pro.
…On Wed, 27 Jan 2021 at 16:05, suxus-zz ***@***.***> wrote:
@rloomans <https://github.com/rloomans>
Hello
Your version running on my Homebridge, but sometimes i have this errors in
the log
[27/01/2021, 06:53:10] [UnifiMacBlocker] Error: { "errors": [ "Invalid
username or password" ] } at RestClient.<anonymous>
(/usr/local/lib/node_modules/homebridge-unifi-mac-block/node_modules/typed-rest-client/RestClient.js:202:31)
at Generator.next (<anonymous>) at fulfilled
(/usr/local/lib/node_modules/homebridge-unifi-mac-block/node_modules/typed-rest-client/RestClient.js:6:58)
at runMicrotasks (<anonymous>) at processTicksAndRejections
(internal/process/task_queues.js:93:5) { statusCode: 401, result: { errors:
[ 'Invalid username or password' ] } }.
But my User/Pass it's correctly, i can login with this user/pass on my UDM
Pro UI. I don't know what's the problem.
regards
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#9 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAWPZOPEYBJPWFZHCE7223S36ULHANCNFSM4WLCBKMA>
.
--
Robert Loomans
[email protected]
|
Interesting, I also have a UDM Pro. The effect for me was that in HomeKit the message "locked" "unlocked" can then again and again with this device. |
Yup. That was exactly what I saw several times a day on the cloudkey.
Now that you remind me of that, I’ve seen it on the UDM Pro a couple of
times in maybe a month or so.
The plug-in probably needs to retry failed requests like some of the other
plugins...
On Wed, 27 Jan 2021 at 16:42, suxus-zz ***@***.***> wrote:
Interesting, I also have a UDM Pro. The effect for me was that in HomeKit
the message "locked" "unlocked" can then again and again with this device.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#9 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAWPZP53MLHXGUNSPEB2IDS36YULANCNFSM4WLCBKMA>
.
--
Robert Loomans
[email protected]
|
Good idea with the retry |
I've had a stab at making it do retries... try using this url to install
the new version...
git+https://github.com/rloomans/homebridge-unifi-kids-cry.git#retries
…On Wed, 27 Jan 2021 at 16:53, suxus-zz ***@***.***> wrote:
Good idea with the retry
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#9 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAWPZMTTLQABYJE7JKOERTS36Z45ANCNFSM4WLCBKMA>
.
--
Robert Loomans
[email protected]
|
Thank you, I'll be happy to test this out. Do I have to uninstall something beforehand or can I just install the new version with?
|
Yes. It will update the existing version.
On Wed, 27 Jan 2021 at 22:18, suxus-zz ***@***.***> wrote:
Thank you, I'll be happy to test this out. Do I have to uninstall
something beforehand or can I just install the new version with?
npm install -g --unsafe-perm git+
https://github.com/rloomans/homebridge-unifi-kids-cry.git#retries
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#9 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAWPZIOXX52UYNTV2KOLDLS4AADFANCNFSM4WLCBKMA>
.
--
Robert Loomans
[email protected]
|
Afternoon folks, sorry to jump in. I'm trying to get this plugin working and getting the same result ( |
Sorry peeps, been away for a while. |
Hello
I have currently this problem when i run your plugin. I have a Unifi DreamMachine Pro and i will control my AppleTV.
[20/01/2021, 19:05:13] [UnifiMacBlocker] TypeError [ERR_HTTP_INVALID_HEADER_VALUE]: Invalid value "undefined" for header "cookie" at ClientRequest.setHeader (_http_outgoing.js:561:3) at new ClientRequest (_http_client.js:251:14) at Object.request (https.js:313:10) at HttpClient.requestRawWithCallback (/usr/local/lib/node_modules/homebridge-unifi-mac-block/node_modules/typed-rest-client/HttpClient.js:310:35) at /usr/local/lib/node_modules/homebridge-unifi-mac-block/node_modules/typed-rest-client/HttpClient.js:289:18 at new Promise (<anonymous>) at HttpClient.requestRaw (/usr/local/lib/node_modules/homebridge-unifi-mac-block/node_modules/typed-rest-client/HttpClient.js:282:16) at HttpClient.<anonymous> (/usr/local/lib/node_modules/homebridge-unifi-mac-block/node_modules/typed-rest-client/HttpClient.js:207:43) at Generator.next (<anonymous>) at /usr/local/lib/node_modules/homebridge-unifi-mac-block/node_modules/typed-rest-client/HttpClient.js:9:71 { code: 'ERR_HTTP_INVALID_HEADER_VALUE' }
My config.json looks like this
{ "platform": "UnifiMacBlocker", "base": "192.168.88.1", "username": "USER-FROM-WEBGUI", "password": "PASS-FROM-WEBGUI", "site": "default", "refreshInterval": 5, "devices": [ { "name": "AppleTV", "mac": "90:dd:5d:a5:65:3c" } ] }
Have you a idea whats my problem?
regards
The text was updated successfully, but these errors were encountered: