Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

KeyError: 'trusted' #35

Closed
GTXSam opened this issue Sep 27, 2017 · 11 comments
Closed

KeyError: 'trusted' #35

GTXSam opened this issue Sep 27, 2017 · 11 comments

Comments

@GTXSam
Copy link

GTXSam commented Sep 27, 2017

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
Copy link
Owner

Mincka commented Sep 27, 2017

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

@brandonnn
Copy link

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

@Mincka
Copy link
Owner

Mincka commented Sep 29, 2017

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

@brandonnn
Copy link

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
Copy link
Owner

Mincka commented Sep 29, 2017

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
Copy link

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

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

@brandonnn
Copy link

(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
Copy link
Owner

Mincka commented Sep 29, 2017

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
Copy link

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

@Mincka
Copy link
Owner

Mincka commented Sep 30, 2017

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
Copy link
Owner

Mincka commented Oct 3, 2017

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

@Mincka Mincka closed this as completed Oct 7, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants