A NoMethodError occurred in maps#refresh:
undefined method `-' for nil:NilClass
app/services/locations/obtain_configuration_data.rb:135:in `tier_duration_minutes_range'
-------------------------------
Request:
-------------------------------
* URL : https://bikelink.org/maps/refresh
* HTTP Method: GET
* IP address : 98.247.230.125
* Parameters : {"controller"=>"modern/maps", "action"=>"refresh"}
* Timestamp : 2024-11-06 18:26:04 UTC
* Server : www-10.internal.bikelink.org
* Rails root : /var/www/bikelink
* Process: 450625
-------------------------------
Session:
-------------------------------
* session id: [FILTERED]
* data: {}
-------------------------------
Environment:
-------------------------------
* GATEWAY_INTERFACE : CGI/1.2
* HTTP_ACCEPT : text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
* HTTP_ACCEPT_ENCODING : gzip, deflate, br, zstd
* HTTP_ACCEPT_LANGUAGE : en-US,en;q=0.9
* HTTP_CONNECTION : close
* HTTP_COOKIE : _ga=GA1.1.734180868.1722368250; __utmz=136922275.1722368276.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmc=136922275; __utma=136922275.734180868.1722368250.1730911531.1730916013.226; __utmb=136922275.4.10.1730916013; _ga_5XJXN3VELE=GS1.1.1730915918.175.1.1730916441.0.0.0
* HTTP_HOST : bikelink.org
* HTTP_PRIORITY : u=0, i
* HTTP_SEC_CH_UA : "Chromium";v="130", "Google Chrome";v="130", "Not?A_Brand";v="99"
* HTTP_SEC_CH_UA_MOBILE : ?0
* HTTP_SEC_CH_UA_PLATFORM : "Windows"
* HTTP_SEC_FETCH_DEST : document
* HTTP_SEC_FETCH_MODE : navigate
* HTTP_SEC_FETCH_SITE : none
* HTTP_SEC_FETCH_USER : ?1
* HTTP_UPGRADE_INSECURE_REQUESTS : 1
* HTTP_USER_AGENT : Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
* HTTP_VERSION : HTTP/1.0
* HTTP_X_AMZN_TRACE_ID : Root=1-672bb34a-6cb643f117c0a7740449e35f
* HTTP_X_FORWARDED_FOR : 98.247.230.125, 98.247.230.125
* HTTP_X_FORWARDED_PORT : 443
* HTTP_X_FORWARDED_PROTO : https
* ORIGINAL_FULLPATH : /maps/refresh
* ORIGINAL_SCRIPT_NAME :
* PATH_INFO : /maps/refresh
* QUERY_STRING :
* REMOTE_ADDR : 127.0.0.1
* REQUEST_METHOD : GET
* REQUEST_PATH : /maps/refresh
* REQUEST_URI : /maps/refresh
* ROUTES_13660_SCRIPT_NAME :
* SCRIPT_NAME :
* SERVER_NAME : bikelink.org
* SERVER_PORT : 443
* SERVER_PROTOCOL : HTTP/1.0
* SERVER_SOFTWARE : puma 6.4.0 The Eagle of Durango
* action_controller.instance : #<Modern::MapsController:0x000075e546c310f8>
* action_dispatch.authenticated_encrypted_cookie_salt : [FILTERED]
* action_dispatch.backtrace_cleaner : #<Rails::BacktraceCleaner:0x0000630acc56b730>
* action_dispatch.content_security_policy :
* action_dispatch.content_security_policy_nonce_directives:
* action_dispatch.content_security_policy_nonce_generator :
* action_dispatch.content_security_policy_report_only : false
* action_dispatch.cookies : #<ActionDispatch::Cookies::CookieJar:0x000075e5000a4fc8>
* action_dispatch.cookies_digest :
* action_dispatch.cookies_rotations : #<ActiveSupport::Messages::RotationConfiguration:0x0000630ac7b965d8>
* action_dispatch.cookies_same_site_protection : #<Proc:0x0000630ad2ab2cb0 /var/www/bikelink/vendor/bundle/ruby/3.0.0/gems/railties-6.1.7.6/lib/rails/application.rb:636>
* action_dispatch.cookies_serializer : json
* action_dispatch.encrypted_cookie_cipher : [FILTERED]
* action_dispatch.encrypted_cookie_salt : [FILTERED]
* action_dispatch.encrypted_signed_cookie_salt : [FILTERED]
* action_dispatch.http_auth_salt : [FILTERED]
* action_dispatch.key_generator : #<ActiveSupport::CachingKeyGenerator:0x0000630ad2952a78>
* action_dispatch.logger : #<ActiveSupport::Logger:0x0000630acc33f380>
* action_dispatch.parameter_filter : [:confirm_password, :credit_card_number, :password, :passw, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn]
* action_dispatch.permissions_policy :
* action_dispatch.redirect_filter : []
* action_dispatch.remote_ip : 98.247.230.125
* action_dispatch.request.content_type :
* action_dispatch.request.formats : [#<Mime::Type:0x0000630ac862d640 @synonyms=["application/xhtml+xml"], @symbol=:html, @string="text/html", @hash=3474508482504562334>]
* action_dispatch.request.parameters : {"controller"=>"modern/maps", "action"=>"refresh"}
* action_dispatch.request.path_parameters : {:controller=>"modern/maps", :action=>"refresh"}
* action_dispatch.request.query_parameters : {}
* action_dispatch.request.request_parameters : {}
* action_dispatch.request.unsigned_session_cookie : {}
* action_dispatch.request_id : d3f06403-6a54-4835-a024-fd9d91297203
* action_dispatch.routes : #<ActionDispatch::Routing::RouteSet:0x0000630acc050c78>
* action_dispatch.secret_key_base : [FILTERED]
* action_dispatch.show_detailed_exceptions : false
* action_dispatch.show_exceptions : true
* action_dispatch.signed_cookie_digest :
* action_dispatch.signed_cookie_salt : [FILTERED]
* action_dispatch.use_authenticated_cookie_encryption : [FILTERED]
* action_dispatch.use_cookies_with_metadata : true
* newrelic.transaction_started : true
* puma.config : #<Puma::Configuration:0x0000630ac6cdd8e8>
* puma.request_body_wait : 0.0059146881103515625
* puma.socket : #<UNIXSocket:0x000075e546b69b48>
* rack.after_reply : []
* rack.errors : #<IO:0x0000630ac636d830>
* rack.hijack : #<Puma::Client:0x000075e546b69b20>
* rack.hijack? : true
* rack.input : #<Puma::NullIO:0x0000630ac7112418>
* rack.multiprocess : true
* rack.multithread : true
* rack.request.cookie_hash : {"_ga"=>"GA1.1.734180868.1722368250", "__utmz"=>"136922275.1722368276.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)", "__utmc"=>"136922275", "__utma"=>"136922275.734180868.1722368250.1730911531.1730916013.226", "__utmb"=>"136922275.4.10.1730916013", "_ga_5XJXN3VELE"=>"GS1.1.1730915918.175.1.1730...
* rack.request.cookie_string : _ga=GA1.1.734180868.1722368250; __utmz=136922275.1722368276.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmc=136922275; __utma=136922275.734180868.1722368250.1730911531.1730916013.226; __utmb=136922275.4.10.1730916013; _ga_5XJXN3VELE=GS1.1.1730915918.175.1.1730916441.0.0.0
* rack.request.query_hash : {}
* rack.request.query_string :
* rack.run_once : false
* rack.session : #<ActionDispatch::Request::Session:0x000075e546c33c18>
* rack.session.options : #<ActionDispatch::Request::Session::Options:0x000075e546c33b50>
* rack.tempfiles : []
* rack.url_scheme : https
* rack.version : [1, 6]
* warden : Warden::Proxy:13866060 @config={:default_scope=>:person, :scope_defaults=>{}, :default_strategies=>{:person=>[:two_factor_authenticatable, :two_factor_authenticatable, :rememberable]}, :intercept_401=>false, :failure_app=>#<Devise::Delegator:0x0000630ace482ad8>}
-------------------------------
Backtrace:
-------------------------------
app/services/locations/obtain_configuration_data.rb:135:in `tier_duration_minutes_range'
app/services/locations/obtain_configuration_data.rb:156:in `tier1_data'
app/services/locations/obtain_configuration_data.rb:60:in `all_oversized_pricing_tiers'
app/services/locations/obtain_configuration_data.rb:280:in `applicable_oversized_pricing_tiers'
app/services/locations/obtain_configuration_data.rb:28:in `call'
app/jobs/map_crawler_job.rb:42:in `prepare_response_for'
app/jobs/map_crawler_job.rb:36:in `block in update_map_data_with'
app/jobs/map_crawler_job.rb:34:in `update_map_data_with'
app/jobs/map_crawler_job.rb:13:in `perform'
app/controllers/modern/maps_controller.rb:25:in `refresh'
app/controllers/application_controller.rb:45:in `process_action'