FuelRats / FCMS

Fleet Carrier Management System
BSD 3-Clause "New" or "Revised" License
26 stars 7 forks source link

OAuth errors on auth/finalize #181

Closed cattoman1 closed 9 months ago

cattoman1 commented 9 months ago
2024-01-23 21:07:23,653 ERROR [waitress:435][waitress-2] Exception while serving /oauth/finalize
Traceback (most recent call last):
  File "C:\Users\mmuch\miniconda3\folder\Lib\site-packages\waitress\channel.py", line 428, in service
    task.service()
  File "C:\Users\mmuch\miniconda3\folder\Lib\site-packages\waitress\task.py", line 168, in service
    self.execute()
  File "C:\Users\mmuch\miniconda3\folder\Lib\site-packages\waitress\task.py", line 434, in execute
    app_iter = self.channel.server.application(environ, start_response)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\mmuch\miniconda3\folder\Lib\site-packages\pyramid\router.py", line 270, in __call__
    response = self.execution_policy(environ, self)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\mmuch\miniconda3\folder\Lib\site-packages\pyramid_retry\__init__.py", line 127, in retry_policy
    response = router.invoke_request(request)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\mmuch\miniconda3\folder\Lib\site-packages\pyramid\router.py", line 245, in invoke_request
    response = handle_request(request)
               ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\mmuch\miniconda3\folder\Lib\site-packages\pyramid_debugtoolbar\toolbar.py", line 237, in toolbar_tween
    return handler(request)
           ^^^^^^^^^^^^^^^^
  File "C:\Users\mmuch\miniconda3\folder\Lib\site-packages\pyramid_tm\__init__.py", line 178, in tm_tween
    raise exc from None
  File "C:\Users\mmuch\miniconda3\folder\Lib\site-packages\pyramid_tm\__init__.py", line 145, in tm_tween
    response = handler(request)
               ^^^^^^^^^^^^^^^^
  File "C:\Users\mmuch\miniconda3\folder\Lib\site-packages\pyramid\tweens.py", line 43, in excview_tween
    response = _error_handler(request, exc)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\mmuch\miniconda3\folder\Lib\site-packages\pyramid\tweens.py", line 17, in _error_handler
    reraise(*exc_info)
  File "C:\Users\mmuch\miniconda3\folder\Lib\site-packages\pyramid\util.py", line 733, in reraise
    raise value
  File "C:\Users\mmuch\miniconda3\folder\Lib\site-packages\pyramid\tweens.py", line 41, in excview_tween
    response = handler(request)
               ^^^^^^^^^^^^^^^^
  File "C:\Users\mmuch\miniconda3\folder\Lib\site-packages\pyramid\router.py", line 143, in handle_request
    response = _call_view(
               ^^^^^^^^^^^
  File "C:\Users\mmuch\miniconda3\folder\Lib\site-packages\pyramid\view.py", line 674, in _call_view
    response = view_callable(context, request)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\mmuch\miniconda3\folder\Lib\site-packages\pyramid\viewderivers.py", line 427, in rendered_view
    result = view(context, request)
             ^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\mmuch\miniconda3\folder\Lib\site-packages\pyramid\viewderivers.py", line 141, in _requestonly_view
    response = view(request)
               ^^^^^^^^^^^^^
  File "c:\users\mmuch\desktop\dings\fcms-master\FCMS\views\login.py", line 166, in oauth_finalize
    jcarrier = capi.get_carrier(request.user)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "c:\users\mmuch\desktop\dings\fcms-master\FCMS\utils\capi.py", line 150, in get_carrier
    return json.loads(capi('/fleetcarrier', user))
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "c:\users\mmuch\desktop\dings\fcms-master\FCMS\utils\capi.py", line 118, in capi
    res = client.get(urljoin(capiURL, endpoint))
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\mmuch\miniconda3\folder\Lib\site-packages\requests\sessions.py", line 602, in get
    return self.request("GET", url, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\mmuch\miniconda3\folder\Lib\site-packages\authlib\integrations\requests_client\oauth2_session.py", line 109, in request
    return super().request(
           ^^^^^^^^^^^^^^^^
  File "C:\Users\mmuch\miniconda3\folder\Lib\site-packages\requests\sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\mmuch\miniconda3\folder\Lib\site-packages\requests\sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\mmuch\miniconda3\folder\Lib\site-packages\requests\adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='pts-companion.orerve.net', port=443): Max retries exceeded with url: /fleetcarrier (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000002831EE4F110>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))

How do i fix this?