blockchain / service-my-wallet-v3

Blockchain Wallet API Service
https://blockchain.info/api/blockchain_wallet_api
GNU Affero General Public License v3.0
904 stars 517 forks source link

Cannot read property 'accounts' of undefined #521

Open qper228 opened 3 years ago

qper228 commented 3 years ago

On trying to make a payment with blockchain wallet service getting this error:

1626937800132 - error: undefined TypeError: Cannot read property 'accounts' of undefined at Payment.from (/usr/local/lib/node_modules/blockchain-wallet-service/node_modules/blockchain-wallet-client/lib/payment.js:261:72) at Payment.from (/usr/local/lib/node_modules/blockchain-wallet-service/node_modules/blockchain-wallet-client/lib/payment.js:73:49) at /usr/local/lib/node_modules/blockchain-wallet-service/src/api.js:86:10 at _fulfilled (/usr/local/lib/node_modules/blockchain-wallet-service/node_modules/q/q.js:834:54) at self.promiseDispatch.done (/usr/local/lib/node_modules/blockchain-wallet-service/node_modules/q/q.js:863:30) at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/blockchain-wallet-service/node_modules/q/q.js:796:13) at /usr/local/lib/node_modules/blockchain-wallet-service/node_modules/q/q.js:604:44 at runSingle (/usr/local/lib/node_modules/blockchain-wallet-service/node_modules/q/q.js:137:13) at flush (/usr/local/lib/node_modules/blockchain-wallet-service/node_modules/q/q.js:125:13) at _combinedTickCallback (internal/process/next_tick.js:131:7) at process._tickCallback (internal/process/next_tick.js:180:9)

My request is: params = { 'to': to, 'amount': int(amount * 100000000), 'password': self.decode_password(), 'api_code': APP_KEYS['blockchain'], 'from': '0' } requests.get(f'http://localhost:3000/merchant/{self.guid}/payment', params=params)

please advise if somebody faced the issue and if yes how to solve it before everything was ok thanks on advance