Mincka / DMArchiver

A tool to archive the direct messages, images and videos from your private conversations on Twitter
GNU General Public License v3.0
223 stars 25 forks source link

KeyError: 'trusted' #35

Closed GTXSam closed 7 years ago

GTXSam commented 7 years ago

Conversation ID not specified. Retrieving all the threads. Traceback (most recent call last): File "dmarchiver\cmdline.py", line 107, in File "dmarchiver\cmdline.py", line 96, in main File "dmarchiver\core.py", line 302, in get_threads KeyError: 'trusted' Failed to execute script cmdline

Mincka commented 7 years ago

Seems related to #29. Can you try with the previous release (0.1.7)?

brandonnn commented 7 years ago

Just to weigh in, I'm getting this on Win/Mac, on both 0.1.7 and 0.1.8!

Mincka commented 7 years ago

Did the tool worked previously or it is the first time you use DMArchiver?

brandonnn commented 7 years ago

Wednesday was the first time I'd tried! I disabled 2FA for a bit first, tried with both username & email addy as the login, tried generating a temporary app password instead of my main Twitter password, all ended in KeyError on both versions!

Mincka commented 7 years ago

Ok. Since I am not able to reproduce the error condition. I would need to confirm if the issue is related to the script behavior or your account itself.

In your browser, when you click on "Messages" and the pop-up is displayed, a request is made to https://twitter.com/messages. The script is looking for the content of an array, which is [inner][trusted].

I need to check if this array is present in the response. Could you check in your browser for the response content for this request?

You will find below the screenshots of the developper console (F12) in Firefox and Chrome:

image

image

brandonnn commented 7 years ago

I get identical results in both Chrome and Firefox, frustratingly, yeah!

screen shot 2017-09-29 at 3 10 04 pm

brandonnn commented 7 years ago

(side note: I get that suspicious connection email every single time I run this, just in case that means it could potentially be blocking the view)

Mincka commented 7 years ago

Thanks. Since you tried on Win and macOS, this may be not related to the user-agent either (Firefox on Windows).

Do you use a compiled binaries in the releases? Would it be ok for you to test with a custom build (on Windows preferably), that will extract the raw content of the HTTP responses? I support this for the tweet content with -raw but not the retrieval of conversation list currently.

I also have the e-mail alert from Twitter each time I run the script.

brandonnn commented 7 years ago

Yeah, I just followed you on Twitter if you want to DM me a custom build!

Mincka commented 7 years ago

Could you both try with the latest release (0.1.9)?

If the issue is still there, I will need the output of the "conversation-list.txt" when script is run with the "-r" parameter. @brandonnn : you can give me content over DM on Twitter. Thanks!

Mincka commented 7 years ago

@Auroratic : Can you test with the latest release? It is now working for @brandonnn