I'm following the tutorial, but I get an error when I use item_public_token_exchange.
itempublic_tokenexchange
exchange_request = ItemPublicTokenExchangeRequest(
public_token=plaid_token
)
exchange_response = CLIENT.item_public_token_exchange(exchange_request)
the error:
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='sandbox', port=80): Max retries exceeded with url: /item/public_token/exchange (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x10f1493a0>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known'))
Not sure what is happening.
It looks like the problem is that you are trying to connect to sandbox instead of sandbox.plaid.com. Make sure you have your host set up as plaid.Environment.Sandbox (or, alternatively, sandbox.plaid.com) and not just sandbox.
Related
import requests
r = requests.get('http://http2bin.org/get')
I am getting below errors:
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError:
HTTPConnectionPool(host='http2bin.org', port=80): Max retries exceeded
with url: /get (Caused by
NewConnectionError('<urllib3.connection.HTTPConnection object at
0x031CAB08>: Failed to establish a new connection: [Errno 11004]
getaddrinfo failed'))
What could be the reason? Is it related to Proxy ?
It's a website problem.Try it with another website surely it would work.
When I try to use the requests lib get method I get an error:
(using tkinter)
The error comes from this line:
var.set(get('https://api.ipify.org').text)
the error message says :
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.ipify.org', port=443): Max retries exceeded with url: / (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused',))
I'm trying to use requests to get the text off a website, but it is not working and I'm not sure why. Here is my code:
import requests
print(requests.get("https://projecteuler.net/project/resources/p079_keylog.txt").text)
which gives me the following error:
HTTPSConnectionPool(host='projecteuler.net', port=443): Max retries exceeded
with url: /project/resources/p079_keylog.txt (Caused by
NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnectio
n object at 0x000002701CC15128>: Failed to establish a new connection: [Errno
11001] getaddrinfo failed',))
So it seems a connection cannot be made. The website is valid and works. Is there anything simple I'm doing wrong that may be causing this?
You have a little error:
print(requests.get("https://projecteuler.net/project/resources/p079_keylog.txt").text)
.text is out of url string but anyway I've tried it and I have not found any error. It seems that you have exceeded the number of requests.
Result:
319
680
...
Everytime I make an external request (including to google.com) I get this response:
HTTPConnectionPool(host='EXTERNALHOSTSITE', port=8080): Max retries exceeded with url: EXTERNALHOSTPARAMS (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x105d8d6d0>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known',))
It does seem that your server cannot resolve the hostname into IP, this is probably not Django nor Python problem but your server network setup issue.
Try to reach the same URL with ping tool / wget/curl or troubleshoot DNS with nslookup.
I'm trying to put a zip file on artifactory. I'm using 'repositorytools' package and this is how I'm doing it;
try:
local_path = os.path.join(os.getcwd(), "sample-0.1.0.zip")
artifact = repositorytools.LocalArtifact(local_path=local_path,
group='widgets', artifact='sample')
client = repositorytools.repository_client_factory(user='user',
password='pw')
remote_artifacts = client.upload_artifacts(local_artifacts=
[artifact],repo_id='https://artifacts.zeki.com/zeki-development/')
print(remote_artifacts)
except Exception as e:
print colored(("Exception has occurred of type: {} with def:
{}".format(type(e), e)), 'red')
Well all I'm getting this annoying error;
Exception has occurred of type: with def: HTTPSConnectionPool(host='repository', port=443): Max retries exceeded with url: /service/local/artifact/maven/content (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known',))
So, i tried couple of ways to overcome like increasing retry count but nothing seemed to work. Any ideas?
Thx
repo_id should be only 'zeki-development'.
You need to export environment variable REPOSITORY_URL with value https://artifacts.zeki.com or better pass that value to repository_url parameter of repository_client_factor
``
so it can look like this:
client = repositorytools.repository_client_factory(repository_url='https://artifacts.zeki.com', user='user', password='pw')