From 3e6c77b5ff4e24ee5066ae7bd23e1b49ab71efac Mon Sep 17 00:00:00 2001 From: jrgriffiniii <1443986+jrgriffiniii@users.noreply.github.com> Date: Thu, 10 Oct 2024 15:55:05 -0400 Subject: [PATCH] troubleshooting the API request failures --- lib/orangetheses/fetcher.rb | 4 +++- spec/lib/orangetheses/harvester_spec.rb | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/orangetheses/fetcher.rb b/lib/orangetheses/fetcher.rb index b0a58e7..1c58046 100644 --- a/lib/orangetheses/fetcher.rb +++ b/lib/orangetheses/fetcher.rb @@ -244,7 +244,9 @@ def api_community # Get all of the collections for a given community def api_collections @api_collections ||= begin - response = api_client.get("#{@server}/communities/#{api_community_id}/collections") + collections_url = "#{@server}/communities/#{api_community_id}/collections" + logger.info("Querying #{collections_url} for the collections...") + response = api_client.get(collections_url) response.body end end diff --git a/spec/lib/orangetheses/harvester_spec.rb b/spec/lib/orangetheses/harvester_spec.rb index d1af3a9..780cd14 100644 --- a/spec/lib/orangetheses/harvester_spec.rb +++ b/spec/lib/orangetheses/harvester_spec.rb @@ -20,13 +20,13 @@ end describe '#harvest_all' do - xit 'harvests all of the DSpace Items using the OAI-PMH' do + it 'harvests all of the DSpace Items using the OAI-PMH' do # @todo Implemented end end describe '#index_all' do - xit 'harvests all of the DSpace Items using the OAI-PMH and indexes these into Solr' do + it 'harvests all of the DSpace Items using the OAI-PMH and indexes these into Solr' do # @todo Implemented end end