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

Check space security unhandled rejection #6706

Open
haiodo opened this issue Sep 24, 2024 — with Huly GitHub Staging · 2 comments
Open

Check space security unhandled rejection #6706

haiodo opened this issue Sep 24, 2024 — with Huly GitHub Staging · 2 comments
Assignees

Comments

Copy link
Member

haiodo commented Sep 24, 2024

This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
Error: ERROR: platform:status:Forbidden {}
    at _SpacePermissionsMiddleware.throwForbidden (/usr/src/app/bundle.js:323072:15)
    at _SpacePermissionsMiddleware.checkPermissions (/usr/src/app/bundle.js:323237:18)
    at _SpacePermissionsMiddleware.tx (/usr/src/app/bundle.js:323208:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async _SpaceSecurityMiddleware.tx (/usr/src/app/bundle.js:323641:16)
    at async _PipelineImpl.tx (/usr/src/app/bundle.js:73099:18)
    at async ClientSession2.tx (/usr/src/app/bundle.js:225911:24)
Unhandled Rejection at: Promise {
  <rejected> PlatformError: ERROR: platform:status:Forbidden {}
      at _SpacePermissionsMiddleware.throwForbidden (/usr/src/app/bundle.js:323072:15)
      at _SpacePermissionsMiddleware.checkPermissions (/usr/src/app/bundle.js:323237:18)
      at _SpacePermissionsMiddleware.tx (/usr/src/app/bundle.js:323208:16)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async _SpaceSecurityMiddleware.tx (/usr/src/app/bundle.js:323641:16)
      at async _PipelineImpl.tx (/usr/src/app/bundle.js:73099:18)
      at async ClientSession2.tx (/usr/src/app/bundle.js:225911:24) {
    status: Status {
      severity: 'ERROR',
      code: 'platform:status:Forbidden',
      params: {}
    }
  }
} reason: PlatformError: ERROR: platform:status:Forbidden {}
    at _SpacePermissionsMiddleware.throwForbidden (/usr/src/app/bundle.js:323072:15)
    at _SpacePermissionsMiddleware.checkPermissions (/usr/src/app/bundle.js:323237:18)
    at _SpacePermissionsMiddleware.tx (/usr/src/app/bundle.js:323208:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async _SpaceSecurityMiddleware.tx (/usr/src/app/bundle.js:323641:16)
    at async _PipelineImpl.tx (/usr/src/app/bundle.js:73099:18)
    at async ClientSession2.tx (/usr/src/app/bundle.js:225911:24) {
  status: Status {
    severity: 'ERROR',
    code: 'platform:status:Forbidden',
    params: {}
  }
}

Huly®: UBERF-8254

@haiodo haiodo self-assigned this Sep 24, 2024
Copy link
Collaborator

What’s the context of this exception? It originates from the permissions control on the server side and someone tried to perform a transaction that is forbidden based on his roles. If it’s not an automation/tool call then UI should have prevented this transaction from happening in the first place.

Copy link
Member Author

haiodo commented Sep 24, 2024

Question only for Unhandled Rejection

@haiodo haiodo assigned lexiv0re and unassigned haiodo Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants