Project

General

Profile

致命的 #238

不正なフォーマットのデータをTwitter APIが返すとクラッシュすることがあるらしい

Added by toshi_a 初音 over 9 years ago. Updated over 9 years ago.

Status:
終了
Priority:
通常
Target version:
-
Start date:
2011-07-03
Due date:
% Done:

100%

プラグイン名:

Description

r418 で、起動時に以下のようなエラーを吐いてクラッシュした。想定外のデータ構造がTwitter APIから返されたっぽい。
notice: {MIKUTTER_DIR}/core/twitter_api.rb:233:in `query_with_auth': get /toshi_a/lists.json => #<Net::HTTPOK:0x00000004640fd8> (1.377927361s)
/home/toshi/Documents/hobby/scripts/mikutter/trunk/core/utils.rb:277:in `type_strict': ArgumentError (ArgumentError)
from /home/toshi/Documents/hobby/scripts/mikutter/trunk/core/message.rb:169:in `receive_to?'
from /home/toshi/Documents/hobby/scripts/mikutter/trunk/core/message.rb:134:in `to_me?'
from /home/toshi/Documents/hobby/scripts/mikutter/trunk/core/addon/streaming.rb:113:in `block in pack_message_event'
from /home/toshi/Documents/hobby/scripts/mikutter/trunk/core/addon/streaming.rb:110:in `each'
from /home/toshi/Documents/hobby/scripts/mikutter/trunk/core/addon/streaming.rb:110:in `pack_message_event'
from /home/toshi/Documents/hobby/scripts/mikutter/trunk/core/addon/streaming.rb:105:in `block (2 levels) in singletonclass'
from /opt/miku/rb192/lib/ruby/1.9.1/set.rb:222:in `block in each'
from /opt/miku/rb192/lib/ruby/1.9.1/set.rb:222:in `each_key'
from /opt/miku/rb192/lib/ruby/1.9.1/set.rb:222:in `each'
from /home/toshi/Documents/hobby/scripts/mikutter/trunk/core/addon/streaming.rb:104:in `block in singletonclass'
from /home/toshi/Documents/hobby/scripts/mikutter/trunk/core/addon/streaming.rb:58:in `block (2 levels) in define_together_event'
from /home/toshi/Documents/hobby/scripts/mikutter/trunk/core/addon/streaming.rb:55:in `loop'
from /home/toshi/Documents/hobby/scripts/mikutter/trunk/core/addon/streaming.rb:55:in `block in define_together_event'

#1

Updated by toshi_a 初音 over 9 years ago

  • Tracker changed from 最適化 to 致命的
#2

Updated by toshi_a 初音 over 9 years ago

receive_to?がHashを受け取るとクラッシュする。
また、Post#user_objが最初に呼ばれたときにハッシュを返している

#3

Updated by Anonymous over 9 years ago

  • Status changed from 新規 to 終了
  • % Done changed from 0 to 100

更新履歴 r419 で適用されました。

Also available in: Atom PDF