-
-
Notifications
You must be signed in to change notification settings - Fork 209
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
Pihole api unresponsive after consecutive requests #2301
Comments
Likely. There are many configuration changes, that require a restart before they have any effect. FTL is smart enough to know which changes require a restart and will automatically restart itself. During the restart, the API won't respond. When you go to Settings > All Settings you see a small restart symbol for all options that require/trigger a restart |
Thanks, that makes sense. Do you have any recommendation of how to make consecutive api calls? I would like to avoid sleeping before proceeding with the next call, is there any preferred endpoint to call to "healthcheck" the api? |
I don't think we have any specific health check endpoint. I myself would use |
I concur on using |
Versions
Core version is v6.0.4 (Latest: v6.0.4)
Web version is v6.0.1 (Latest: v6.0.1)
FTL version is v6.0.2 (Latest: v6.0.2)
Platform
Expected behavior
The pihole api to not become unresponsive and refuse connections temporarily.
Actual behavior / bug
It seems like the pihole api becomes unresponsive briefly after sending the following request:
PATCH /api/config
.A consecutive request to
POST /api/action/gravity
after a receving a http 200 fromPATCH /api/config
fails:go http client error:
http://192.168.0.148/api/action/gravity: Post \"http://192.168.0.148/api/action/gravity\": dial tcp 192.168.0.148:80: connect: connection refused"
This occurs intermittently, it's not unresponsive every time. Is this expected behavior?
Steps to reproduce
Steps to reproduce the behavior:
PATCH /api/config
POST /api/action/gravity
Debug Token
The text was updated successfully, but these errors were encountered: