platform icon indicating copy to clipboard operation
platform copied to clipboard

Check space security unhandled rejection

Open haiodo opened this issue 1 year ago • 2 comments

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 avatar Sep 24 '24 11:09 haiodo

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.

lexiv0re avatar Sep 24 '24 12:09 lexiv0re

Question only for Unhandled Rejection

haiodo avatar Sep 24 '24 13:09 haiodo