Last.fm can't authorise behind proxy
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_
Json Critical json_object_
Json Critical json_object_
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_
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://
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.
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?