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

Error: Failed to retrieve public ip address #81

Closed
benfysh opened this issue Jul 29, 2019 · 6 comments
Closed

Error: Failed to retrieve public ip address #81

benfysh opened this issue Jul 29, 2019 · 6 comments
Labels
bug Something isn't working

Comments

@benfysh
Copy link

benfysh commented Jul 29, 2019

Opening new issue as requested in #35 (comment) I am consistently getting the Error: Failed to retrieve public ip address issue when trying to start a livestream, log sample shown below.

Yesterday I removed and cleaned up the cameras, uninstalled and then reinstalled the plugins and then added the cameras back into Home and was still getting the issue. About 2 hours later the streams started to work every time. However, this morning I am getting the error again.

Jul 29 08:49:10 raspberrypi homebridge[9409]: [2019-7-29 08:49:10] [Ring] Snapshot Requested for Garage
Jul 29 08:49:13 raspberrypi homebridge[9409]: [2019-7-29 08:49:13] [Ring] Failed to prepare stream for Garage
Jul 29 08:49:13 raspberrypi homebridge[9409]: [2019-7-29 08:49:13] [Ring] Error: Failed to retrieve public ip address
Jul 29 08:49:13 raspberrypi homebridge[9409]:     at Object.<anonymous> (/usr/lib/node_modules/homebridge-ring/lib/homebridge/rtp-utils.js:36:23)
Jul 29 08:49:13 raspberrypi homebridge[9409]:     at Generator.throw (<anonymous>)
Jul 29 08:49:13 raspberrypi homebridge[9409]:     at rejected (/usr/lib/node_modules/homebridge-ring/lib/homebridge/rtp-utils.js:5:65)
Jul 29 08:49:13 raspberrypi homebridge[9409]:     at <anonymous>
Jul 29 08:49:13 raspberrypi homebridge[9409]:     at process._tickCallback (internal/process/next_tick.js:189:7)
Jul 29 08:49:25 raspberrypi homebridge[9409]: [2019-7-29 08:49:25] [Ring] Preparing Live Stream for Garage
Jul 29 08:50:11 raspberrypi homebridge[9409]: [2019-7-29 08:50:11] [Ring] Snapshot Requested for Garage
@benfysh
Copy link
Author

benfysh commented Jul 29, 2019

Not sure if this helps but I installed public-ip-cli and that only seems to work with the -h option for using https instead of DNS

pi@raspberrypi:~ $ public-ip
Error: Couldn't find your IP
    at socketQuery.then (/usr/lib/node_modules/public-ip-cli/node_modules/public-ip/index.js:50:10)
    at <anonymous>
pi@raspberrypi:~ $ public-ip -h
xx.xx.xxx.xx

@dgreif
Copy link
Owner

dgreif commented Jul 29, 2019

@benfysh that is extremely helpful! I'll get an update out later today for you

@benfysh
Copy link
Author

benfysh commented Jul 29, 2019

Great thanks, will test and feedback :)

@benfysh
Copy link
Author

benfysh commented Jul 29, 2019

As it did last night around the same time streaming has started working again ¯_(ツ)_/¯ the public-ip cli tool is still not working.

Not sure what is changing after 21:30? Will have to see what happens in the morning …

@dgreif
Copy link
Owner

dgreif commented Jul 29, 2019

Ok, I've added https as a fallback in v4.5.2. Hopefully that get's you working in all scenarios. Post back in 24 hours and let me know how it goes 😄

@dgreif dgreif added the bug Something isn't working label Jul 30, 2019
@benfysh
Copy link
Author

benfysh commented Jul 30, 2019

Hi, can confirm that everything is now working as expected on my side. Thanks again for the plugin and for fixing my specific issue.

@benfysh benfysh closed this as completed Jul 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants