OAuth2 error handling

In my project I’m using OAuth2 authentication.
Whenever user has access - all works as intended.
But when there is OAuth2 erorrs - I cannot handle them from Server Connect Flow.

"status": "500",
"message": "access_denied",
"stack": "Error: access_denied\n    at OAuth2.authorize (/opt/node_app/lib/oauth/index.js:56:23)\n    at App.authorize (/opt/node_app/lib/modules/oauth.js:15:22)\n    at async App._exec (/opt/node_app/lib/core/app.js:611:30)\n    at async App._exec (/opt/node_app/lib/core/app.js:578:17)\n    at async App.exec (/opt/node_app/lib/core/app.js:547:9)\n    at async App.define (/opt/node_app/lib/core/app.js:529:9)"
  • There is no Pass Errors options, so that I can handle errors

  • Because it’s a “General Error” - no other work arounds is possible

Wappler Team - please add Error Handling options for OAuth2 action.

Thank you

Have you tried the Try/Catch step?


Was able to catch and do redirect to information page.
Really forgot about that.