Instagram-private-api: Thread.configureText throwing parse error

Created on 18 Jan 2017  路  5Comments  路  Source: dilame/instagram-private-api

Hi, i am having issues with Thread.configureText,

Client.Session.create(device, storage, 'user', 'pass')
    .then(function(session) {
        console.log('session was created', session); //success
        Client.Thread.configureText(session, 'IG-USER-ID', "hello world!").then((t) => console.log(t))
     })

ERROR: Unhandled rejection ParseError: Not possible to parse API response

note: ive tried multiple different IP's and accounts. Any ideas? thanks

All 5 comments

'IG-USER-ID'

Hi. Second parameter of configureText() must be array. Try this:
Client.Thread.configureText(session, ['IG-USER-ID'], "hello world!").then((t) => console.log(t))

@xatr1x thanks! @jeffDankly jep thread can have multiple users, you need array of ints

hey @xatr1x @huttarichard , thanks but it still isn't working. Im still getting the same error Unhandled rejection ParseError: Not possible to parse API response

   Client.Session.create(device, storage, 'my-username', 'my-password')
    .then(function(session) {
        console.log('session was created', session);
        var user = ["user-id-number"]; //tried multiple too - doesnt work either
        Client.Thread.configureText(session, user, "text you would love to send").then(console.log("DONE")); // this prints, then the error - but no message
   })

@xatr1x @huttarichard theres no way users array is whats causing this parse error.

plus it converts users to an array if its a string..
if(!_.isArray(users)) users = [users];
(https://github.com/huttarichard/instagram-private-api/blob/master/client/v1/thread.js#L233)

@jeffDankly those are not strings but ints

Was this page helpful?
0 / 5 - 0 ratings