hybridgroup/ticketmaster — Issue #18: Cannot get any actions to work with pivotal
Author: IdahoEv
Created: 2011-10-14 20:23:50+00:00
State: open

I can't get any requests to work with pivotal. All attempts to call a method on a pivotal connection reply with 406: Not acceptable.

I've tried authenticating each of the following ways:
1) pivotal = TicketMaster.new(:pivotal) # while ticketmaster.yml contains username and password
2) pivotal = TicketMaster.new(:pivotal) # while ticketmaster.yml contains pivotal token
3) pivotal = TicketMaster.new(:pivotal) # while ticketmaster.yml contains username and token
4) pivotal = TicketMaster.new(:pivotal) # while ticketmaster.yml contains username, password, and token
5) pivotal = TicketMaster.new(:pivotal, {:username => 'my username', :password => 'my password'})
6) pivotal = TicketMaster.new(:pivotal, {:username => 'my username', :password => 'my password', :token => 'my token'})
7) pivotal = TicketMaster.new(:pivotal, {:token => 'my token'})
8-10) repeat steps 5-7 without any ticketmaster.yml at all

In each of the above cases, pivotal contains a TM object connected to pivotal tracker, but calling pivotal.project.find (or any other method) returns "406 Not Acceptable".

This happens both when run in console, *or* when the code is put in Rakefile and executed there.