Custom Auth Regression Bug

  • Goal: Have my Xero custom Oauth flow working as it did previously (see wPSJlalktFJvb8CxoHTrprZo6AHkI3OcCzsFtHW5byXibsKi for details)

  • Steps: On 10/10 at 07:07 BST my apps & workflows using this resource were working fine. By 07:06 BST the following morning it had stopped working

  • Details: it would appear that the header that previously sent the tenant id in the API request is now sending the string "{{ http3.body[1].tenantId }}"

This was previously being set in a Define A Variable section, however I suspect that is not the problem as other Define A Variable sections appear to be operating as expected.

I suspect the API Request step may be falling over OR no longer exporting the variables as per its definition:

Can anyone please validate if this is me or ReTool (or Xero)?

So it turns out that Xero have removed the Dummy /test instance and so now there was only an array of 1 being returned....changing the ref to body[0] did the trick.

This was however incredibly difficult to debug, not helped by the fact that:

  1. Can't use actual JS in an auth flow
  2. Can't output to the console in an auth flow
  3. Can't make changes without re-supply the secret
  4. Can't access the secret in the re-auth flow
1 Like