You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used the GitHub search to find a similar issue and didn't find it.
I searched the Prefect documentation for this issue.
I checked that this issue is related to Prefect and not one of its dependencies.
Bug summary
Loading in the prefect Block and trying to send a message results in a status code 400 because the message is attempted to be send over an http:// connection instead of the https:// connection.
Log:
`
|WARNING|apprise-FailedtosendMattermostnotification: BadRequest-UnsupportedParameters., error=400.
`
Requests.response:
b'<html>\r\n<head><title>400 The plain HTTP request was sent to HTTPS port</title></head>\r\n<body>\r\n<center><h1>400 Bad Request</h1></center>\r\n<center>The plain HTTP request was sent to HTTPS port</center>\r\n<hr><center>nginx/1.20.1</center>\r\n</body>\r\n</html>\r\n'
### Versions
```Text
Version: 2.16.4
API version: 0.8.4
Python version: 3.11.3
Git commit: e3e7df9d
Built: Thu, Mar 14, 2024 5:11 PM
OS/Arch: win32/AMD64
Profile: dev
Server type: server
Additional context
It looks like the problem is that when apprise gets initialized by
it does not set a parameter for secure nor schema. If either secure or schema would get send, the URLBase class would have set self.secure = True and that would change the schema to https:// instead it sets self.secure = False and thus the schema used is http://
The text was updated successfully, but these errors were encountered:
Unfortunately, this is the maximum I can afford for this issue at the moment. I may eventually create the pull request; however, I would appreciate it if somebody else took it from here.
First check
Bug summary
Loading in the prefect Block and trying to send a message results in a status code 400 because the message is attempted to be send over an http:// connection instead of the https:// connection.
Reproduction
Error
Additional context
It looks like the problem is that when apprise gets initialized by
it does not set a parameter for
secure
norschema
. If either secure or schema would get send, the URLBase class would have setself.secure = True
and that would change the schema to https:// instead it setsself.secure = False
and thus the schema used is http://The text was updated successfully, but these errors were encountered: