Before the bearer token is cached (for example you make 10 calls at the same time), for some reason you sometimes get random 404s
from the POST /oauth2/token call. I noticed its actually making a POST to
//oauth2/token, removing the extra forward slash seems to
fix the issue.
Reproduce by running mocha tests/rest_app_only_auth.js -g 'multiple times’ (adding back the extra forward slash in lib/helpers.js
Before the bearer token is cached (for example you make 10 calls at the same time), for some reason you sometimes get random 404s from the
POST /oauth2/token
call. I noticed its actually making a POST to//oauth2/token
, removing the extra forward slash seems to fix the issue.Reproduce by running
mocha tests/rest_app_only_auth.js -g 'multiple times’
(adding back the extra forward slash in lib/helpers.jsThanks to https://github.com/rssilva for the test case which I stole to reproduce the issue.