-
Notifications
You must be signed in to change notification settings - Fork 13
Description
gemのtwitterにてgetするuser.jsonに?replies=allを追記するとtw側で全く表示が出ないで終了してしまうのですが、バグでしょうか?
wgetなどでuserstream.twitter.com/1.1/user.json?replies=allを取得しようとした場合はユーザー認証ができていないため、エラーが帰ってきます。
wget https://userstream.twitter.com/1.1/user.json?replies=all
--2017-09-27 14:27:12-- https://userstream.twitter.com/1.1/user.json?replies=all
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving userstream.twitter.com... 199.16.156.81
Connecting to userstream.twitter.com|199.16.156.81|:443... connected.
HTTP request sent, awaiting response... 401 Authorization Required
Username/Password Authentication Failed.
Ctrl+cで取得したエラーログは下記のものです。
/usr/local/rvm/gems/ruby-2.4.1/gems/twitter-6.1.0/lib/twitter/streaming/connection.rb:19:in
'connect': Interrupt from /usr/local/rvm/gems/ruby-2.4.1/gems/twitter-6.1.0/lib/twitter/streaming/connection.rb:19:in
stream'
from /usr/local/rvm/gems/ruby-2.4.1/gems/twitter-6.1.0/lib/twitter/streaming/client.rb:119:inrequest' from /usr/local/rvm/gems/ruby-2.4.1/gems/twitter-6.1.0/lib/twitter/streaming/client.rb:92:in
user'
from /usr/local/rvm/gems/ruby-2.4.1/gems/tw-1.2.0/lib/tw/client/stream.rb:16:inuser_stream' from /usr/local/rvm/gems/ruby-2.4.1/gems/tw-1.2.0/lib/tw/app/cmds.rb:159:in
block (2 levels) in regist_cmds'
from /usr/local/rvm/gems/ruby-2.4.1/gems/tw-1.2.0/lib/tw/app/cmds.rb:157:inloop' from /usr/local/rvm/gems/ruby-2.4.1/gems/tw-1.2.0/lib/tw/app/cmds.rb:157:in
block in regist_cmds'
from /usr/local/rvm/gems/ruby-2.4.1/gems/tw-1.2.0/lib/tw/app/main.rb:119:inblock in run' from /usr/local/rvm/gems/ruby-2.4.1/gems/tw-1.2.0/lib/tw/app/main.rb:117:in
each'
from /usr/local/rvm/gems/ruby-2.4.1/gems/tw-1.2.0/lib/tw/app/main.rb:117:inrun' from /usr/local/rvm/gems/ruby-2.4.1/gems/tw-1.2.0/bin/tw:9:in
<top (required)>'
from /usr/local/rvm/gems/ruby-2.4.1/bin/tw:23:inload' from /usr/local/rvm/gems/ruby-2.4.1/bin/tw:23:in
from /usr/local/rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:ineval' from /usr/local/rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in
'