[Forgot to send to the list] On 18 Jun 2008, at 14:58, James Carruth wrote:
> I have a very simple email to next action script that creates next > actions in Tracks using curl. It stopped working after I moved to the > newest version from github (I had previously been using the svn trunk > version). Tracks works fine from the web, but I get an error when I > try to add new next actions following the instructions on the > Integrations page. > > Here is what I type at the command prompt (relevant details have been > changed to protect the innocent) > > $curl -u username:password -d "todo[description]=Test out this new > installation&todo[context_id]=8" http://example.com:8000/todos.xml -i I tried your example (with details changed for my installation, obviously), and also got an error. Running under development, I got a more detailed error message, which suggested problems with the AuthenticityToken: ActionController::InvalidAuthenticityToken in TodosController#create </h1> <pre>ActionController::InvalidAuthenticityToken</pre> ActionPack's request_forgery_protection.rb seemed to be involved. However, I also tried using the tracks_api_wrapper, using the irb example given in the wrapper itself, and that worked fine. I could get existing attributes of records and create a new record. So I suspect that the api itself is fine, but something crucial is not being sent with the curl request. cheers, bsag -- but she's a girl - the weblog of a female geek http://www.rousette.org.uk [EMAIL PROTECTED] _______________________________________________ Tracks-discuss mailing list [email protected] http://lists.rousette.org.uk/mailman/listinfo/tracks-discuss
