Skip to content

以前のバージョンでは動作していたのですが #74

@aluminixum

Description

@aluminixum

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:in request' 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:in user_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:in loop' 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:in block 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:in run' 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:in load' 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:in eval' from /usr/local/rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in '

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions