You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An exception occurred in authz workflow which should have been set in <% outputs.return_response.data %>. authz exception:
{"code":403,"success":false,"data":"TypeError: Cannot read properties of undefined (reading 'includes')\n at GSFunction.<anonymous> (/home/dist/functions/crud/user/authz_check_user.js:58:35)\n at Generator.next (<anonymous>)"}
setAtPath exception:
err: {
"type": "TypeError",
"message": "Cannot create property 'message' on string 'TypeError: Cannot read properties of undefined (reading 'includes')\n at GSFunction.<anonymous> (/home/gurjot/data/cli-test/test/dist/functions/crud/user/authz_check_user.js:58:35)\n at Generator.next (<anonymous>)\n at asyncGeneratorStep (/home/gurjot/data/cli-test/test/dist/functions/crud/user/authz_check_user.js:17:28)\n at _next (/home/gurjot/data/cli-test/test/dist/functions/crud/user/authz_check_user.js:35:17)\n at /home/gurjot/data/cli-test/test/dist/functions/crud/user/authz_check_user.js:40:13\n at new Promise (<anonymous>)\n at GSFunction.<anonymous> (/home/gurjot/data/cli-test/test/dist/functions/crud/user/authz_check_user.js:32:16)\n at GSFunction._ref (/home/gurjot/data/cli-test/test/dist/functions/crud/user/authz_check_user.js:74:17)\n at GSFunction._default [as fn] (/home/gurjot/data/cli-test/test/dist/functions/crud/user/authz_check_user.js:45:17)\n at GSFunction.<anonymous> (/home/gurjot/data/cli-test/gs-node-service/dist/core/interfaces.js:291:38)\n at Generator.next (<anonymous>)\n at /home/gurjot/data/cli-test/gs-node-service/dist/core/interfaces.js:8:71\n at new Promise (<anonymous>)\n at __awaiter (/home/gurjot/data/cli-test/gs-node-service/dist/core/interfaces.js:4:12)\n at GSFunction._executefn (/home/gurjot/data/cli-test/gs-node-service/dist/core/interfaces.js:219:16)\n at GSFunction.<anonymous> (/home/gurjot/data/cli-test/gs-node-service/dist/core/interfaces.js:544:41)\n at Generator.next (<anonymous>)\n at fulfilled (/home/gurjot/data/cli-test/gs-node-service/dist/core/interfaces.js:5:58)'"
outputs.return_response
{"code":200,"success":true,"data":{"message":"Internal server error"}}
Expected Behavior
outputs.return_response
{"code":403,"success":false,"data":"TypeError: Cannot read properties of undefined (reading 'includes')\n at GSFunction.<anonymous> (/home/dist/functions/crud/user/authz_check_user.js:58:35)\n at Generator.next (<anonymous>)"}}
The text was updated successfully, but these errors were encountered:
In the authorization handling, within godspeed.ts, if workflow response's GSStatus.success === true, then exitWithStatus is deleted from the GSSTatus. So the issue is within the workflow, it should return success false with code 503. Else auth flow will set code 403 by default..
Version Information
@godspeedsystems/core: 2.4.7
Current Behavior
This is the yaml workflow:
This is the authz workflow:
An exception occurred in authz workflow which should have been set in
<% outputs.return_response.data %>
.authz exception:
setAtPath exception:
outputs.return_response
Expected Behavior
outputs.return_response
The text was updated successfully, but these errors were encountered: