Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-8707

Toolbox command "application apply" returning error after API Credentials regenerated through the Portal

XMLWordPrintable

    • False
    • None
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Hide
      • Create a new application using Toolbox with command "application apply"
        • 3scale --verbose application apply --account=<value> --service=<value> --description=<value> --name=<value> --plan=<value> <remote> application_parameter10
      • Retrieve the application attributes:
        • 3scale --verbose application show <remote> application_parameter10
      • Regenerate the User Key through the Admin Portal UI and check the attributes again, so the application user_key has anew value and not `application_parameter10` as defined in the first step:
        • 3scale --verbose application show <remote> application_parameter10

                 The following error will be returned:

      {
        "code": "E_3SCALE",
        "message": "Application application_parameter10 does not exist",
        "class": "ThreeScaleToolbox::Error"
      } 
      • Then, try to rerun the command mentioned in the first step:
        • 3scale --verbose application apply --account=<value> --service=<value> --description=<value> --name=<value> --plan=<value> <remote> application_parameter10

                 The following error will be returned:

      {
        "code": "E_3SCALE_API",
        "message": "Application has not been created. Errors: {\"application_id\"=>[\"has already been taken\"]}",
        "class": "ThreeScaleToolbox::ThreeScaleApiError"
      }
      Show
      Create a new application using Toolbox with command "application apply" 3scale --verbose application apply --account=<value> --service=<value> --description=<value> --name=<value> --plan=<value> <remote> application_parameter10 Retrieve the application attributes: 3scale --verbose application show <remote> application_parameter10 Regenerate the User Key through the Admin Portal UI and check the attributes again, so the application user_key has anew value and not `application_parameter10` as defined in the first step: 3scale --verbose application show <remote> application_parameter10            The following error will be returned: {   "code" : "E_3SCALE" ,   "message" : "Application application_parameter10 does not exist" ,   "class" : "ThreeScaleToolbox::Error" } Then, try to rerun the command mentioned in the first step: 3scale --verbose application apply --account=<value> --service=<value> --description=<value> --name=<value> --plan=<value> <remote> application_parameter10            The following error will be returned: {   "code" : "E_3SCALE_API" ,   "message" : "Application has not been created. Errors: {\" application_id\ "=>[\" has already been taken\ "]}" ,   "class" : "ThreeScaleToolbox::ThreeScaleApiError" }

      When running the Toolbox command "application apply" for an application that had the user_key/app_key regenerated through the Portal we're getting the following error:

      {
        "code": "E_3SCALE_API",
        "message": "Application has not been created. Errors: {\"application_id\"=>[\"has already been taken\"]}",
        "class": "ThreeScaleToolbox::ThreeScaleApiError"
      } 

      The expected behavior would be creating a new application once the old identified (user_key/app_key) no longer exist for any application and can be confirmed by running the command "application show":

      {
        "code": "E_3SCALE",
        "message": "Application application_parameter10 does not exist",
        "class": "ThreeScaleToolbox::Error"
      } 

              Unassigned Unassigned
              gpereira@redhat.com Gustavo Pereira
              Martin Kudlej Martin Kudlej
              Eguzki Astiz Lezaun Eguzki Astiz Lezaun
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: