System error

error:  Can't call method "RemoteAddr" on an undefined value at /usr/local/sites/sandbox/quotes/autohandler line 167.
context: 
... 
163:  $urlbase{$_} =~ s/www.ino.com/wwwtest.ino.com/;
164:  $urlbase{$_} =~ s/quotes.ino.com/quotestest.ino.com/;
165:  $urlbase{$_} =~ s#https://assets.ino.com/#/#;
166:  }
167:  my $ip = $profile->RemoteAddr();
168:  my $hostname = $profile->IPToHostname($ip);
169:  warn "TEST " . $r->hostname . " from $hostname [$ip]";
170:  }
171: 
... 
code stack:  /usr/local/sites/sandbox/quotes/autohandler:167
raw error






























Can't call method "RemoteAddr" on an undefined value at /usr/local/sites/sandbox/quotes/autohandler line 167.


Trace begun at /usr/lib/perl5/site_perl/5.32.0/HTML/Mason/Exceptions.pm line 125
HTML::Mason::Exceptions::rethrow_exception('Can\'t call method "RemoteAddr" on an undefined value at /usr/local/sites/sandbox/quotes/autohandler line 167.^J') called at /usr/local/sites/sandbox/quotes/autohandler line 167
HTML::Mason::Commands::__ANON__('s', 'INDEX_TWDOW') called at /usr/lib/perl5/site_perl/5.32.0/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x55b26a6a9878)', 's', 'INDEX_TWDOW') called at /usr/lib/perl5/site_perl/5.32.0/HTML/Mason/Request.pm line 1300
eval {...} at /usr/lib/perl5/site_perl/5.32.0/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef, 's', 'INDEX_TWDOW') called at /usr/lib/perl5/site_perl/5.32.0/HTML/Mason/Request.pm line 481
eval {...} at /usr/lib/perl5/site_perl/5.32.0/HTML/Mason/Request.pm line 481
eval {...} at /usr/lib/perl5/site_perl/5.32.0/HTML/Mason/Request.pm line 433
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x55b26a64dcb0)') called at /usr/lib/perl5/site_perl/5.32.0/HTML/Mason/ApacheHandler.pm line 168
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x55b26a64dcb0)') called at /usr/lib/perl5/site_perl/5.32.0/HTML/Mason/ApacheHandler.pm line 825
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x55b26a643380)', 'Apache2::RequestRec=SCALAR(0x55b26a614198)') called at (eval 217) line 8
HTML::Mason::ApacheHandler::handler('HTML::Mason::ApacheHandler', 'Apache2::RequestRec=SCALAR(0x55b26a614198)') called at -e line 0
eval {...} at -e line 0