Skip to content

Metro endpoint is 404 #122

@jpablo-eqx

Description

@jpablo-eqx

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions