Uploader-r93 fail to login on Ubuntu 8.10 - HTTP 500 Error

Bug #339136 reported by nrafal
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
RescueTime Linux Uploader
Fix Committed
Undecided
Unassigned

Bug Description

** (process:29929): WARNING **: g_set_application_name not set.

** (process:29929): WARNING **: g_set_application_name not set.
Your rescuetime username: <email address hidden>
Your rescuetime password:
Logging in...
Traceback (most recent call last):
HTTPError: HTTP Error 500: Internal Server Error
Connection is down. Pretending we succeeded in logging in.

** (process:29929): WARNING **: g_set_application_name not set.

** (process:29929): WARNING **: g_set_application_name not set.
Main() started
Python version: 2.5.2 (r252:60911, Oct 5 2008, 19:24:49)
[GCC 4.3.2]

Can you help me? :)
Of course, connection works fine.

nrafal (rafal-nrafal)
description: updated
Revision history for this message
Henri Cook (henricook) wrote :

I also have this issue, I also see a 500 when browsing to https://api.rescuetime.com/api/handshake?<email address hidden>&password=foobar

Has the API address changed I wonder?

Revision history for this message
Henri Cook (henricook) wrote :

I've been hacking at the source all day and have discovered the problem.

In the test_connection() method the uploader tries to see if the API is online by checking https://api.rescuetime.com/api/handshake (with no parameters)

This generates a 500 error, which it obviously didn't used to (unless this code never worked)

I've altered my copy to instead check https://api.rescuetime.com/hello which will solve your problem

Very simple patch, i've implemented it as follows:

def test_connect(self):
             try:
- request = urllib2.Request(RESCUETIME_API_URL);
+ request = urllib2.Request("https://api.rescuetime.com/hello");

It's a hack but it works until a proper fix using some nice RESCUETIME_API variables is out.

I also have proxy issues but with this fix I can run the uploader fine using 'proxychains' and a SOCKS5 tunnel.

It would be really nice to see some proper HTTP and HTTPs proxy support in the app itself/python

Revision history for this message
nrafal (rafal-nrafal) wrote :

Your solution fixed login problem - hope that everything will be all right now :)

Thank you very much!

Henri Cook (henricook)
Changed in rescuetime-linux-uploader:
status: New → Confirmed
Revision history for this message
Elliot Murphy (statik) wrote :

I believe this was fixed before rev 93.

Changed in rescuetime-linux-uploader:
status: Confirmed → Fix Committed
Revision history for this message
c00p (info-3tailer) wrote :

I made the change and it seems to have gotten rid of the HTTPError 500 but it is still failing on the test_connection() function but now it's due to a 404 error. Does the API site like to go down every once in a while?? The API URL in 93 is https://api.rescuetime.com/api.. Any help would be greatly apprecaited.

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.