Javascript execution error in oauth2 refresh token scenario

In PostFlow, a javascript for logging message to Sumo Logic works in all but one scenario that is oauth2/token.

Error: Execution of ProxyPostFlowAX failed with error: Javascript runtime error: "null".

Even if I comment all the content, I get this error. Same JS for logging works fine in other proxy apps.

Has anyone in the community faced this issue or know of any known limitation?

Grant Type that fails is refresh_token. Works fine when grant type is authorization_code.

0 7 553
7 REPLIES 7

I cannot imagine what the problem might be. I suggest you open a support ticket so that the support team can help you diagnose the problem.

I saw you closed the question and mark it as resolved even though it wasn't

I am also facing same issue.

I am having same issue. Did you ever found the resolution ?

Getting same error and now working with apigee support for the fix.The workaround for this issue is continueOnError="true" in the javascript policy till then

Is there a fix for this ?

I face the same issue while handling javascript within SharedFlow in PostProxy flow hook for oauth proxy.

Can you please ask a new question?  Rather than just commenting on a 2-year old thread?

ask-a-question-2.png