Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fastapi | AttributeError: 'NoneType' object has no attribute 'group'
- fastapi | INFO: ('172.18.0.1', 45296) - "GET /files/dn11/segments?score=50&co_occ=2000&par_length=50 HTTP/1.1" 500
- fastapi | ERROR: Exception in ASGI application
- fastapi | Traceback (most recent call last):
- fastapi | File "/usr/local/lib/python3.7/site-packages/uvicorn/protocols/http/httptools_impl.py", line 375, in run_asgi
- fastapi | result = await app(self.scope, self.receive, self.send)
- fastapi | File "/usr/local/lib/python3.7/site-packages/starlette/applications.py", line 133, in __call__
- fastapi | await self.error_middleware(scope, receive, send)
- fastapi | File "/usr/local/lib/python3.7/site-packages/starlette/middleware/errors.py", line 177, in __call__
- fastapi | raise exc from None
- fastapi | File "/usr/local/lib/python3.7/site-packages/starlette/middleware/errors.py", line 155, in __call__
- fastapi | await self.app(scope, receive, _send)
- fastapi | File "/usr/local/lib/python3.7/site-packages/starlette/middleware/cors.py", line 84, in __call__
- fastapi | await self.simple_response(scope, receive, send, request_headers=headers)
- fastapi | File "/usr/local/lib/python3.7/site-packages/starlette/middleware/cors.py", line 140, in simple_response
- fastapi | await self.app(scope, receive, send)
- fastapi | File "/usr/local/lib/python3.7/site-packages/starlette/exceptions.py", line 73, in __call__
- fastapi | raise exc from None
- fastapi | File "/usr/local/lib/python3.7/site-packages/starlette/exceptions.py", line 62, in __call__
- fastapi | await self.app(scope, receive, sender)
- fastapi | File "/usr/local/lib/python3.7/site-packages/starlette/routing.py", line 592, in __call__
- fastapi | await route(scope, receive, send)
- fastapi | File "/usr/local/lib/python3.7/site-packages/starlette/routing.py", line 208, in __call__
- fastapi | await self.app(scope, receive, send)
- fastapi | File "/usr/local/lib/python3.7/site-packages/starlette/routing.py", line 41, in app
- fastapi | response = await func(request)
- fastapi | File "/usr/local/lib/python3.7/site-packages/fastapi/routing.py", line 109, in app
- fastapi | raw_response = await dependant.call(**values)
- fastapi | File "./api/main.py", line 91, in get_segments_for_file
- fastapi | collection_key = re.search(r"^[A-Z]+[0-9]+", seg_nr).group()
- fastapi | AttributeError: 'NoneType' object has no attribute 'group'
- fastapi | INFO: ('172.18.0.1', 46014) - "GET /files/dn1/segments?score=50&co_occ=2000&par_length=50 HTTP/1.1" 500
- fastapi | ERROR: Exception in ASGI application
- fastapi | Traceback (most recent call last):
- fastapi | File "/usr/local/lib/python3.7/site-packages/uvicorn/protocols/http/httptools_impl.py", line 375, in run_asgi
- fastapi | result = await app(self.scope, self.receive, self.send)
- fastapi | File "/usr/local/lib/python3.7/site-packages/starlette/applications.py", line 133, in __call__
- fastapi | await self.error_middleware(scope, receive, send)
- fastapi | File "/usr/local/lib/python3.7/site-packages/starlette/middleware/errors.py", line 177, in __call__
- fastapi | raise exc from None
- fastapi | File "/usr/local/lib/python3.7/site-packages/starlette/middleware/errors.py", line 155, in __call__
- fastapi | await self.app(scope, receive, _send)
- fastapi | File "/usr/local/lib/python3.7/site-packages/starlette/middleware/cors.py", line 84, in __call__
- fastapi | await self.simple_response(scope, receive, send, request_headers=headers)
- fastapi | File "/usr/local/lib/python3.7/site-packages/starlette/middleware/cors.py", line 140, in simple_response
- fastapi | await self.app(scope, receive, send)
- fastapi | File "/usr/local/lib/python3.7/site-packages/starlette/exceptions.py", line 73, in __call__
- fastapi | raise exc from None
- fastapi | File "/usr/local/lib/python3.7/site-packages/starlette/exceptions.py", line 62, in __call__
- fastapi | await self.app(scope, receive, sender)
- fastapi | File "/usr/local/lib/python3.7/site-packages/starlette/routing.py", line 592, in __call__
- fastapi | await route(scope, receive, send)
- fastapi | File "/usr/local/lib/python3.7/site-packages/starlette/routing.py", line 208, in __call__
- fastapi | await self.app(scope, receive, send)
- fastapi | File "/usr/local/lib/python3.7/site-packages/starlette/routing.py", line 41, in app
- fastapi | response = await func(request)
- fastapi | File "/usr/local/lib/python3.7/site-packages/fastapi/routing.py", line 109, in app
- fastapi | raw_response = await dependant.call(**values)
- fastapi | File "./api/main.py", line 91, in get_segments_for_file
- fastapi | collection_key = re.search(r"^[A-Z]+[0-9]+", seg_nr).group()
- fastapi | AttributeError: 'NoneType' object has no attribute 'group'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement