Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The call project.stories.all fails with a 400 Bad Request #95

Open
shyam-habarakada opened this issue Apr 14, 2014 · 2 comments
Open

The call project.stories.all fails with a 400 Bad Request #95

shyam-habarakada opened this issue Apr 14, 2014 · 2 comments

Comments

@shyam-habarakada
Copy link

in an irb console,

TOKEN = 'a-token'
PROJECT_ID = 123
require 'pivotal-tracker'
PivotalTracker::Client.token = TOKEN
project = PivotalTracker::Project.find(PROJECT_ID)
project.stories.all

Error

RestClient::BadRequest: 400 Bad Request
  from /usr/local/rvm/gems/ruby-1.9.3-p125@benchpress-server-2/gems/rest-client-1.6.7/lib/restclient/abstract_response.rb:48:in `return!'
  from /usr/local/rvm/gems/ruby-1.9.3-p125@benchpress-server-2/gems/rest-client-1.6.7/lib/restclient/request.rb:230:in `process_result'
  from /usr/local/rvm/gems/ruby-1.9.3-p125@benchpress-server-2/gems/rest-client-1.6.7/lib/restclient/request.rb:178:in `block in transmit'
  from /usr/local/rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/net/http.rb:745:in `start'
  from /usr/local/rvm/gems/ruby-1.9.3-p125@benchpress-server-2/gems/rest-client-1.6.7/lib/restclient/request.rb:172:in `transmit'
  from /usr/local/rvm/gems/ruby-1.9.3-p125@benchpress-server-2/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in `execute'
  from /usr/local/rvm/gems/ruby-1.9.3-p125@benchpress-server-2/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in `execute'
  from /usr/local/rvm/gems/ruby-1.9.3-p125@benchpress-server-2/gems/rest-client-1.6.7/lib/restclient/resource.rb:51:in `get'
  from /usr/local/rvm/gems/ruby-1.9.3-p125@benchpress-server-2/gems/pivotal-tracker-0.5.12/lib/pivotal-tracker/story.rb:8:in `all'
  from /usr/local/rvm/gems/ruby-1.9.3-p125@benchpress-server-2/gems/pivotal-tracker-0.5.12/lib/pivotal-tracker/proxy.rb:60:in `load_found'
  from /usr/local/rvm/gems/ruby-1.9.3-p125@benchpress-server-2/gems/pivotal-tracker-0.5.12/lib/pivotal-tracker/proxy.rb:48:in `proxy_found'
  from /usr/local/rvm/gems/ruby-1.9.3-p125@benchpress-server-2/gems/pivotal-tracker-0.5.12/lib/pivotal-tracker/proxy.rb:15:in `all'
  from (irb):29
  from /usr/local/rvm/rubies/ruby-1.9.3-p125/bin/irb:12:in `<main>'
@ghost
Copy link

ghost commented Apr 18, 2014

Same here.

@mremond
Copy link

mremond commented May 15, 2014

Try switching to ssl:

PivotalTracker::Client.use_ssl = true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants