Internal server error - Unexpected end of JSON - with WP Oauth

Having problems with authentication using WP oAuth.

Standard setup:
Token path: /oauth/token/
Token sent via: Payload
Identity sent via: Same as
Identity path: /oauth/me/
Authorize path: /oauth/authorize/
Scope: profile email openid
Access token: access_token
Login style: pop up
Username field: user_login

Error logs show:
(oauth_server.js:392) Error in OAuth Server: Unexpected end of JSON input

I20200603-05:06:16.159(0) Exception while invoking method ‘login’ SyntaxError: Unexpected end of JSON input at JSON.parse () at CustomOAuth.getAccessToken (app/custom-oauth/server/custom_oauth_server.js:142:16) at Object.handleOauthRequest (app/custom-oauth/server/custom_oauth_server.js:191:26) at OAuth._requestHandlers. (packages/oauth2/oauth2_server.js:10:33) at middleware (packages/oauth/oauth_server.js:161:5) at /snap/rocketchat-server/1433/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40

Server Setup Information

  • Version of Rocket.Chat Server:
  • Operating System: Linux
  • Deployment Method: Snap
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • NodeJS Version: v12.16.1
  • MongoDB Version: 3.6.14
  • Proxy:
  • Firewalls involved:

Any additional Information

Thanks in advance.