API Connect

API Connect

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#API Connect
#Applicationintegration
#APIConnect
 View Only
  • 1.  Not able to deploy the product through CLI

    Posted Sun May 26, 2024 09:56 AM

    I'm unable to deploy a product through CLI. Facing some error. I was able to deploy multiple products but only one product is giving problem

    Below is the error.

    apic products:publish ./internal.0.0.yaml --catalog production --gateway_services gw-service --org prodqa --server https://apicmgr.prod.qa
    panic: project.ArtifactType(0)
     
    goroutine 1 [running]:
    github.ibm.com/velox/toolkit/lib/payloads.(*MultipartBody).AddPartArtifact(...)
    /home/jenkins/go/src/github.ibm.com/velox/toolkit/lib/payloads/multipart.go:76
    github.ibm.com/velox/toolkit/lib/cmd_util.AddApiToMultipart(0xc000b1fc20, 0xc0014215a0)
    /home/jenkins/go/src/github.ibm.com/velox/toolkit/lib/cmd_util/helper.go:105 +0x519
    github.ibm.com/velox/toolkit/apim/cmd/cmd_ext.getProductMultipartPayload(0xc000b1f680, 0x1f?)
    /home/jenkins/go/src/github.ibm.com/velox/toolkit/apim/cmd/cmd_ext/products-publish-update.go:116 +0x3fe
    github.ibm.com/velox/toolkit/apim/cmd/cmd_ext.getProductPayload(0xc00028f810?, {0x7ffc70566650?, 0x7?}, 0x30?, 0x0)
    /home/jenkins/go/src/github.ibm.com/velox/toolkit/apim/cmd/cmd_ext/products-publish-update.go:86 +0x285
    github.ibm.com/velox/toolkit/apim/cmd/cmd_ext.GetCatalogPublishPayload(...)
    /home/jenkins/go/src/github.ibm.com/velox/toolkit/apim/cmd/cmd_ext/products-publish-update.go:30
    github.ibm.com/velox/toolkit/generated/apim/cmd.glob..func365(0xc0009226c0, {0xc000b1f170, 0x1, 0x9?})
    /home/jenkins/go/src/github.ibm.com/velox/toolkit/generated/apim/cmd/products.go:10025 +0x1e5d
    github.com/spf13/cobra.(*Command).execute(0xc0009226c0, {0xc000b1f0e0, 0x9, 0x9})
    /home/jenkins/go/pkg/mod/github.com/spf13/cobra@v0.0.2-0.20171207074935-ccaecb155a21/command.go:746 +0x67c
    github.com/spf13/cobra.(*Command).ExecuteC(0xc00022bb00)
    /home/jenkins/go/pkg/mod/github.com/spf13/cobra@v0.0.2-0.20171207074935-ccaecb155a21/command.go:831 +0x268
    github.com/spf13/cobra.(*Command).Execute(...)
    /home/jenkins/go/pkg/mod/github.com/spf13/cobra@v0.0.2-0.20171207074935-ccaecb155a21/command.go:784
    github.ibm.com/velox/toolkit/cmd.Run({0xc0000220b0?, 0xb, 0xb}, 0x0)
    /home/jenkins/go/src/github.ibm.com/velox/toolkit/cmd/root.go:318 +0x152
    main.main()
    /home/jenkins/go/src/github.ibm.com/velox/toolkit/main.go:24 +0x30



    ------------------------------
    ganesh kaki
    ------------------------------


  • 2.  RE: Not able to deploy the product through CLI

    Posted Mon May 27, 2024 01:08 AM

    Run it again with -debug and you'll likely get more of a clue what the error is.

    My guess is there's something specifically wrong with that individual file.



    ------------------------------
    Chris Dudley
    ------------------------------