Reaction Commerce Forums

Reaction Admin Oauth issue

Waiting for MongoDB…
MongoDB ready.
Waiting for MongoDB replica set…
MongoDB replica set ready.
16:32:42.278Z INFO Reaction: Waiting for Hydra service to be available…
16:32:42.292Z INFO Reaction: Hydra service is available.
16:32:42.306Z ERROR Reaction:
{“error”:“The request could not be authorized”,“error_description”:“The requested OAuth 2.0 client does not exist or you did not provide the necessary credentials”,“status_code”:401,“request_id”:""}

/usr/local/src/app/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:218
throw error;
^

Error: Could not get Hydra client [401]
at imports/plugins/core/core/server/startup/oauth.js:60:11
at /usr/local/src/app/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40
=> awaited here:
at Function.Promise.await (/usr/local/src/app/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:56:12)
at startup (imports/plugins/core/core/server/startup/index.js:39:3)
at Function.time (/usr/local/src/app/programs/server/profile.js:273:30)
at /usr/local/src/app/programs/server/boot.js:412:15
at /usr/local/src/app/programs/server/boot.js:462:7
at Function.run (/usr/local/src/app/programs/server/profile.js:280:14)
at /usr/local/src/app/programs/server/boot.js:460:13

Found the cause of this issue, was using the latest version of hydra and in that version if a client doesn’t exist they now return a 401 vs 404.

So I downgraded the hydra version that I had deployed and it resolved the issue.