Last.fm can't authorise behind proxy

Bug #1408698 reported by David
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Nuvola Apps Runtime (Nuvola Player)
Won't Fix
Undecided
Unassigned

Bug Description

Nuvola 2.5
Ubuntu 12.04
I'm using Nuvola Player at work and the PC is sat behind a proxy.

When I try to authorise my Last.fm account it sits there for a while and then changes the "Authorise" button label to "Error occurred. Try again."

I ran Nuvola Player from command line with verbose and debug flags, once the "Authorise" button has been hit nothing is printed until the error occurs, at which point this gets printed to the command line:

      Json Critical json_node_get_object: assertion `node != NULL' failed
      Json Critical json_object_has_member: assertion `object != NULL' failed
      Json Critical json_object_has_member: assertion `object != NULL' failed
    Nuvola Warning lastfm.vala:1222: Scrobbler (Last.fm) error: auth.getToken: Response doesn't contain token member.

I did a bit of digging in the code and tried to trace the problem. In the send_request function (in lastfm.vala) I added a few printfs to print out the message body returned by libsoup, the message header and the status code.
The message was empty and the status code was 4 (which seems to be SOUP_STATUS_CANT_CONNECT), so I'm guessing that it can't get out onto the internet (that would explain the lack of message).

My guess is that either my firewall is blocking it or libsoup isn't doing the right thing with the proxy (I set Nuvola's proxy settings to use my system settings, my proxy is set using Network Manager and http_proxy environment variable is set in my bashrc).
I was going try directly giving libsoup the proxy settings (to try and help narrow down the problem) but I'm not so experienced with Vala and can't find any examples (only this: http://valadoc.org/#!api=libsoup-2.4/Soup.Session.proxy_uri which I doesn't help me know how to use it).

I think it's most likely the proxy thing, though I haven't ever had this issue when accessing sites via http before (https has been an issue though).

It's also worth noting that I tried manually retrieving the last.fm token and adding it into the code (skipping the get_request_token step). When I hit "Authorise" it opened a browser to login with perfectly fine, however I had the same issue as above when I hit the "Complete authorization" button.

If there's anything I can do to help debug then let me know.

Revision history for this message
Jiří Janoušek (fenryxo) wrote :

Thanks for taking the time to report this issue. I will need more information to investigate it further.

1) What type of proxy do you use? HTTP/SOCKS? With or without authentication?
2) Could you post full debugging output?

Changed in nuvola-player:
status: New → Incomplete
Revision history for this message
David (david-puzey) wrote :
Download full text (11.6 KiB)

1) HTTP without authentication

2)
    Nuvola Info nuvolaplayer.vala:153: Welcome to Nuvola Player, version: 2.5
    Nuvola Info nuvolaplayer.vala:157: Revision: 862, <email address hidden>
    Nuvola Info nuvolaplayer.vala:158: Report any issues/bugs you might find to http://nuvolaplayer.fenryxo.cz/support/bug_reporting.html
    Nuvola Debug nuvolaplayer.vala:159: command: /usr/lib/nuvolaplayer/nuvolaplayer --verbose --debug
    Nuvola Debug nuvolaplayer.vala:161: Enabled features: Unity Quicklist, optimization of SVG images, Last.fm scrobbling, Notifications, debug symbols
    Nuvola Debug nuvolaplayer.vala:162: Disabled features: experimental features, debug memory usage
       Gtk Debug Connecting to session manager
    Nuvola Debug nuvolaplayer.vala:244: Starting new instance
   Diorite Debug Libsoup version: 2.38.1
    Nuvola Debug nuvola-formatsupport.vala:97: Unable to init GStreamer 0.10.36, maybe already initialized
    Nuvola Debug core.vala:59: Cache model: default
   Diorite Debug Max data cache size: 100
   libsoup Warning No feature manager for feature of type 'SoupProxyURIResolver'
   Diorite Debug Setting proxy (auto): dynamic resolver
 <unknown> Debug NP_Initialize
 <unknown> Debug NP_Initialize succeeded
GnomeShell Debug plugin loaded
 <unknown> Debug NP_Initialize
 <unknown> Debug NP_Initialize succeeded
 <unknown> Debug NP_Initialize
 <unknown> Debug NP_Initialize succeeded
 <unknown> Debug NP_Initialize
 <unknown> Debug NP_Initialize succeeded
    Nuvola Debug nuvola-formatsupport.vala:213: WebPlugin: VLC Multimedia Plugin (compatible Totem 3.0.1) (false): /usr/lib/mozilla/plugins/libtotem-cone-plugin.so
    Nuvola Debug nuvola-formatsupport.vala:213: WebPlugin: Java(TM) Plug-in 10.71.2 (false): /usr/lib/mozilla/plugins/libnpjp2.so
    Nuvola Debug nuvola-formatsupport.vala:213: WebPlugin: Citrix Receiver for Linux (false): /usr/lib/mozilla/plugins/npwrapper.npica.so
    Nuvola Debug nuvola-formatsupport.vala:213: WebPlugin: Shockwave Flash (true): /opt/nuvolaplayer/flash/wrapped/npwrapper.libflashplayer.so
    Nuvola Debug nuvola-formatsupport.vala:213: WebPlugin: Net iD (false): /usr/lib/mozilla/plugins/npiidplg.so
    Nuvola Debug nuvola-formatsupport.vala:213: WebPlugin: QuickTime Plug-in 7.6.6 (false): /usr/lib/mozilla/plugins/libtotem-narrowspace-plugin.so
    Nuvola Debug nuvola-formatsupport.vala:213: WebPlugin: Adobe Reader 9.5 (false): /usr/lib/mozilla/plugins/npwrapper.nppdf.so
    Nuvola Debug nuvola-formatsupport.vala:213: WebPlugin: Adobe Reader 9.5 (false): /usr/lib/firefox/plugins/npwrapper.nppdf.so
    Nuvola Debug nuvola-formatsupport.vala:213: WebPlugin: Gnome Shell Integration (false): /usr/lib/mozilla/plugins/libgnome-shell-browser-plugin.so
    Nuvola Debug nuvola-formatsupport.vala:213: WebPlugin: iTunes Application Detector (false): /usr/lib/mozilla/plugins/librhythmbox-itms-detection-plugin.so
    Nuvola Debug nuvola-formatsupport.vala:213: WebPlugin: Windows Media Player Plug-in 10 (compatible; Totem) (false): /usr/lib/mozilla/plugins/libtotem-gmp-plugin.so
    ...

Revision history for this message
Jiří Janoušek (fenryxo) wrote :

Thanks. I cannot reproduce the issue in Debian Jessie, will take a look at it in Ubuntu 12.04 then.

Changed in nuvola-player:
status: Incomplete → New
Revision history for this message
Jiří Janoušek (fenryxo) wrote :

I'm closing this bug report as the issue seems to be a rather complicated mystery and I cannot spend more time on Nuvola Player 2. Nuvola Player project is underfunded, so I focus only on Nuvola Player 3. I'm sorry I haven't fixed the issue.

Changed in nuvola-player:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.