egg-mode
egg-mode copied to clipboard
403 Forbidden in examples/bearer.rs
cargo run --example bearer
Pulling up the bearer token...
Error: TwitterError({"ml": "A", "date": "Sat, 13 Aug 2022 19:27:23 GMT", "pragma": "no-cache", "server": "tsa_o", "status": "403 Forbidden", "expires": "Tue, 31 Mar 1981 05:00:00 GMT", "set-cookie": "guest_id_marketing=v1%3A166041884364042923; Max-Age=63072000; Expires=Mon, 12 Aug 2024 19:27:23 GMT; Path=/; Domain=.twitter.com; Secure; SameSite=None", "set-cookie": "guest_id_ads=v1%3A166041884364042923; Max-Age=63072000; Expires=Mon, 12 Aug 2024 19:27:23 GMT; Path=/; Domain=.twitter.com; Secure; SameSite=None", "set-cookie": "personalization_id=\"v1_gFxf48hWkt6HyrswNCC5eQ==\"; Max-Age=63072000; Expires=Mon, 12 Aug 2024 19:27:23 GMT; Path=/; Domain=.twitter.com; Secure; SameSite=None", "set-cookie": "guest_id=v1%3A166041884364042923; Max-Age=63072000; Expires=Mon, 12 Aug 2024 19:27:23 GMT; Path=/; Domain=.twitter.com; Secure; SameSite=None", "content-type": "application/json;charset=utf-8", "cache-control": "no-cache, no-store, must-revalidate, pre-check=0, post-check=0", "last-modified": "Sat, 13 Aug 2022 19:27:23 GMT", "x-transaction": "607cd15d7d84cb51", "content-length": "105", "x-frame-options": "DENY", "x-ua-compatible": "IE=edge,chrome=1", "x-xss-protection": "0", "content-disposition": "attachment; filename=json.json", "x-content-type-options": "nosniff", "x-twitter-response-tags": "BouncerCompliant", "strict-transport-security": "max-age=631138519", "x-response-time": "105", "x-connection-hash": "b86d8bebaa669da0b2a31400e2596830d112645b5688dbd0601c2bceae32a0b6"}, TwitterErrors { errors: [TwitterErrorCode { message: "Unable to verify your credentials", code: 99 }] })
It just worked but instantly stopped after I edited examples/bearer.rs and not started to work again when I returned examples/bearer.rs into the previous state. Twitter bug?
Same issue here.
Go to the following URL, sign in, and give me the PIN that comes back:
https://api.twitter.com/oauth/authorize?oauth_token=XXX
Welcome, XXX, let's get this show on the road!
Streaming tweets containing popular programming languages (and also Rust)
Ctrl-C to quit
Stream error: Error status received: 403 Forbidden
Disconnected
Related?: https://github.com/tesaguri/twitter-stream-rs/issues/28