Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[twitter][error] HttpError: InvalidHeader: Value for header {x-guest-token: …} must be of type str or bytes, not <class 'int'> #1665

Closed
peammm opened this issue Jul 1, 2021 · 9 comments
Labels

Comments

@peammm
Copy link

peammm commented Jul 1, 2021

python3
version: 1.18.0
platform: Ubuntu 20.04 LTS

I got this error sometime.

[twitter][error] HttpError: InvalidHeader: Value for header {x-guest-token: 1111111111111111111} must be of type str or bytes, not <class 'int'>

@CaptainJawZ
Copy link

Been getting the same one for a few hours as well now.

@mikf
Copy link
Owner

mikf commented Jul 1, 2021

I'm not getting this error myself, but I'm pretty sure commit 5323c1c fixes it.
Could you get the latest -dev version from the usual places and let me know if it helped?

@mikf mikf changed the title Found Error Sometime With Twitter Download [twitter][error] HttpError: InvalidHeader: Value for header {x-guest-token: …} must be of type str or bytes, not <class 'int'> Jul 1, 2021
@rEnr3n
Copy link

rEnr3n commented Jul 1, 2021

Looks like it was temporary. I'm not getting the error anymore on 1.18.0. Master branch has no issues too.

@nicamoq
Copy link

nicamoq commented Jul 1, 2021

I have this issue on 1.18.0 when downloading through twitter.

I'm not getting this error myself, but I'm pretty sure commit 5323c1c fixes it.
Could you get the latest -dev version from the usual places and let me know if it helped?

Downloading through twitter again with this build has fixed the issue.

@peammm
Copy link
Author

peammm commented Jul 1, 2021

I'm not getting this error myself, but I'm pretty sure commit 5323c1c fixes it.
Could you get the latest -dev version from the usual places and let me know if it helped?

this build has fixed my issue.

Thanks.

@Aerocatia
Copy link

I'm getting this issue now with git master.

@huskyhi
Copy link

huskyhi commented Jul 1, 2021

I had the same issue, then I added my username and password to the configuration files and then Magically is started working again?
I'm wondering if it related to the problem I started having where to view user's that have been marked as "possibly sensitive material" I've had to log in or wait until twitter popped up a page asking me if I like to view this "sensitive" material. Until it did I keep being presented with a "reload" button repeatedly with a message telling me to try reloading to resolve the problem, the rest of the page loads but the tweet's panel just keeps having the reload button message in it, and right most column just keeps giving the unhelpful help tip of just reloading the page.

@Aerocatia
Copy link

~2 hours later it now works using the exact same version of gallery-dl

@mikf
Copy link
Owner

mikf commented Jul 1, 2021

@Vaporeon gallery-dl caches guest tokens for 1h, so you must have cached an invalid one first and it still got used after you updated to git master. gallery-dl --clear-cache twitter would've removed the wrong cache entry.
@huskyhi this error only occurs when using a guest token, which doesn't happen when logged in.

@mikf mikf added the fixed label Jul 1, 2021
@mikf mikf closed this as completed Jul 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants