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

Error message whe uploading a document #1498

Closed
LukasKM opened this issue Oct 24, 2023 · 1 comment · Fixed by #1502
Closed

Error message whe uploading a document #1498

LukasKM opened this issue Oct 24, 2023 · 1 comment · Fixed by #1502
Assignees
Labels
api Indicates api related issue or feature blockchain Indicates blockchain related issue or feature bug Something isn't working frontend Indicates frontend related issue or feature storage-service Indicates storage-service related issue or feature

Comments

@LukasKM
Copy link

LukasKM commented Oct 24, 2023

  • [ x] I have searched the issues of this repository and believe that this is not a duplicate.

Description 😯

When trying to upload a document, error message pops up saying: workflowitem.update failed: failed to get organizations: failed to get user: not found user xxxxxxxx.

How to reproduce 🕹

Assign a group to the workflow item.
upload a document to the WF item.

Your Environment 🌎

Tech Version
Frontend v2.2.1
API v2.2.1
Blockchain v1.?.?
Export-Service v1.?.?
Email-Service v1.?.?
Storage-Service v2.2.1
@LukasKM LukasKM added the bug Something isn't working label Oct 24, 2023
@issuelabeler issuelabeler bot added api Indicates api related issue or feature blockchain Indicates blockchain related issue or feature frontend Indicates frontend related issue or feature storage-service Indicates storage-service related issue or feature labels Oct 24, 2023
@SamuelPull
Copy link
Collaborator

SamuelPull commented Oct 27, 2023

Not only 2.2.1, but also current main is affected.

NOTE: groups with permissions is "reviewers" int this case:

trubudget-operation-alpha-api-1 | {"level":50,"time":1698410329337,"hostname":"bc63d7d71a73","name":"Trubudget-Api","reqId":"req-10a","err":{"type":"VError","message":"workflowitem.update failed: failed to get organizations: failed to get user: Not found: user reviewers","stack":"VError: workflowitem.update failed: failed to get organizations: failed to get user: Not found: user reviewers\n at /home/node/dist/workflowitem_update.js:148:27\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","jse_shortmsg":"workflowitem.update failed","jse_cause":{"type":"VError","message":"failed to get organizations: failed to get user: Not found: user reviewers","stack":"VError: failed to get organizations: failed to get user: Not found: user reviewers\n at Object.updateWorkflowitem (/home/node/dist/service/workflowitem_update.js:99:28)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","jse_shortmsg":"failed to get organizations","jse_cause":{"type":"VError","message":"failed to get user: Not found: user reviewers","stack":"VError: failed to get user: Not found: user reviewers\n at getOrganizations (/home/node/dist/service/workflowitem_update.js:122:24)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Object.updateWorkflowitem (/home/node/dist/service/workflowitem_update.js:97:39)","jse_shortmsg":"failed to get user","jse_cause":{"type":"NotFound","message":"Not found: user reviewers","stack":"NotFound: Not found: user reviewers\n at Object.getUser (/home/node/dist/service/domain/organization/user_query.js:28:16)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async getOrganizations (/home/node/dist/service/workflowitem_update.js:120:26)\n at async Object.updateWorkflowitem (/home/node/dist/service/workflowitem_update.js:97:39)","ctx":{"requestId":"req-10a","source":"http"},"entityType":"user","entityId":"reviewers","name":"NotFound"},"jse_info":{},"name":"VError"},"jse_info":{},"name":"VError"},"jse_info":{},"name":"VError"},"message":"Error while updating workflowitem"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Indicates api related issue or feature blockchain Indicates blockchain related issue or feature bug Something isn't working frontend Indicates frontend related issue or feature storage-service Indicates storage-service related issue or feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants