-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[V3 Info] Don't rely on redirect #1581
Conversation
Http -> Https
Just started experiencing this problem myself. The above changes fixes it for me. |
Getting the same error, above fixes for me. |
Bread, your error is not the same error. Your error is in events.py, not core_commands.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
core/events.py
has the same problem and should be updated as well.
redbot/core/core_commands.py
Outdated
@@ -72,7 +72,7 @@ def __init__(self, bot): | |||
owner = app_info.owner | |||
|
|||
async with aiohttp.ClientSession() as session: | |||
async with session.get("http://pypi.python.org/pypi/red-discordbot/json") as r: | |||
async with session.get("https://pypi.python.org/pypi/red-discordbot/json") as r: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace this with session.get('{}/json'.format(red_pypi))
defined above
Use existing variable instead of new string
Remove redirect, url only reference
Type
Description of the changes
Fixes following trace: