Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openssl/buffering.rb: `sysread': end of file reached (EOFError) #24

Open
called-d opened this issue May 1, 2017 · 1 comment
Open

Comments

@called-d
Copy link

called-d commented May 1, 2017

I use mastodon-api version: commit cdc93be

/usr/lib/ruby/2.4.0/openssl/buffering.rb:125:in `sysread': end of file reached (EOFError)
	from /usr/lib/ruby/2.4.0/openssl/buffering.rb:125:in `readpartial'
	from /path/to/myapp/vendor/bundle/ruby/2.4.0/bundler/gems/mastodon-api-cdc93be69bb3/lib/mastodon/streaming/connection.rb:19:in `stream'
	from /path/to/myapp/vendor/bundle/ruby/2.4.0/bundler/gems/mastodon-api-cdc93be69bb3/lib/mastodon/streaming/client.rb:80:in `request'
	from /path/to/myapp/vendor/bundle/ruby/2.4.0/bundler/gems/mastodon-api-cdc93be69bb3/lib/mastodon/streaming/client.rb:51:in `stream'
	from mer.rb:133:in `block in <main>'
133	  stream_client.stream('public/local') do | status |
134	    if line = status_to_string(status) then
135	      reset_current_line
136	      puts line
137	    end
138	  end

I can't find document about client.stream raising EOFError.
Am I missing something?
Is this a bug? else I will write rescue EOFError => to retry

@takahashim
Copy link
Contributor

IO#readpartial used in Mastodon::Streaming::Connection#stream raises EOFError when stream reached to EOF.
https://docs.ruby-lang.org/en/2.4.0/IO.html#method-i-readpartial

Twitter API gem has same issue sferik/twitter-ruby#535 , so this might not be solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants