Twitter app unable to update status

daveDev edited this page Sep 13, 2010 · 2 revisions
Clone this wiki locally

whenever i try to update status on the twiiter-app i get the


then it logs me out

my mongrel output:
Processing StatusesController#create (for at 2009-10-17 10:02:37) [POST]
Parameters: {"commit"=>"Update", “return_to”=>"/statuses/mentions", “action”=>"create", “authenticity_token”=>"bZWSO52VOvfUzUiHP8ZRsYn0+/xfaoAV/5f5oHAE3R8=", “text”=>"some text here", “controller”=>"statuses", “in_reply_to_status_id”=>""}
[4;36;1mUser Columns (1.1ms)[0m [0;1mSHOW FIELDS FROM `users`[0m
[4;35;1mUser Load (0.1ms)[0m [0mSELECT * FROM `users` WHERE (`users`.`id` = 1) LIMIT 1[0m
Redirected to http://localhost:3000/session/new

i also notice that when a user signs in

Processing SessionsController#finalize (for at 2009-10-17 10:06:59) [GET]
Parameters: {"action"=>"finalize", “controller”=>"sessions", “oauth_token”=>"ZtY1GQbtSFA1rN7D2srCuIorJ0wU6OlWe2YuX6qYA", “oauth_verifier”=>"yeiZDQsVYS5DMeNrR2sd6Umz6jV9xesp6SvBhJuLwA"}
[4;36;1mUser Columns (0.9ms)[0m [0;1mSHOW FIELDS FROM `users`[0m
[4;35;1mUser Load (0.1ms)[0m [0mSELECT * FROM `users` WHERE (`users`.`screen_name` = ‘davedeveloper’) LIMIT 1[0m
[4;36;1mSQL (0.1ms)[0m [0;1mBEGIN[0m
[4;35;1mSQL (0.1ms)[0m [0mCOMMIT[0m
Redirected to http://localhost:3000/
Completed in 544ms (DB: 2) | 302 Found [http://localhost/session/finalize?oauth_token=ZtY1GQbtSFA1rN7D2srCuIorJ0wU6OlWe2YuX6qYA&oauth_verifier=yeiZDQsVYS5DMeNrR2sd6Umz6jV9xesp6SvBhJuLwA]

when a user signs in it gets a oauth_token and a oauth_verifier but when the applicaion updates it uses authenticity_token which doesn’t seem to match for twitter.

how can i solve this issue