Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.
This repository was archived by the owner on Mar 4, 2026. It is now read-only.

create_ssh_key returns 404 #78

Description

@mattdavis0351

Problem

Using this method returns 404 even though the resource gets created as expected in the Packet Project.

Method:

key = manager.create_ssh_key(label="matt-desktop,
                             public_key="some key")

Error:

packet\baseapi.py", line 92, in call_api
raise Error("Error {0}: {1}".format(resp.status_code, msg))
packet.baseapi.Error: Error 404: Not found

Resource actually created:
image

The key that is set for this label is the correct public key from my key file. Therefore returning 404 makes no sense.

This error also stops the rest of the execution for this script... as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions