I’m using the Exact Online API with OAuth2 (support).
The OAuth2 flow is working, until a token needs to be refreshed. As you can see in this image I do multiple requests to the Exact API, authorised with OAuth2:
It looks like it is trying to refresh the token for a second time, so it seems like the new access token received in the first refresh request is not saved properly yet before the second request starts.
After I restart the workflow it successfully runs the whole workflow.
This behaviour makes it impossible to run the workflow as a cron job.
Ah OK, then it sadly makes sense. That is a known issue. A fix got already implemented here:
It does however require a change in literally every node. This PR does that but there are sadly also a lot of other nodes of other people out there. So before we make this breaking change did we want to see if we can bundle some breaking changes together to not having to break things multiple times. For that reason do I have currently sadly no ETA on when it will be merged.
Do you run n8n via Docker? Because then you could easily build an own image with that fix included.
Glad to hear that it works. As it is a breaking change (on the code side) are we currently waiting on getting also another feature ready with another breaking change to not cause to many problems for users with custom nodes. Once that is ready will we release them together.
We are unfortunately running into the same issue, also with the Exact Online API.
Is there already a time window for the release of this fix?
It would be especially important for use in the authentication part of the ‘HTTP Request’ node.
Hi @freddie, very curious if you have been able to solve your issue and if you have any advice on connecting to exact online. As far as I can tell on my end the OAuth2 credentials are picked up by n8n correctly but running any request using the credentials will simply get hang on “executing node”.
Then if it does not refresh it, Exact Online might be expecting something non-standard when refreshing the token. It isn’t easy to have an OAuth2 flow so generic that it covers all possible cases. Even though it’s a standard, some companies choose to add a minor tweak to it. This issue might solve by creating an Exact Online node because, in the node, we can use variables that change the refresh token behavior, unlike with the HTTP node. The other option would be to make the OAuth2 flow credentials more extensible to cover non-standard user cases. The latter will take a considerable amount of work.