Advertisement
ayya-vimala

Untitled

Sep 22nd, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.08 KB | None | 0 0
  1. fastapi | AttributeError: 'NoneType' object has no attribute 'group'
  2. fastapi | INFO: ('172.18.0.1', 45296) - "GET /files/dn11/segments?score=50&co_occ=2000&par_length=50 HTTP/1.1" 500
  3. fastapi | ERROR: Exception in ASGI application
  4. fastapi | Traceback (most recent call last):
  5. fastapi | File "/usr/local/lib/python3.7/site-packages/uvicorn/protocols/http/httptools_impl.py", line 375, in run_asgi
  6. fastapi | result = await app(self.scope, self.receive, self.send)
  7. fastapi | File "/usr/local/lib/python3.7/site-packages/starlette/applications.py", line 133, in __call__
  8. fastapi | await self.error_middleware(scope, receive, send)
  9. fastapi | File "/usr/local/lib/python3.7/site-packages/starlette/middleware/errors.py", line 177, in __call__
  10. fastapi | raise exc from None
  11. fastapi | File "/usr/local/lib/python3.7/site-packages/starlette/middleware/errors.py", line 155, in __call__
  12. fastapi | await self.app(scope, receive, _send)
  13. fastapi | File "/usr/local/lib/python3.7/site-packages/starlette/middleware/cors.py", line 84, in __call__
  14. fastapi | await self.simple_response(scope, receive, send, request_headers=headers)
  15. fastapi | File "/usr/local/lib/python3.7/site-packages/starlette/middleware/cors.py", line 140, in simple_response
  16. fastapi | await self.app(scope, receive, send)
  17. fastapi | File "/usr/local/lib/python3.7/site-packages/starlette/exceptions.py", line 73, in __call__
  18. fastapi | raise exc from None
  19. fastapi | File "/usr/local/lib/python3.7/site-packages/starlette/exceptions.py", line 62, in __call__
  20. fastapi | await self.app(scope, receive, sender)
  21. fastapi | File "/usr/local/lib/python3.7/site-packages/starlette/routing.py", line 592, in __call__
  22. fastapi | await route(scope, receive, send)
  23. fastapi | File "/usr/local/lib/python3.7/site-packages/starlette/routing.py", line 208, in __call__
  24. fastapi | await self.app(scope, receive, send)
  25. fastapi | File "/usr/local/lib/python3.7/site-packages/starlette/routing.py", line 41, in app
  26. fastapi | response = await func(request)
  27. fastapi | File "/usr/local/lib/python3.7/site-packages/fastapi/routing.py", line 109, in app
  28. fastapi | raw_response = await dependant.call(**values)
  29. fastapi | File "./api/main.py", line 91, in get_segments_for_file
  30. fastapi | collection_key = re.search(r"^[A-Z]+[0-9]+", seg_nr).group()
  31. fastapi | AttributeError: 'NoneType' object has no attribute 'group'
  32. fastapi | INFO: ('172.18.0.1', 46014) - "GET /files/dn1/segments?score=50&co_occ=2000&par_length=50 HTTP/1.1" 500
  33. fastapi | ERROR: Exception in ASGI application
  34. fastapi | Traceback (most recent call last):
  35. fastapi | File "/usr/local/lib/python3.7/site-packages/uvicorn/protocols/http/httptools_impl.py", line 375, in run_asgi
  36. fastapi | result = await app(self.scope, self.receive, self.send)
  37. fastapi | File "/usr/local/lib/python3.7/site-packages/starlette/applications.py", line 133, in __call__
  38. fastapi | await self.error_middleware(scope, receive, send)
  39. fastapi | File "/usr/local/lib/python3.7/site-packages/starlette/middleware/errors.py", line 177, in __call__
  40. fastapi | raise exc from None
  41. fastapi | File "/usr/local/lib/python3.7/site-packages/starlette/middleware/errors.py", line 155, in __call__
  42. fastapi | await self.app(scope, receive, _send)
  43. fastapi | File "/usr/local/lib/python3.7/site-packages/starlette/middleware/cors.py", line 84, in __call__
  44. fastapi | await self.simple_response(scope, receive, send, request_headers=headers)
  45. fastapi | File "/usr/local/lib/python3.7/site-packages/starlette/middleware/cors.py", line 140, in simple_response
  46. fastapi | await self.app(scope, receive, send)
  47. fastapi | File "/usr/local/lib/python3.7/site-packages/starlette/exceptions.py", line 73, in __call__
  48. fastapi | raise exc from None
  49. fastapi | File "/usr/local/lib/python3.7/site-packages/starlette/exceptions.py", line 62, in __call__
  50. fastapi | await self.app(scope, receive, sender)
  51. fastapi | File "/usr/local/lib/python3.7/site-packages/starlette/routing.py", line 592, in __call__
  52. fastapi | await route(scope, receive, send)
  53. fastapi | File "/usr/local/lib/python3.7/site-packages/starlette/routing.py", line 208, in __call__
  54. fastapi | await self.app(scope, receive, send)
  55. fastapi | File "/usr/local/lib/python3.7/site-packages/starlette/routing.py", line 41, in app
  56. fastapi | response = await func(request)
  57. fastapi | File "/usr/local/lib/python3.7/site-packages/fastapi/routing.py", line 109, in app
  58. fastapi | raw_response = await dependant.call(**values)
  59. fastapi | File "./api/main.py", line 91, in get_segments_for_file
  60. fastapi | collection_key = re.search(r"^[A-Z]+[0-9]+", seg_nr).group()
  61. fastapi | AttributeError: 'NoneType' object has no attribute 'group'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement