Skip to content

Investigate resource_already_exists error when passing --cli-path #122

@leggetter

Description

@leggetter

Summary of Reported Issue

A user encountered a 409 RESOURCE_ALREADY_EXISTS error when attempting to restart a Hookdeck CLI listener with the following command:

hookdeck listen 8071 Source --cli-path /monitor

Error:

{
  "code": "RESOURCE_ALREADY_EXISTS",
  "status": 409,
  "message": "Resource already exists",
  "data": {
    "id": "[REDACTED_SOURCE_ID]",
    "resource_type": "source"
  }
}

Context

  • The connection was previously established using the CLI.
  • When trying to re-establish the same connection after interruption, the CLI returns the 409 error.
  • The CLI --cli-path flag was used, which may be affecting the behavior.
  • User was advised that --cli-path is optional and that the path can be set on the destination permanently.
  • The user resolved the issue by deleting and reconfiguring the setup locally.

Next Steps

Investigate whether the CLI is correctly handling reconnection attempts when the same source is reused and --cli-path is specified.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions