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

Store same app-service secret fails on second request #1052

Closed
cherrycl opened this issue Mar 9, 2022 · 1 comment · Fixed by #1054
Closed

Store same app-service secret fails on second request #1052

cherrycl opened this issue Mar 9, 2022 · 1 comment · Fixed by #1054
Assignees
Labels
bug Something isn't working
Milestone

Comments

@cherrycl
Copy link
Contributor

cherrycl commented Mar 9, 2022

[Reproduce Steps]

  1. Deploy edgex with the docker-compose file.
  2. Send the following API twice
POST  http://localhost:59704/api/v2/secret
Request body:
{
   "apiVersion":"v2",
   "path":"MyPath",
   "secretData":[
      {
         "key":"MySecretKey",
         "value":"MySecretValue"
      }
   ]
}

[Actual result]
API returns status code 201 at the first request, but fail with 503 on second request.

@lenny-goodell lenny-goodell added the bug Something isn't working label Mar 9, 2022
@lenny-goodell
Copy link
Member

@FelixTing , this is also caused by your #1046.
In this case nothing is waiting on the channel for the secrets to be pushed. So the second attempt get blocked on write to the channel.

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

Successfully merging a pull request may close this issue.

3 participants