From f89123752cce1f489af358bf01a4d742a33d0dbc Mon Sep 17 00:00:00 2001 From: Carolyn Cole Date: Tue, 15 Oct 2024 08:17:13 -0400 Subject: [PATCH] Splitting the calls to see if it is the open or the read that is exceeding the limit Adding an open timeout and upping the read timeout --- app/lib/describe_indexer.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/lib/describe_indexer.rb b/app/lib/describe_indexer.rb index 4c0de763..ebc4c987 100644 --- a/app/lib/describe_indexer.rb +++ b/app/lib/describe_indexer.rb @@ -83,7 +83,8 @@ def rss_url_list # Parse the rss_url, get a JSON resource url for each item, convert it to XML, and pass it to traject def perform_indexing rss_url_list.each do |url| - resource_json = URI.open(url, read_timeout: 30).read + uri = URI.open(url, open_timeout: 60, read_timeout: 60) + resource_json = uri.read resource_xml = prep_for_indexing(resource_json) traject_indexer.process(resource_xml) Rails.logger.info "Successfully imported record from #{url}."