Hello, I’ve tried exactly with the same code and my activated sandbox account:
https://docs.dwolla.com/#javascript
And I am getting in response:
‘https://sandbox.dwolla.com/oauth/v2/token’,
status: 403,
statusText: ‘Forbidden’,
I’ve figured out it only when debugged dwolla-v2 library sources. Otherwise it just displays in the application:
error: create customer error SyntaxError: Unexpected token < in JSON at position 0
at Object.parse (native)
at C:\dev\codesource\chat1\himarley-main\master\marley-ach\node_modules\node-fetch\lib\body.js:48:15
My application id: T7bhqI3DzFiQIhlqQPrrKA5s1Z2b4cF73N83naTkglIEIFJAef
This code fires the same error:
client.auth.client()
.then(function(appToken) {
return appToken.get(‘webhook-subscriptions’);
})
.then(function(res) {
console.log(JSON.stringify(res.body));
})
So it’s the same error for the appToken.get(’/’) and appToken.get(‘webhook-subscriptions’)
Thanks in advance!