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

🐛 Generating Ego API fails in prod #390

Open
hlminh2000 opened this issue Apr 12, 2021 · 0 comments
Open

🐛 Generating Ego API fails in prod #390

hlminh2000 opened this issue Apr 12, 2021 · 0 comments
Assignees
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@hlminh2000
Copy link
Contributor

hlminh2000 commented Apr 12, 2021

Describe the bug

Can't generate API Key key. This causes the UI to hang:
Screen Shot 2021-04-12 at 2 23 45 PM

Steps To Reproduce

run the following mutation at https://api.platform.icgc-argo.org/graphql, as a public user:

mutation GENERATE_EGO_API_TOKEN {
  generateAccessKey {
    key
    exp
    error
    __typename
  }
}

receives the following error:

{
  "errors": [
    {
      "message": "The 'Policy' entity with name '*' was not found",
      "locations": [],
      "path": [
        "generateAccessKey"
      ],
      "extensions": {
        "timestamp": "2021-04-12T18:22:30.322+0000",
        "status": 404,
        "error": "Not Found",
        "message": "The 'Policy' entity with name '*' was not found",
        "path": "/o/api_key",
        "code": "BAD_USER_INPUT",
        "exception": {
          "timestamp": "2021-04-12T18:22:30.322+0000",
          "status": 404,
          "error": "Not Found",
          "path": "/o/api_key",
          "stacktrace": [
            "UserInputError: The 'Policy' entity with name '*' was not found",
            "    at /appDir/dist/utils/restUtils.js:63:19",
            "    at Generator.next (<anonymous>)",
            "    at fulfilled (/appDir/dist/utils/restUtils.js:23:58)",
            "    at runMicrotasks (<anonymous>)",
            "    at processTicksAndRejections (internal/process/task_queues.js:93:5)"
          ]
        }
      }
    }
  ],
  "data": null
}

Expected behaviour

Should generate a new API key

@hlminh2000 hlminh2000 added the bug Something isn't working label Apr 12, 2021
@rosibaj rosibaj added the duplicate This issue or pull request already exists label May 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants