Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

RestClient::NotFound: 404 Not Found #122

Open
hengsovandara opened this issue Jan 28, 2019 · 2 comments
Open

RestClient::NotFound: 404 Not Found #122

hengsovandara opened this issue Jan 28, 2019 · 2 comments

Comments

@hengsovandara
Copy link

 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
Copy link

fuggfuggfugg commented Feb 2, 2019

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 [email protected].

@fuggfuggfugg
Copy link

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

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

No branches or pull requests

2 participants