You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am new to the pactman and got stuck on the very first step. I followed the quickstart from the docs, but getting the following error:
Traceback (most recent call last):
File "/Users/serhii/work/python-pact/test.py", line 33, in test_get_user
result = get_user('UserA')
File "/Users/serhii/work/python-pact/test.py", line 10, in get_user
response = requests.get(f'http://service.example/users/{user_name}')
File "/Users/serhii/.pyenv/versions/pact/lib/python3.9/site-packages/requests/api.py", line 73, in get
return request("get", url, params=params, **kwargs)
File "/Users/serhii/.pyenv/versions/pact/lib/python3.9/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/Users/serhii/.pyenv/versions/pact/lib/python3.9/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/Users/serhii/.pyenv/versions/pact/lib/python3.9/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/Users/serhii/.pyenv/versions/pact/lib/python3.9/site-packages/requests/adapters.py", line 565, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: MockConnectionPool(host='service.example', port=80): Max retries exceeded with url: /users/UserA (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x102363a90>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known'))
I am new to the pactman and got stuck on the very first step. I followed the quickstart from the docs, but getting the following error:
The code is in this gist
The text was updated successfully, but these errors were encountered: