Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new integration type apikey gives invalid config error when running aio app init #564

Closed
dhindle opened this issue Aug 11, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@dhindle
Copy link

dhindle commented Aug 11, 2022

Expected Behaviour

I expect the cli to generate a app builder project

Actual Behaviour

Throws error

 ›   Error: Missing or invalid keys in config: [
 ›     {
 ›       "keyword": "required",
 ›       "dataPath": ".project.workspace.details.credentials[0].oauth2",
 ›       "schemaPath": "#/definitions/oauth2/required",
 ›       "params": {
 ›         "missingProperty": "client_secret"
 ›       },
 ›       "message": "should have required property 'client_secret'"
 ›     },
 ›     {
 ›       "keyword": "format",
 ›       "dataPath": ".project.workspace.details.credentials[0].oauth2.redirect_uri[0]",
 ›       "schemaPath": "#/definitions/oauth2/properties/redirect_uri/items/format",
 ›       "params": {
 ›         "format": "uri"
 ›       },
 ›       "message": "should match format \"uri\""
 ›     }
 ›   ]

Reproduce Scenario (including but not limited to)

Create a project from console.adobe.io add service API Mesh then run aio app init

Steps to Reproduce

Create a project from console.adobe.io add service API Mesh then run aio app init

Environment Info

 System:
    OS: macOS 11.6.1
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 82.47 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.13.0 - /usr/local/bin/node
    Yarn: Not Found
    npm: 8.1.4 - /usr/local/bin/npm
  Virtualization:
    Docker: Not Found
  npmGlobalPackages:
    @adobe/aio-cli: 8.3.0

  Proxies:
    http: (not set)
    https: (not set)
  CLI plugins:
    core:
      @adobe/aio-cli 8.3.0
      @adobe/aio-cli-plugin-app 8.6.1
      @adobe/aio-cli-plugin-auth 2.6.0
      @adobe/aio-cli-plugin-certificate 0.3.1
      @adobe/aio-cli-plugin-config 3.0.1
      @adobe/aio-cli-plugin-console 3.5.0
      @adobe/aio-cli-plugin-events 1.1.6
      @adobe/aio-cli-plugin-info 2.1.0
      @adobe/aio-cli-plugin-runtime 5.4.0
      @oclif/plugin-autocomplete 0.3.0
      @oclif/plugin-help 3.3.1
      @oclif/plugin-not-found 2.3.1
      @oclif/plugin-plugins 1.10.11
      @oclif/plugin-warn-if-update-available 1.7.3

Sample Code that illustrates the problem

Logs taken while reproducing problem

@shazron shazron transferred this issue from adobe/aio-cli Aug 11, 2022
@shazron shazron added the bug Something isn't working label Aug 11, 2022
@shazron shazron changed the title new bug report handling the new credential type apikey new integration type apikey gives invalid config error when running aio app init Aug 11, 2022
@aiojbot
Copy link
Collaborator

aiojbot commented Aug 11, 2022

JIRA issue created: https://jira.corp.adobe.com/browse/ACNA-1741

@shazron
Copy link
Member

shazron commented Sep 21, 2022

fixed in #568

@shazron shazron closed this as completed Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants