-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
res.data.includes is not a function #10
Comments
My guess is the response data is a JSON object and Uptime Kuma currently support html only. I will try to improve it. |
Edit: ignore above, was thinking of smtp, on mobile. I have two files located on my server served by nginx/php-fpm. One is a static index.html that is blank except for the number "42".
I do a check for each file as a seperate service and both checks are used to let me know that my webserver is okay, of course the php check will fail if nginx is down, but that is to be expected. Maybe the check you do is expecting a particular format? Instead of just a simple response? |
I am sorry that I am a bit lost. Do you mean the error you mentioned at the topic, is related to index.html/index.php hosted on nginx/php-fpm server? |
Correct. |
Just did a test, I replaced my index.html that used to have:
with the following:
It is now functioning, so I think you are on the right track that it is a issue with the way the response is being handled. Maybe don't check if it is valid HTML? Just parse the data for the keyword it gets on the response? |
I made the same change to my php script, it too now works as expected:
|
Found the root problem, because axios automatically parse the response "42" to number format. Lucky, JSON.stringify can also fix the problem even though it is not a json. Thank you for your special case. |
Fixed with 1.0.1 |
Getting this message with a "HTTP(s) - Keyword" service.
Let me know what you may need to help diagnose the issue, the logs are pretty empty.
The text was updated successfully, but these errors were encountered: