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

UnhandledPromiseRejectionWarning: Error: 523 undefined #14

Closed
AlfaJackal opened this issue Feb 1, 2020 · 18 comments
Closed

UnhandledPromiseRejectionWarning: Error: 523 undefined #14

AlfaJackal opened this issue Feb 1, 2020 · 18 comments

Comments

@AlfaJackal
Copy link

Newly got this error. Any ideas how to fix that?

pi@Eggman:~/Pi-Hole-for-LaMetric $ node index.js 
Starting Pi-Hole for LaMetric v2.0.3-Beta...
⠋ Testing Pi-Hole Connection @ 10.0.0.13...Debug Mode Enabled
✔ Pi-Hole Connection @ 10.0.0.13 Successful!
✔ Pi-Hole Auth Valid!
✔ Connected to "Rayman" @ 10.20.0.22 running OS v2.0.24 & Pi-Hole Status v5! (XXX)
ℹ Up to date.
⠸ Sending update for "Rayman" @ 10.20.0.22 to the server...(node:3678) UnhandledPromiseRejectionWarning: Error: 523 undefined
    at /home/pi/Pi-Hole-for-LaMetric/node_modules/snekfetch/src/index.js:193:21
    at processTicksAndRejections (internal/process/task_queues.js:94:5)
(node:3678) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:3678) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate th⠏ Sending update for "Rayman" @ 10.20.0.22 to the server
@AlfaJackal
Copy link
Author

Didn’t do anything and it works again. Could you please tell us why this occurres so often?!

@iDerp
Copy link
Owner

iDerp commented Nov 4, 2020

This was most likely a server issue back then, hopefully you haven't gotten it often at all since

@iDerp iDerp closed this as completed Nov 4, 2020
@AlfaJackal
Copy link
Author

Hi @iDerp,

I am having this issue again. Is there anything wrong with the server?

Best,
AlfaJackal

@iDerp
Copy link
Owner

iDerp commented Aug 7, 2021

Hi, yes the server was down. Everything should be all set now, might take up to 24 hours though for the Lametric to notice its back online. Just make sure you update the app on Lametric if it doesn't automatically.

@AlfaJackal
Copy link
Author

Thank you!

Any chances for self-hosting this one?

@AlfaJackal
Copy link
Author

AlfaJackal commented Aug 17, 2021

Hi, yes the server was down. Everything should be all set now, might take up to 24 hours though for the Lametric to notice its back online. Just make sure you update the app on Lametric if it doesn't automatically.

Back home now and tried it again: Doesn't work, unfortunately. image

App is up to date, also LaMetric firmware.

@iDerp
Copy link
Owner

iDerp commented Aug 17, 2021

I'll have to take a look into whats going on. It should be set, but knowing me I might've skipped a simple step

@iDerp
Copy link
Owner

iDerp commented Aug 17, 2021

I did skip a step, I just updated the client program (this repo) so once you pull that it should work.

@iDerp iDerp reopened this Aug 17, 2021
@AlfaJackal
Copy link
Author

AlfaJackal commented Aug 18, 2021

I did skip a step, I just updated the client program (this repo) so once you pull that it should work.

Yeah, saw your edit and pulled it. Works:
image

Thank you very much!

One last question: Have you already thought about a self-hosting solution?

@AlfaJackal
Copy link
Author

AlfaJackal commented Aug 18, 2021

OK, something is still fishy here: Connection, as you can see above, has been made but LaMetric still shows no data - only this screen:
image

LaMetric App (Version 5) has been reinstalled, restarted LaMetric, restarted script - no data on my LaMetric.

@AlfaJackal
Copy link
Author

Any update on that issue?

@iDerp
Copy link
Owner

iDerp commented Oct 1, 2021 via email

@iDerp
Copy link
Owner

iDerp commented Oct 4, 2021

Any update on that issue?

On my end, I didn't notice anything different. The server is still receiving requests. Are you still having this issue?

@AlfaJackal
Copy link
Author

AlfaJackal commented Oct 5, 2021

Any update on that issue?

On my end, I didn't notice anything different. The server is still receiving requests. Are you still having this issue?

Thanks for looking into it! Yes, unchanged and not working. I just deleted the app on LaMetric and wanted to reinstall it, but it is not in the LaMetric Store anymore: https://apps.lametric.com/apps/pi-hole_status/6943

Also searching for "Pi-Hole", "pihole", "Pi Hole", etc. does not find your app.

@iDerp
Copy link
Owner

iDerp commented Oct 5, 2021 via email

@AlfaJackal
Copy link
Author

It is.

Thanks for looking in it. There is no hurry - would be glad if you'll manage to fix it. Love your app! 🤩

@iDerp
Copy link
Owner

iDerp commented Oct 6, 2021

Should be all set now. Seems like I forgot to change the URL when I moved the server.

@AlfaJackal
Copy link
Author

Should be all set now. Seems like I forgot to change the URL when I moved the server.

Installed the app again, fired up the script ... works like a charm now! That was it! :) Thank you again! 🤘

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