Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Metro endpoint is 404 #122

Closed
jpablo-eqx opened this issue Aug 27, 2021 · 1 comment · Fixed by #123
Closed

Metro endpoint is 404 #122

jpablo-eqx opened this issue Aug 27, 2021 · 1 comment · Fixed by #123
Labels
Milestone

Comments

@jpablo-eqx
Copy link

Getting when using list_metro function.

import packet
manager = packet.Manager(auth_token="TOKEN")
manager.list_metros()

Output

Traceback (most recent call last):
  File "/Users/HOME/projects/equinix-metal/packet-python/metro.py", line 5, in <module>
    manager.list_metros()
  File "/Users/HOME/.local/share/virtualenvs/packet-python-0HIUktmS/lib/python3.9/site-packages/packet/Manager.py", line 46, in list_metros
    data = self.call_api("metros", params=params)
  File "/Users/HOME/.local/share/virtualenvs/packet-python-0HIUktmS/lib/python3.9/site-packages/packet/Manager.py", line 32, in call_api
    return super(Manager, self).call_api(method, type, params)
  File "/Users/HOME/.local/share/virtualenvs/packet-python-0HIUktmS/lib/python3.9/site-packages/packet/baseapi.py", line 116, in call_api
    raise ResponseError(resp, data)
packet.baseapi.ResponseError: Error 404: Not found

Curl'ing the actual endpoint returns HTTP 404:

curl -I -H 'X-Auth-Token: TOKEN' https://api.packet.net/metros
HTTP/2 404
@displague
Copy link
Member

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants