Comments (5)
Are you using node ninja or uptimerobot? The server uptime is used as a fallback in the case that the connection to ninja or uptimerobot cannot be established. There are some timeout values that govern that in function.php. Maybe you could try to increase them and see if that helps?
from nanonodemonitor.
I am using ninja, yes. And that make sense - thanks for the explanation. I see the CURLOPT_TIMEOUT option for the ninja API. I will try increasing that bit. Thanks, I think you can close this for now.
from nanonodemonitor.
Please report back.
from nanonodemonitor.
OK so the first test I did was lower the two TIMEOUT options to 1 (see below). With this done, I was able to replicate the issue within about 20 minutes
curl_setopt_array($curl, array( CURLOPT_URL => "https://nanonode.ninja/api/accounts/$account", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 1, CURLOPT_CONNECTTIMEOUT => 1, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1 )
After the issue was replicated, I changed both TIMEOUTs to 5 as per the below. It has been another 20 minutes and I have yet to see the issue recur. I will keep monitoring and report back if I do see it happens again, but the signs say that this worked. I am not too sure if I should have edited both TIMEOUT options (don't exactly know the difference), however.
curl_setopt_array($curl, array( CURLOPT_URL => "https://nanonode.ninja/api/accounts/$account", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 5, CURLOPT_CONNECTTIMEOUT => 5, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1 )
from nanonodemonitor.
Added 1s to both connection and receive timeouts in 25a27d5
from nanonodemonitor.
Related Issues (20)
- Use RPC uptime to get node uptime HOT 1
- Support for nano_ address prefix HOT 2
- How about giving access to the "process_block" RPC function ? HOT 3
- Delegator number is not shown properly HOT 1
- Invalid response from api.php HOT 1
- I have delegators on my node by node monitor shows N/A HOT 1
- Missing json_encode and json_decode functions? HOT 3
- Nano monitor HOT 1
- nano_3eu3jaqanq35zhekqn86zr1kktsrzff9qx9gzzjidakf1oz61fumkptth817
- Dariusz
- Favicon looks squished
- Nano favicon also on banano version HOT 1
- nNM not reporting any values HOT 4
- Node not running error while node is running HOT 2
- Where does nanoNodeAccount come from? HOT 4
- Display current price? HOT 1
- Bug: api.php sometimes returns "Warning: Cannot modify header information - headers already sent..." HOT 3
- Its not in my wallet
- I'm a Newbie n my name is Kenny..
- How to install
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 nanonodemonitor.