ssl_verify argument not used in get_status_page() #65
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: DGNum/uptime-kuma-api#65
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When instantiating an instance of the
UptimeKumaApi
class, you can disable SSL verification via thessl_verify
argument in the constructor:This is then set on the Client:
self.sio = socketio.Client(ssl_verify=ssl_verify)
so any web requests issued by the Client use this variable.However, there is a single
requests.get()
withinget_status_page()
that bypasses the Client, so thessl_verify
arg is not passed:As a result, if you instantiate your API with
api = UptimeKumaApi("https://localhost:8080", ssl_verify=False)
, callingapi.get_status_page()
will fail with an SSL verification error.