It's not a Python problem, it's an issue with the JSON handler at
Eventful's end. Basically, sometimes the response is JSON, and sometimes
it's JSONP. E.g.:

% curl 
"http://api.eventful.com/json/users/login?app_key=test_key&user=&user_key=";
{"nonce":"3740583121","string":"Authorization
Required","description":"Please supply a user authentication response
using the nonce provided."}
% curl 
"http://api.eventful.com/json/users/login?app_key=test_key&user=&user_key=";
var obj = {"nonce":"4740583121","string":"Authorization
Required","description":"Please supply a user authentication response
using the nonce provided."}; EVDB.API._complete(1, obj);

John & I thought it might be that some API servers were out of sync, but
it happens on each of them individually too:

% curl 
"http://api01.eventful.com/json/users/login?app_key=test_key&user=&user_key=";
{"nonce":"7450583121","string":"Authorization
Required","description":"Please supply a user authentication response
using the nonce provided."}
% curl 
"http://api01.eventful.com/json/users/login?app_key=test_key&user=&user_key=";
var obj = {"nonce":"7450583121","string":"Authorization
Required","description":"Please supply a user authentication response
using the nonce provided."}; EVDB.API._complete(1, obj);


HTH.
Ted

Reply via email to