Skip to content

code cannot handle http proxy #882

Open
@yiweny

Description

@yiweny

Describe the bug
We are running a proxy service so the base is using http instead of https

path = decoded["next_url"].replace(self.BASE, "")

is causing a bug because it doesn't handle when the base is https.
We would get an error like

<urllib3.connection.HTTPConnection object at 0x7ec3ac4389e0>: Failed to resolve \'<proxy address>https\' ([Errno -2] Name or service not known)"))\n'

To Reproduce

Expected behavior
Fix it so it handles the case when base is http:

Screenshots

Additional context

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions