ERROR: Exception in ASGI application Traceback (most recent call last): File "/Users/saragilbert/opt/anaconda3/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 404, in run_asgi result = await app( # type: ignore[func-returns-value] File "/Users/saragilbert/opt/anaconda3/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__ return await self.app(scope, receive, send) File "/Users/saragilbert/opt/anaconda3/lib/python3.9/site-packages/fastapi/applications.py", line 269, in __call__ await super().__call__(scope, receive, send) File "/Users/saragilbert/opt/anaconda3/lib/python3.9/site-packages/starlette/applications.py", line 124, in __call__ await self.middleware_stack(scope, receive, send) File "/Users/saragilbert/opt/anaconda3/lib/python3.9/site-packages/starlette/middleware/errors.py", line 184, in __call__ raise exc File "/Users/saragilbert/opt/anaconda3/lib/python3.9/site-packages/starlette/middleware/errors.py", line 162, in __call__ await self.app(scope, receive, _send) File "/Users/saragilbert/opt/anaconda3/lib/python3.9/site-packages/starlette/exceptions.py", line 93, in __call__ raise exc File "/Users/saragilbert/opt/anaconda3/lib/python3.9/site-packages/starlette/exceptions.py", line 82, in __call__ await self.app(scope, receive, sender) File "/Users/saragilbert/opt/anaconda3/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__ raise e File "/Users/saragilbert/opt/anaconda3/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__ await self.app(scope, receive, send) File "/Users/saragilbert/opt/anaconda3/lib/python3.9/site-packages/starlette/routing.py", line 670, in __call__ await route.handle(scope, receive, send) File "/Users/saragilbert/opt/anaconda3/lib/python3.9/site-packages/starlette/routing.py", line 266, in handle await self.app(scope, receive, send) File "/Users/saragilbert/opt/anaconda3/lib/python3.9/site-packages/starlette/routing.py", line 65, in app response = await func(request) File "/Users/saragilbert/opt/anaconda3/lib/python3.9/site-packages/fastapi/routing.py", line 231, in app raw_response = await run_endpoint_function( File "/Users/saragilbert/opt/anaconda3/lib/python3.9/site-packages/fastapi/routing.py", line 160, in run_endpoint_function return await dependant.call(**values) File "/Users/saragilbert/opt/anaconda3/lib/python3.9/site-packages/qtci_bin/onboarding_web.py", line 98, in check_project return route_response(data, dt_json, status_code) File "/Users/saragilbert/opt/anaconda3/lib/python3.9/site-packages/qtci_bin/onboarding_web.py", line 240, in route_response return JSONResponse(content=data, status_code=status) File "/Users/saragilbert/opt/anaconda3/lib/python3.9/site-packages/starlette/responses.py", line 187, in __init__ super().__init__(content, status_code, headers, media_type, background) File "/Users/saragilbert/opt/anaconda3/lib/python3.9/site-packages/starlette/responses.py", line 49, in __init__ self.body = self.render(content) File "/Users/saragilbert/opt/anaconda3/lib/python3.9/site-packages/starlette/responses.py", line 190, in render return json.dumps( File "/Users/saragilbert/opt/anaconda3/lib/python3.9/json/__init__.py", line 234, in dumps return cls( File "/Users/saragilbert/opt/anaconda3/lib/python3.9/json/encoder.py", line 199, in encode chunks = self.iterencode(o, _one_shot=True) File "/Users/saragilbert/opt/anaconda3/lib/python3.9/json/encoder.py", line 257, in iterencode return _iterencode(o, 0) File "/Users/saragilbert/opt/anaconda3/lib/python3.9/json/encoder.py", line 179, in default raise TypeError(f'Object of type {o.__class__.__name__} ' TypeError: Object of type bytes is not JSON serializable INFO: 127.0.0.1:62405 - "GET / HTTP/1.1" 200 OK INFO: 127.0.0.1:62406 - "POST /api/qt/check_licence HTTP/1.1" 200 OK INFO: 127.0.0.1:62409 - "POST /api/gitlab/check_credentials HTTP/1.1" 200 OK INFO: 127.0.0.1:62411 - "POST /api/gitlab/check_project HTTP/1.1" 200 OK INFO: 127.0.0.1:62413 - "GET / HTTP/1.1" 200 OK INFO: 127.0.0.1:62413 - "POST /api/qt/check_licence HTTP/1.1" 200 OK INFO: 127.0.0.1:62413 - "POST /api/gitlab/check_credentials HTTP/1.1" 200 OK INFO: 127.0.0.1:62414 - "POST /api/gitlab/check_project HTTP/1.1" 200 OK [ INFO]: Checking ngrok token by creating a tunnel [ INFO]: Starting NGROK validation [ INFO]: Tunnel creation: OK [ INFO]: Ngrok configuration: OK INFO: 127.0.0.1:62414 - "POST /api/ngrok/check_token HTTP/1.1" 200 OK