Skip to content

Raise a better error message when 1.26.x users call urllib3.request() #3046

@SAMAD101

Description

@SAMAD101

When making a request through ...
import urllib3 urllib3.request("GET", "https://httpbin.org/robots.txt")
Screenshot:
Screenshot_20230524_201701

This should not be the case. The README.md and the official documentation have this introductory example as well.

Info:

My Python version: 3.10.10

Steps to Reproduce

Just try to execute the urllib3.request() in any 1.26x version.

Expected Behavior

The request should do its job as demonstrated in the example.

Bounty requirements

Metadata

Metadata

Assignees

No one assigned

    Labels

    💰 Bounty $100If you complete this issue we'll pay you $100 on OpenCollective!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions