Comments (7)
The server for the app had been down but I had some time and put it back up on the new server. The program should be running fine now. I did have to update the domain so the client app and the lametric app need to be updated on the client end. If you have any more issues, please let me know.
from pi-hole-for-lametric.
Hi, thanks for such a quick reply.
I deleted the Lametric Pi Hole Status app and installed it again, and on the VM removed the folder cloned it again from github, set the config.json file again, run npm i and node index.js again.
Unfortunately getting the same error:
mil@piholetvs471:~/Pi-Hole-for-LaMetric$ node index.js
Starting Pi-Hole for LaMetric v2.0.2...
⠙ Connecting to LaMetric @ 192.168.88.54...(node:20404) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'toString' of undefined
at snek.get.set.then.LaMetricDeviceInfo2 (/home/milan1201/Pi-Hole-for-LaMetric/index.js:75:112)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
(node:20404) 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: 1)
(node:20404) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Let me know what you want me to test and make it work.
from pi-hole-for-lametric.
Right after line 67, add this line on a new line
console.log(PiHoleTopItemsData.body)
Then let me know the output
from pi-hole-for-lametric.
Will there be a server free version?
from pi-hole-for-lametric.
Eventually yes, the current issue you have seems to be LaMetric related though.
from pi-hole-for-lametric.
Still no go, will try again in a few days/weeks if it is Lametric related.
Cheers
1201@piholetvs471:~/Pi-Hole-for-LaMetric$ node index.js
Starting Pi-Hole for LaMetric v2.0.2...
⠙ Connecting to LaMetric @ 192.168.88.54...{ top_queries:
{ 'speedtest.sbb.rs': 5504,
'speedtest.beotel.net': 4254,
'speedtest.telenor.rs': 1932,
'speedtest.mts.rs': 1154,
'www.speedtest.net': 768,
'speedtest.vektor.net': 642,
'speedtest.vipmobile.rs': 254,
'1.0.0.1.in-addr.arpa': 26,
'1.1.1.1.in-addr.arpa': 26,
'api.snapcraft.io': 16 },
top_ads: [] }
(node:6553) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'toString' of undefined
at snek.get.set.then.LaMetricDeviceInfo2 (/home/milan1201/Pi-Hole-for-LaMetric/index.js:76:112)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
(node:6553) 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: 1)
(node:6553) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
⠧ Sending update for "My LaMetric" @ 192.168.88.54 to the server...^C
from pi-hole-for-lametric.
Sorry, I meant PiHole related. It seems that there may have been a change to PiHole since I made this. This should be a simple fix for now. What I will do is temporarily remove the Last Blocked Query value until I can mess around with PiHole myself. Until I can, I pushed out a new client update that should fix it. No need to do an update for the app on the LaMetric for this one.
from pi-hole-for-lametric.
Related Issues (12)
- Server url not available HOT 1
- VLAN: Error: 400 Bad Request HOT 1
- UnhandledPromiseRejectionWarning: Error: 523 undefined HOT 18
- Is it possible to publish server-side code? HOT 1
- Stuck on "Sending update to server" HOT 2
- Unhandled promise rejection error HOT 3
- My config.json file is blank
- Bad gateway? HOT 3
- "Blocked Today" should med renamed to blocked last 24h HOT 2
- Lametric queries lametric.b1nzy.xyz every 5 seconds with plugin installed. HOT 13
- UnhandledPromiseRejectionWarning: Error: 522 undefined HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pi-hole-for-lametric.