nazarovsa / node-qiwi-api

Node API to work with QIWI Wallet
MIT License
13 stars 12 forks source link

нет обработки ошибок node js падает с TypeError #9

Closed uranik777 closed 4 years ago

uranik777 commented 4 years ago

Пришлось переписывать getOperationHistory в части отлова err от getAccountInfo.

TypeError: Cannot read property 'authInfo' of undefined at /home/ubuntu/node/node_modules/node-qiwi-api/node-qiwi-api.js:75:73 at Request._callback (/home/ubuntu/node/node_modules/node-qiwi-api/node-qiwi-api.js:47:13) at Request.self.callback (/home/ubuntu/node/node_modules/node-qiwi-api/node_modules/request/request.js:188:22) at Request.emit (events.js:210:5) at Request. (/home/ubuntu/node/node_modules/node-qiwi-api/node_modules/request/request.js:1171:10) at Request.emit (events.js:210:5) at IncomingMessage. (/home/ubuntu/node/node_modules/node-qiwi-api/node_modules/request/request.js:1091:12) at Object.onceWrapper (events.js:299:28) at IncomingMessage.emit (events.js:215:7) at endReadableNT (_stream_readable.js:1184:12) at processTicksAndRejections (internal/process/task_queues.js:80:21)

nazarovsa commented 4 years ago

Пожалуйста, опишите подробнее кейс.

nazarovsa commented 4 years ago

fixed in 1.1.2