Thanks to visit codestin.com
Credit goes to github.com

Skip to content

kongctl apply attempting to create api_document that already exists #36

@jdw6359

Description

@jdw6359

When running kongctl apply -f <> I get the below output:

Note: It is detecting an api_document: main for creation, but the api_document already exists. As a result, the creation will 409 with a resource conflict

SUMMARY
----------------------------------------------------------------------
  Total changes: 3
  Namespaces affected: 1
  Resources to create: 1
  Resources to update: 2

  Resource breakdown:
    api_document: 1
    api_publication: 1
    portal_page: 1

CONFIRM?
----------------------------------------------------------------------
Do you want to continue? Type 'yes' to confirm: yes

Applying changes:
[1/3] [namespace: default] Updating portal_page: home... ✓
[2/3] [namespace: default] Creating api_document: main... ✗ Error: API error during create of api_document '[unknown]': failed to create API document: {"status":409,"title":"Resource Conflict","type":"https://kongapi.info/konnect/resource-conflict","instance":"kong:trace:4259404297542154812"}
[3/3] [namespace: default] Updating api_publication: example-api-to-seatgeek... ✓

Complete.
Applied 2 changes.

Errors:
  • api_document [unknown]: API error during create of api_document '[unknown]': failed to create API document: {"status":409,"title":"Resource Conflict","type":"https://kongapi.info/konnect/resource-conflict","instance":"kong:trace:4259404297542154812"}

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions