While using this action in a workflow with a Client ID and Secret, the getBearer function failed to output the info logs indicating why the promise was rejected. Also, it outputs a string and not an error object, so that the catch in the calling function getParams returns an undefined error.
This problem particularly shows up with a 404 error.
While using this action in a workflow with a Client ID and Secret, the
getBearer
function failed to output the info logs indicating why the promise was rejected. Also, it outputs a string and not an error object, so that the catch in the calling functiongetParams
returns an undefined error.This problem particularly shows up with a 404 error.