You will either need to log in with the current user role in your app before running the javascript, or adjust the Allowed Roles on the microflow to match your current user.
The Allowed Roles on microflows are there to restrict which roles can trigger the microflows from the client specifically. If those don't match up, you get this error.
have you already tried this: go to checks an double click on the error