jsmestad / pivotal-tracker

Ruby gem that provides an AR-style interface for the Pivotal Tracker API
http://github.com/jsmestad/pivotal-tracker
MIT License
352 stars 184 forks source link

RestClient::NotFound: 404 Not Found #122

Open hengsovandara opened 5 years ago

hengsovandara commented 5 years ago
 7: def initialize
     8:   puts "initializing JIRA Client authentication and Jira::PivotalTracker project..."
     9: 
    10:   url = 'https://salsify.atlassian.net/'
    11:   options = {
    12:     :username     => ENV['JIRA_USER_NAME'],
    13:     :password     => ENV['JIRA_PASSWORD'],
    14:     :site         => url,
    15:     :context_path => '',
    16: 
    17:     :ssl_verify_mode => OpenSSL::SSL::VERIFY_PEER,
    18:     :use_ssl      => true,
    19:     :auth_type    => :basic
    20:   }
    21:   PivotalTracker::Client.token = ENV['PIVOTALTRACKER_TOKEN']
 => 22:   binding.pry
    23:   @client ||= JIRA::Client.new(options)
    24:   @a_project ||= PivotalTracker::Project.find(ENV['PIVOTAL_PROJECT_ID'])
    25: end

[1] pry(#<JiraPivotalApi>)> PivotalTracker::Project.find(ENV['PIVOTAL_PROJECT_ID'])
RestClient::NotFound: 404 Not Found
from /Users/blazblack/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rest-client-2.0.2/lib/restclient/abstract_response.rb:223:in `exception_with_response'
fuggfuggfugg commented 5 years ago

Having the same issue. Just came across this today. Don't have a solution yet. The latest version of their tracker is v5

Monitoring - Access to API V3 and V4 are being removed as of today. As a result, formerly valid URLs beginning with "/services/v3" or "/services/v4" will now redirect to a Tracker branded 404 page. Because some customers still rely on them, Github service hooks will not be affected by this removal and will still work. If you have any questions or feedback, please contact tracker@pivotal.io.

fuggfuggfugg commented 5 years ago

@hengsovandara You can use this gem https://github.com/dashofcode/tracker_api