Closed YanDevDe closed 7 years ago
Did you updated to the master branch? It looks like #173 for me
I installed from npm (node.js). So this git is up-to-date? Then I might try in github later.
@Chinafreak Not sure about npm is up-to-date :)
@Chinafreak no its not, travis has some problems I did not publish yet
Hey guys, I got a problem. I'm trying to upload video in instagram (as .mp4 format) but somehow when I trs y to upload video, I'm getting this error:
Unhandled rejection TypeError: expecting an array or an iterable object but got [object Null] at apiRejection (/home/pi/SocialMediaBot/bots/node_modules/bluebird/js/release/promise.js:10:27) at PromiseArray.init [as _init] (/home/pi/SocialMediaBot/bots/node_modules/bluebird/js/release/promise_array.js:63:19) at Promise._settlePromise (/home/pi/SocialMediaBot/bots/node_modules/bluebird/js/release/promise.js:566:21) at Promise._settlePromise0 (/home/pi/SocialMediaBot/bots/node_modules/bluebird/js/release/promise.js:614:10) at Promise._settlePromises (/home/pi/SocialMediaBot/bots/node_modules/bluebird/js/release/promise.js:693:18) at Promise._fulfill (/home/pi/SocialMediaBot/bots/node_modules/bluebird/js/release/promise.js:638:18) at Promise._resolveCallback (/home/pi/SocialMediaBot/bots/node_modules/bluebird/js/release/promise.js:432:57) at Promise._settlePromiseFromHandler (/home/pi/SocialMediaBot/bots/node_modules/bluebird/js/release/promise.js:524:17) at Promise._settlePromise (/home/pi/SocialMediaBot/bots/node_modules/bluebird/js/release/promise.js:569:18) at Promise._settlePromise0 (/home/pi/SocialMediaBot/bots/node_modules/bluebird/js/release/promise.js:614:10) at Promise._settlePromises (/home/pi/SocialMediaBot/bots/node_modules/bluebird/js/release/promise.js:693:18) at Promise._fulfill (/home/pi/SocialMediaBot/bots/node_modules/bluebird/js/release/promise.js:638:18) at Promise._settlePromise (/home/pi/SocialMediaBot/bots/node_modules/bluebird/js/release/promise.js:582:21) at Promise._settlePromise0 (/home/pi/SocialMediaBot/bots/node_modules/bluebird/js/release/promise.js:614:10) at Promise._settlePromises (/home/pi/SocialMediaBot/bots/node_modules/bluebird/js/release/promise.js:693:18) at Promise._fulfill (/home/pi/SocialMediaBot/bots/node_modules/bluebird/js/release/promise.js:638:18) at Promise._resolveCallback (/home/pi/SocialMediaBot/bots/node_modules/bluebird/js/release/promise.js:432:57) at Promise._settlePromiseFromHandler (/home/pi/SocialMediaBot/bots/node_modules/bluebird/js/release/promise.js:524:17) at Promise._settlePromise (/home/pi/SocialMediaBot/bots/node_modules/bluebird/js/release/promise.js:569:18) at Promise._settlePromise0 (/home/pi/SocialMediaBot/bots/node_modules/bluebird/js/release/promise.js:614:10) at Promise._settlePromises (/home/pi/SocialMediaBot/bots/node_modules/bluebird/js/release/promise.js:693:18) at Promise._fulfill (/home/pi/SocialMediaBot/bots/node_modules/bluebird/js/release/promise.js:638:18)
My code:
instagram.Session.create(device, storage, 'XXX', 'XXX') .then(function(session) { instagram.Upload.video(session, data.output, data.input) .then(function(upload) { console.log('Uploaded video'); console.log(upload); console.log('Adding Caption'); return Media.configureVideo(session, upload.uploadId, "test", upload.durationms); },function(err){ console.log('Upload failed'); console.log(err); callback('Upload failed'); posting = false; }) .then(function(medium) { console.log('Post Complete'); console.log(medium.params); posting = false; callback(); },function(err){ console.log('Update caption failed'); console.log(err); callback('Update caption failed') posting = false; }); });
Did I something wrong?
JSON error are saying that its not possible to parse API response?