Troubleshoot 401 error when sending zesty request

NoMethodError: undefined method strip for nilClass