Python Requests - No connection adapters

Azd325 picture Azd325 · Feb 27, 2013 · Viewed 166.3k times · Source

I'm using the Requests: HTTP for Humans library and I got this weird error and I don't know what is mean.

No connection adapters were found for '192.168.1.61:8080/api/call'

Anybody has an idea?

Answer

Martijn Pieters picture Martijn Pieters · Feb 27, 2013

You need to include the protocol scheme:

'http://192.168.1.61:8080/api/call'

Without the http:// part, requests has no idea how to connect to the remote server.

Note that the protocol scheme must be all lowercase; if your URL starts with HTTP:// for example, it won’t find the http:// connection adapter either.