0

I have used the API of BaiduMap, and the port of API's configuration is * to keep my connection with the API, but the terminal still told me the protocol error. It's my first time using requests package. I've install certifi, but it doesn't work.

1

3 Answers 3

0

try to add a environment variables

name:HTTPS_PORXY value:http://proxy_ip:proxy_port 

search in windows10 setting for proxy ,and you can see the ip and port

Sign up to request clarification or add additional context in comments.

Comments

0

Had the same issue recently. Even though I specified verify=False I was getting SSLError.

I downgraded python version from 3.11.3 to 3.9.12, and it started working. Tried with 3.11.0 too and it works.

I guess there is some issue with 3.11.3 python version.

Comments

-2

Requests library needs to verify SSL configuration.

You need to add verify option like that

requests.get('https://www.example.com', verify=False) 

1 Comment

thanks 4 your help.Its my computer's question for I enabled network manual proxy. when I turned off my proxy, SSL configuration was verified.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.