Project

General

Profile

Actions

Bug #5756

closed

crashs when Twitter.update_with_media with rails

Added by paranoiase (SungHee Kang) over 10 years ago. Updated over 9 years ago.

Status:
Rejected
Priority:
Normal
Target version:
-
ruby -v:
ruby 1.9.3dev (2011-09-23 revision 33323) [x86_64-darwin10.6.0]
Backport:
[ruby-core:41626]

Description

I'm using the Ruby 1.9.3dev and Ruby on Rails 3.1.3
When I use twitter gem and call 'Twitter.update_with_media', the interpreter crashs.

~~ ruby
class WelcomeController < ApplicationController
def upload
Twitter.update_with_media("I'm tweeting with gem!", File.new('screenshot.png'))
end
~~

it doesn't crash when I use 1.9.2. or 1.9.3dev without rails.
You can reproduse this situation to

  1. create new rails 3.1.3 projects
  2. add gem 'twitter' in your Gemfile
  3. configure twitter consumer key, secret and oauth token, secret in your config/initializers
  4. make the action WelcomeController#upload and route it to POST /upload
  5. run the server and access POST /upload

Files

crashog.txt (61.3 KB) crashog.txt The crash log paranoiase (SungHee Kang), 12/13/2011 03:55 PM
crash.log (129 KB) crash.log paranoiase (SungHee Kang), 12/14/2011 04:59 PM
crash_macos.log (15.1 KB) crash_macos.log paranoiase (SungHee Kang), 12/14/2011 08:56 PM
Actions

Also available in: Atom PDF