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

ArgumentError: File does not exist: . #35

Open
masterkain opened this issue Sep 7, 2012 · 4 comments
Open

ArgumentError: File does not exist: . #35

masterkain opened this issue Sep 7, 2012 · 4 comments

Comments

@masterkain
Copy link
Contributor

Hello,
I upgraded to 1.8.0 and I'm getting this exception on now_playing:

xml-simple (1.1.1) lib/xmlsimple.rb:990:in `find_xml_file'
xml-simple (1.1.1) lib/xmlsimple.rb:168:in `xml_in'
xml-simple (1.1.1) lib/xmlsimple.rb:203:in `xml_in'
lastfm (1.8.0) lib/lastfm/response.rb:9:in `initialize'
lastfm (1.8.0) lib/lastfm.rb:94:in `new'
lastfm (1.8.0) lib/lastfm.rb:94:in `request'
lastfm (1.8.0) lib/lastfm/method_category/base.rb:54:in `request'
lastfm (1.8.0) lib/lastfm/method_category/base.rb:39:in `write_request'
lastfm (1.8.0) lib/lastfm/method_category/base.rb:29:in `block in __define_method'
client.track.update_now_playing(artist, title, album, position)
# or
client.track.update_now_playing(artist: artist, track: title, album: album, trackNumber: position)

Is the Last.fm service being funky?

@youpy
Copy link
Owner

youpy commented Sep 7, 2012

last.fm seems unavailable now

@masterkain
Copy link
Contributor Author

Thanks, I'm collecting some exceptions for when the last.fm service goes down so I can trap them better and adjust accordingly, can this info help this gem for error handling?

@youpy
Copy link
Owner

youpy commented Sep 7, 2012

Yes. I'll improve error handling.
Thanks!

@masterkain
Copy link
Contributor Author

Ok, so I have another two, they happened with 1.7.0 though:

client.scrobble

Errno::ETIMEDOUT: Connection timed out - connect(2)

/home/ubuntu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:762:in `initialize'
/home/ubuntu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:762:in `open'
/home/ubuntu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:762:in `block in connect'
/home/ubuntu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/timeout.rb:54:in `timeout'
/home/ubuntu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/timeout.rb:99:in `timeout'
/home/ubuntu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:762:in `connect'
/home/ubuntu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:755:in `do_start'
/home/ubuntu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:744:in `start'
/home/ubuntu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1284:in `request'
rest-client (1.6.7) lib/restclient/net_http_ext.rb:51:in `request'
httparty (0.8.3) lib/httparty/request.rb:76:in `perform'
httparty (0.8.3) lib/httparty.rb:400:in `perform_request'
httparty (0.8.3) lib/httparty.rb:363:in `post'
lastfm (1.7.0) lib/lastfm.rb:94:in `request'
lastfm (1.7.0) lib/lastfm/method_category/base.rb:54:in `request'
lastfm (1.7.0) lib/lastfm/method_category/base.rb:39:in `write_request'
lastfm (1.7.0) lib/lastfm/method_category/base.rb:29:in `block in __define_method'

client.scrobble

EOFError: end of file reached

/home/ubuntu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/protocol.rb:141:in `read_nonblock'
/home/ubuntu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/protocol.rb:141:in `rbuf_fill'
/home/ubuntu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/protocol.rb:122:in `readuntil'
/home/ubuntu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/protocol.rb:132:in `readline'
/home/ubuntu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:2562:in `read_status_line'
/home/ubuntu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:2551:in `read_new'
/home/ubuntu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1319:in `block in transport_request'
/home/ubuntu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1316:in `catch'
/home/ubuntu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1316:in `transport_request'
/home/ubuntu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1293:in `request'
rest-client (1.6.7) lib/restclient/net_http_ext.rb:51:in `request'
/home/ubuntu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1286:in `block in request'
/home/ubuntu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:745:in `start'
/home/ubuntu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1284:in `request'
rest-client (1.6.7) lib/restclient/net_http_ext.rb:51:in `request'
httparty (0.8.3) lib/httparty/request.rb:76:in `perform'
httparty (0.8.3) lib/httparty.rb:400:in `perform_request'
httparty (0.8.3) lib/httparty.rb:363:in `post'
lastfm (1.7.0) lib/lastfm.rb:94:in `request'
lastfm (1.7.0) lib/lastfm/method_category/base.rb:54:in `request'
lastfm (1.7.0) lib/lastfm/method_category/base.rb:39:in `write_request'
lastfm (1.7.0) lib/lastfm/method_category/base.rb:29:in `block in __define_method'

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