j0k3r / graby

Graby helps you extract article content from web pages
MIT License
363 stars 73 forks source link

Invalid Cookie value #236

Closed Chouchen closed 4 years ago

Chouchen commented 4 years ago

Overall, Graby works well for me but I stumbled upon an error when trying to retrieve this url (yes, I know 🙄) :

(InvalidArgumentException(code: 0): The cookie value \"\"v1_W5t3W8Qs+ktgsdUWgaJeyQ==\"\" contains invalid characters. at /var/www/app/vendor/php-http/message/src/Cookie.php:465)

j0k3r commented 4 years ago

Looks like an issue on Twitter side, got the same issue The cookie value ""v1_SChw6VkjZGnbMqxwcS0jGg=="" contains invalid characters. 😒

set-cookie: personalization_id="v1_G8DwH2LyRjBDWM2uPWdKqA=="; Max-Age=63072000; Expires=Sun, 17 Jul 2022 12:51:08 GMT; Path=/; Domain=.twitter.com; Secure; SameSite=None

personalization_id 🙄

j0k3r commented 4 years ago

Found a workaround by giving a wrong personalization_id cookie and it's working!

j0k3r commented 4 years ago

I don't know if it's the best way to handle it..