-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
JSON: allow insecure/selfsigned certificate #309
Comments
Hi, i can reproduce the error. still checking... |
Hi, |
Hi, thanks for checking in Unfortunately I still get the same result... This might be a long shot but I'll throw that out there since anything can help with such cryptic error messages : |
I'm facing the same problem. The self-signed certificate might indeed be the problem. |
By adding a line curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); in analytics/lib/Datasource/Json.php, I can successfully get the data from serverinfo. Based on php docs and this SO answer, changing line 86 in Json.php ( It should be possible to implement a checkbox to tick |
Hello @tautomer |
tautomer@c99970d |
Got it working by changing the actual option to 0 and 2, instead of true or false.
Because of this, using true/false will not work, as only 0 is a valid option. 1 just throws an error, rendering the line useless. master...tautomer:analytics:allow_insecure Now it looks like this. But I'm sure you can come up with a better option. However, if you want, I can create a PR to save you some effort. |
Hi @tautomer |
Hi,
I have tried to monitor my NC instance's ocs/v2.php/apps/serverinfo/api/v1/info by exactly following the instructions at https://github.com/Rello/analytics/wiki/Datasource:-JSON (Example 1), but I keep getting the "HTTP Error 0" toast and no data appears.
As a workaround I have also tried setting
occ config:app:set serverinfo token
and using NC-Token:token* as authentication but the error persists.No relevant logs (such as login failures) appear in the instance logs, and I can access the json file just fine from my browser so it's not a server-side error.
Thanks in advance !
*as per the documentation at the bottom of the instance's serverinfo page.
The text was updated successfully, but these errors were encountered: