Server error raised in webhook in the app
```
0|datasets-preview-backend         | INFO: 2021-10-27 08:44:44,092 - datasets_preview_backend.routes.webhook - /webhook: {'add': 'datasets/yuvalkirstain/asset'}
0|datasets-preview-backend         | INFO: 2021-10-27 08:44:44,118 - datasets_preview_backend.routes.webhook - /webhook: {'add': 'datasets/yuvalkirstain/asset'}
0|datasets-preview-backend         | INFO: 2021-10-27 08:44:44,118 - datasets_preview_backend.routes.webhook - /webhook: {'add': 'datasets/yuvalkirstain/asset'}
0|datasets-preview-backend         | INFO: 2021-10-27 08:44:44,125 - datasets_preview_backend.routes.webhook - /webhook: {'add': 'datasets/yuvalkirstain/asset'}
0|datasets-preview-backend         | INFO:     172.30.0.55:0 - "POST /webhook HTTP/1.1" 200 OK
0|datasets-preview-backend         | INFO:     172.30.0.55:0 - "POST /webhook HTTP/1.1" 200 OK
0|datasets-preview-backend         | INFO: 2021-10-27 08:44:44,202 - datasets_preview_backend.routes.webhook - /webhook: {'add': 'datasets/yuvalkirstain/asset'}
0|datasets-preview-backend         | INFO:     172.30.0.55:0 - "POST /webhook HTTP/1.1" 200 OK
0|datasets-preview-backend         | INFO: 2021-10-27 08:44:44,205 - datasets_preview_backend.routes.webhook - /webhook: {'add': 'datasets/yuvalkirstain/asset'}
0|datasets-preview-backend         | INFO:     172.30.0.55:0 - "POST /webhook HTTP/1.1" 500 Internal Server Error
0|datasets-preview-backend         | INFO:     172.30.0.55:0 - "POST /webhook HTTP/1.1" 500 Internal Server Error
0|datasets-preview-backend         | INFO:     172.30.0.55:0 - "POST /webhook HTTP/1.1" 200 OK
0|datasets-preview-backend         | ERROR:    Exception in ASGI application
0|datasets-preview-backend         | Traceback (most recent call last):
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 369, in run_asgi
0|datasets-preview-backend         |     result = await app(self.scope, self.receive, self.send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 59, in __call__
0|datasets-preview-backend         |     return await self.app(scope, receive, send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/applications.py", line 112, in __call__
0|datasets-preview-backend         |     await self.middleware_stack(scope, receive, send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/middleware/errors.py", line 181, in __call__
0|datasets-preview-backend         |     raise exc
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/middleware/errors.py", line 159, in __call__
0|datasets-preview-backend         |     await self.app(scope, receive, _send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/middleware/gzip.py", line 23, in __call__
0|datasets-preview-backend         |     await responder(scope, receive, send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/middleware/gzip.py", line 42, in __call__
0|datasets-preview-backend         |     await self.app(scope, receive, self.send_with_gzip)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/exceptions.py", line 82, in __call__
0|datasets-preview-backend         |     raise exc
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/exceptions.py", line 71, in __call__
0|datasets-preview-backend         |     await self.app(scope, receive, sender)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/routing.py", line 656, in __call__
0|datasets-preview-backend         |     await route.handle(scope, receive, send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/routing.py", line 259, in handle
0|datasets-preview-backend         |     await self.app(scope, receive, send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/routing.py", line 61, in app
0|datasets-preview-backend         |     response = await func(request)
0|datasets-preview-backend         |   File "/home/hf/datasets-preview-backend/src/datasets_preview_backend/routes/webhook.py", line 79, in webhook_endpoint
0|datasets-preview-backend         |     process_payload(payload)
0|datasets-preview-backend         |   File "/home/hf/datasets-preview-backend/src/datasets_preview_backend/routes/webhook.py", line 61, in process_payload
0|datasets-preview-backend         |     try_to_update(payload["add"])
0|datasets-preview-backend         |   File "/home/hf/datasets-preview-backend/src/datasets_preview_backend/routes/webhook.py", line 50, in try_to_update
0|datasets-preview-backend         |     add_job(dataset_name)
0|datasets-preview-backend         |   File "/home/hf/datasets-preview-backend/src/datasets_preview_backend/io/queue.py", line 89, in add_job
0|datasets-preview-backend         |     Job.objects(dataset_name=dataset_name, finished_at=None).get()
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/mongoengine/queryset/base.py", line 278, in get
0|datasets-preview-backend         |     raise queryset._document.MultipleObjectsReturned(
0|datasets-preview-backend         | datasets_preview_backend.io.queue.MultipleObjectsReturned: 2 or more items returned, instead of 1
0|datasets-preview-backend         | ERROR:    Exception in ASGI application
0|datasets-preview-backend         | Traceback (most recent call last):
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 369, in run_asgi
0|datasets-preview-backend         |     result = await app(self.scope, self.receive, self.send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 59, in __call__
0|datasets-preview-backend         |     return await self.app(scope, receive, send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/applications.py", line 112, in __call__
0|datasets-preview-backend         |     await self.middleware_stack(scope, receive, send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/middleware/errors.py", line 181, in __call__
0|datasets-preview-backend         |     raise exc
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/middleware/errors.py", line 159, in __call__
0|datasets-preview-backend         |     await self.app(scope, receive, _send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/middleware/gzip.py", line 23, in __call__
0|datasets-preview-backend         |     await responder(scope, receive, send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/middleware/gzip.py", line 42, in __call__
0|datasets-preview-backend         |     await self.app(scope, receive, self.send_with_gzip)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/exceptions.py", line 82, in __call__
0|datasets-preview-backend         |     raise exc
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/exceptions.py", line 71, in __call__
0|datasets-preview-backend         |     await self.app(scope, receive, sender)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/routing.py", line 656, in __call__
0|datasets-preview-backend         |     await route.handle(scope, receive, send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/routing.py", line 259, in handle
0|datasets-preview-backend         |     await self.app(scope, receive, send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/routing.py", line 61, in app
0|datasets-preview-backend         |     response = await func(request)
0|datasets-preview-backend         |   File "/home/hf/datasets-preview-backend/src/datasets_preview_backend/routes/webhook.py", line 79, in webhook_endpoint
0|datasets-preview-backend         |     process_payload(payload)
0|datasets-preview-backend         |   File "/home/hf/datasets-preview-backend/src/datasets_preview_backend/routes/webhook.py", line 61, in process_payload
0|datasets-preview-backend         |     try_to_update(payload["add"])
0|datasets-preview-backend         |   File "/home/hf/datasets-preview-backend/src/datasets_preview_backend/routes/webhook.py", line 50, in try_to_update
0|datasets-preview-backend         |     add_job(dataset_name)
0|datasets-preview-backend         |   File "/home/hf/datasets-preview-backend/src/datasets_preview_backend/io/queue.py", line 89, in add_job
0|datasets-preview-backend         |     Job.objects(dataset_name=dataset_name, finished_at=None).get()
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/mongoengine/queryset/base.py", line 278, in get
0|datasets-preview-backend         |     raise queryset._document.MultipleObjectsReturned(
0|datasets-preview-backend         | datasets_preview_backend.io.queue.MultipleObjectsReturned: 2 or more items returned, instead of 1
0|datasets-preview-backend         | INFO: 2021-10-27 08:44:44,350 - datasets_preview_backend.routes.webhook - /webhook: {'add': 'datasets/yuvalkirstain/asset'}
0|datasets-preview-backend         | INFO:     172.30.0.55:0 - "POST /webhook HTTP/1.1" 500 Internal Server Error
0|datasets-preview-backend         | ERROR:    Exception in ASGI application
0|datasets-preview-backend         | Traceback (most recent call last):
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 369, in run_asgi
0|datasets-preview-backend         |     result = await app(self.scope, self.receive, self.send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 59, in __call__
0|datasets-preview-backend         |     return await self.app(scope, receive, send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/applications.py", line 112, in __call__
0|datasets-preview-backend         |     await self.middleware_stack(scope, receive, send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/middleware/errors.py", line 181, in __call__
0|datasets-preview-backend         |     raise exc
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/middleware/errors.py", line 159, in __call__
0|datasets-preview-backend         |     await self.app(scope, receive, _send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/middleware/gzip.py", line 23, in __call__
0|datasets-preview-backend         |     await responder(scope, receive, send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/middleware/gzip.py", line 42, in __call__
0|datasets-preview-backend         |     await self.app(scope, receive, self.send_with_gzip)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/exceptions.py", line 82, in __call__
0|datasets-preview-backend         |     raise exc
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/exceptions.py", line 71, in __call__
0|datasets-preview-backend         |     await self.app(scope, receive, sender)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/routing.py", line 656, in __call__
0|datasets-preview-backend         |     await route.handle(scope, receive, send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/routing.py", line 259, in handle
0|datasets-preview-backend         |     await self.app(scope, receive, send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/routing.py", line 61, in app
0|datasets-preview-backend         |     response = await func(request)
0|datasets-preview-backend         |   File "/home/hf/datasets-preview-backend/src/datasets_preview_backend/routes/webhook.py", line 79, in webhook_endpoint
0|datasets-preview-backend         |     process_payload(payload)
0|datasets-preview-backend         |   File "/home/hf/datasets-preview-backend/src/datasets_preview_backend/routes/webhook.py", line 61, in process_payload
0|datasets-preview-backend         |     try_to_update(payload["add"])
0|datasets-preview-backend         |   File "/home/hf/datasets-preview-backend/src/datasets_preview_backend/routes/webhook.py", line 50, in try_to_update
0|datasets-preview-backend         |     add_job(dataset_name)
0|datasets-preview-backend         |   File "/home/hf/datasets-preview-backend/src/datasets_preview_backend/io/queue.py", line 89, in add_job
0|datasets-preview-backend         |     Job.objects(dataset_name=dataset_name, finished_at=None).get()
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/mongoengine/queryset/base.py", line 278, in get
0|datasets-preview-backend         |     raise queryset._document.MultipleObjectsReturned(
0|datasets-preview-backend         | datasets_preview_backend.io.queue.MultipleObjectsReturned: 2 or more items returned, instead of 1
0|datasets-preview-backend         | INFO: 2021-10-27 08:44:44,355 - datasets_preview_backend.routes.webhook - /webhook: {'add': 'datasets/yuvalkirstain/asset'}
0|datasets-preview-backend         | ERROR:    Exception in ASGI application
0|datasets-preview-backend         | Traceback (most recent call last):
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 369, in run_asgi
0|datasets-preview-backend         |     result = await app(self.scope, self.receive, self.send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 59, in __call__
0|datasets-preview-backend         |     return await self.app(scope, receive, send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/applications.py", line 112, in __call__
0|datasets-preview-backend         |     await self.middleware_stack(scope, receive, send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/middleware/errors.py", line 181, in __call__
0|datasets-preview-backend         |     raise exc
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/middleware/errors.py", line 159, in __call__
0|datasets-preview-backend         |     await self.app(scope, receive, _send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/middleware/gzip.py", line 23, in __call__
0|datasets-preview-backend         |     await responder(scope, receive, send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/middleware/gzip.py", line 42, in __call__
0|datasets-preview-backend         |     await self.app(scope, receive, self.send_with_gzip)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/exceptions.py", line 82, in __call__
0|datasets-preview-backend         |     raise exc
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/exceptions.py", line 71, in __call__
0|datasets-preview-backend         |     await self.app(scope, receive, sender)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/routing.py", line 656, in __call__
0|datasets-preview-backend         |     await route.handle(scope, receive, send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/routing.py", line 259, in handle
0|datasets-preview-backend         |     await self.app(scope, receive, send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/routing.py", line 61, in app
0|datasets-preview-backend         |     response = await func(request)
0|datasets-preview-backend         |   File "/home/hf/datasets-preview-backend/src/datasets_preview_backend/routes/webhook.py", line 79, in webhook_endpoint
0|datasets-preview-backend         |     process_payload(payload)
0|datasets-preview-backend         |   File "/home/hf/datasets-preview-backend/src/datasets_preview_backend/routes/webhook.py", line 61, in process_payload
0|datasets-preview-backend         |     try_to_update(payload["add"])
0|datasets-preview-backend         |   File "/home/hf/datasets-preview-backend/src/datasets_preview_backend/routes/webhook.py", line 50, in try_to_update
0|datasets-preview-backend         |     add_job(dataset_name)
0|datasets-preview-backend         |   File "/home/hf/datasets-preview-backend/src/datasets_preview_backend/io/queue.py", line 89, in add_job
0|datasets-preview-backend         |     Job.objects(dataset_name=dataset_name, finished_at=None).get()
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/mongoengine/queryset/base.py", line 278, in get
0|datasets-preview-backend         |     raise queryset._document.MultipleObjectsReturned(
0|datasets-preview-backend         | datasets_preview_backend.io.queue.MultipleObjectsReturned: 2 or more items returned, instead of 1
0|datasets-preview-backend         | INFO:     172.30.0.55:0 - "POST /webhook HTTP/1.1" 500 Internal Server Error
```
Server error raised in webhook in the app: ```
0|datasets-preview-backend         | INFO: 2021-10-27 08:44:44,092 - datasets_preview_backend.routes.webhook - /webhook: {'add': 'datasets/yuvalkirstain/asset'}
0|datasets-preview-backend         | INFO: 2021-10-27 08:44:44,118 - datasets_preview_backend.routes.webhook - /webhook: {'add': 'datasets/yuvalkirstain/asset'}
0|datasets-preview-backend         | INFO: 2021-10-27 08:44:44,118 - datasets_preview_backend.routes.webhook - /webhook: {'add': 'datasets/yuvalkirstain/asset'}
0|datasets-preview-backend         | INFO: 2021-10-27 08:44:44,125 - datasets_preview_backend.routes.webhook - /webhook: {'add': 'datasets/yuvalkirstain/asset'}
0|datasets-preview-backend         | INFO:     172.30.0.55:0 - "POST /webhook HTTP/1.1" 200 OK
0|datasets-preview-backend         | INFO:     172.30.0.55:0 - "POST /webhook HTTP/1.1" 200 OK
0|datasets-preview-backend         | INFO: 2021-10-27 08:44:44,202 - datasets_preview_backend.routes.webhook - /webhook: {'add': 'datasets/yuvalkirstain/asset'}
0|datasets-preview-backend         | INFO:     172.30.0.55:0 - "POST /webhook HTTP/1.1" 200 OK
0|datasets-preview-backend         | INFO: 2021-10-27 08:44:44,205 - datasets_preview_backend.routes.webhook - /webhook: {'add': 'datasets/yuvalkirstain/asset'}
0|datasets-preview-backend         | INFO:     172.30.0.55:0 - "POST /webhook HTTP/1.1" 500 Internal Server Error
0|datasets-preview-backend         | INFO:     172.30.0.55:0 - "POST /webhook HTTP/1.1" 500 Internal Server Error
0|datasets-preview-backend         | INFO:     172.30.0.55:0 - "POST /webhook HTTP/1.1" 200 OK
0|datasets-preview-backend         | ERROR:    Exception in ASGI application
0|datasets-preview-backend         | Traceback (most recent call last):
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 369, in run_asgi
0|datasets-preview-backend         |     result = await app(self.scope, self.receive, self.send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 59, in __call__
0|datasets-preview-backend         |     return await self.app(scope, receive, send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/applications.py", line 112, in __call__
0|datasets-preview-backend         |     await self.middleware_stack(scope, receive, send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/middleware/errors.py", line 181, in __call__
0|datasets-preview-backend         |     raise exc
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/middleware/errors.py", line 159, in __call__
0|datasets-preview-backend         |     await self.app(scope, receive, _send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/middleware/gzip.py", line 23, in __call__
0|datasets-preview-backend         |     await responder(scope, receive, send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/middleware/gzip.py", line 42, in __call__
0|datasets-preview-backend         |     await self.app(scope, receive, self.send_with_gzip)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/exceptions.py", line 82, in __call__
0|datasets-preview-backend         |     raise exc
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/exceptions.py", line 71, in __call__
0|datasets-preview-backend         |     await self.app(scope, receive, sender)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/routing.py", line 656, in __call__
0|datasets-preview-backend         |     await route.handle(scope, receive, send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/routing.py", line 259, in handle
0|datasets-preview-backend         |     await self.app(scope, receive, send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/routing.py", line 61, in app
0|datasets-preview-backend         |     response = await func(request)
0|datasets-preview-backend         |   File "/home/hf/datasets-preview-backend/src/datasets_preview_backend/routes/webhook.py", line 79, in webhook_endpoint
0|datasets-preview-backend         |     process_payload(payload)
0|datasets-preview-backend         |   File "/home/hf/datasets-preview-backend/src/datasets_preview_backend/routes/webhook.py", line 61, in process_payload
0|datasets-preview-backend         |     try_to_update(payload["add"])
0|datasets-preview-backend         |   File "/home/hf/datasets-preview-backend/src/datasets_preview_backend/routes/webhook.py", line 50, in try_to_update
0|datasets-preview-backend         |     add_job(dataset_name)
0|datasets-preview-backend         |   File "/home/hf/datasets-preview-backend/src/datasets_preview_backend/io/queue.py", line 89, in add_job
0|datasets-preview-backend         |     Job.objects(dataset_name=dataset_name, finished_at=None).get()
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/mongoengine/queryset/base.py", line 278, in get
0|datasets-preview-backend         |     raise queryset._document.MultipleObjectsReturned(
0|datasets-preview-backend         | datasets_preview_backend.io.queue.MultipleObjectsReturned: 2 or more items returned, instead of 1
0|datasets-preview-backend         | ERROR:    Exception in ASGI application
0|datasets-preview-backend         | Traceback (most recent call last):
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 369, in run_asgi
0|datasets-preview-backend         |     result = await app(self.scope, self.receive, self.send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 59, in __call__
0|datasets-preview-backend         |     return await self.app(scope, receive, send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/applications.py", line 112, in __call__
0|datasets-preview-backend         |     await self.middleware_stack(scope, receive, send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/middleware/errors.py", line 181, in __call__
0|datasets-preview-backend         |     raise exc
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/middleware/errors.py", line 159, in __call__
0|datasets-preview-backend         |     await self.app(scope, receive, _send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/middleware/gzip.py", line 23, in __call__
0|datasets-preview-backend         |     await responder(scope, receive, send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/middleware/gzip.py", line 42, in __call__
0|datasets-preview-backend         |     await self.app(scope, receive, self.send_with_gzip)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/exceptions.py", line 82, in __call__
0|datasets-preview-backend         |     raise exc
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/exceptions.py", line 71, in __call__
0|datasets-preview-backend         |     await self.app(scope, receive, sender)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/routing.py", line 656, in __call__
0|datasets-preview-backend         |     await route.handle(scope, receive, send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/routing.py", line 259, in handle
0|datasets-preview-backend         |     await self.app(scope, receive, send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/routing.py", line 61, in app
0|datasets-preview-backend         |     response = await func(request)
0|datasets-preview-backend         |   File "/home/hf/datasets-preview-backend/src/datasets_preview_backend/routes/webhook.py", line 79, in webhook_endpoint
0|datasets-preview-backend         |     process_payload(payload)
0|datasets-preview-backend         |   File "/home/hf/datasets-preview-backend/src/datasets_preview_backend/routes/webhook.py", line 61, in process_payload
0|datasets-preview-backend         |     try_to_update(payload["add"])
0|datasets-preview-backend         |   File "/home/hf/datasets-preview-backend/src/datasets_preview_backend/routes/webhook.py", line 50, in try_to_update
0|datasets-preview-backend         |     add_job(dataset_name)
0|datasets-preview-backend         |   File "/home/hf/datasets-preview-backend/src/datasets_preview_backend/io/queue.py", line 89, in add_job
0|datasets-preview-backend         |     Job.objects(dataset_name=dataset_name, finished_at=None).get()
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/mongoengine/queryset/base.py", line 278, in get
0|datasets-preview-backend         |     raise queryset._document.MultipleObjectsReturned(
0|datasets-preview-backend         | datasets_preview_backend.io.queue.MultipleObjectsReturned: 2 or more items returned, instead of 1
0|datasets-preview-backend         | INFO: 2021-10-27 08:44:44,350 - datasets_preview_backend.routes.webhook - /webhook: {'add': 'datasets/yuvalkirstain/asset'}
0|datasets-preview-backend         | INFO:     172.30.0.55:0 - "POST /webhook HTTP/1.1" 500 Internal Server Error
0|datasets-preview-backend         | ERROR:    Exception in ASGI application
0|datasets-preview-backend         | Traceback (most recent call last):
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 369, in run_asgi
0|datasets-preview-backend         |     result = await app(self.scope, self.receive, self.send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 59, in __call__
0|datasets-preview-backend         |     return await self.app(scope, receive, send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/applications.py", line 112, in __call__
0|datasets-preview-backend         |     await self.middleware_stack(scope, receive, send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/middleware/errors.py", line 181, in __call__
0|datasets-preview-backend         |     raise exc
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/middleware/errors.py", line 159, in __call__
0|datasets-preview-backend         |     await self.app(scope, receive, _send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/middleware/gzip.py", line 23, in __call__
0|datasets-preview-backend         |     await responder(scope, receive, send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/middleware/gzip.py", line 42, in __call__
0|datasets-preview-backend         |     await self.app(scope, receive, self.send_with_gzip)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/exceptions.py", line 82, in __call__
0|datasets-preview-backend         |     raise exc
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/exceptions.py", line 71, in __call__
0|datasets-preview-backend         |     await self.app(scope, receive, sender)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/routing.py", line 656, in __call__
0|datasets-preview-backend         |     await route.handle(scope, receive, send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/routing.py", line 259, in handle
0|datasets-preview-backend         |     await self.app(scope, receive, send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/routing.py", line 61, in app
0|datasets-preview-backend         |     response = await func(request)
0|datasets-preview-backend         |   File "/home/hf/datasets-preview-backend/src/datasets_preview_backend/routes/webhook.py", line 79, in webhook_endpoint
0|datasets-preview-backend         |     process_payload(payload)
0|datasets-preview-backend         |   File "/home/hf/datasets-preview-backend/src/datasets_preview_backend/routes/webhook.py", line 61, in process_payload
0|datasets-preview-backend         |     try_to_update(payload["add"])
0|datasets-preview-backend         |   File "/home/hf/datasets-preview-backend/src/datasets_preview_backend/routes/webhook.py", line 50, in try_to_update
0|datasets-preview-backend         |     add_job(dataset_name)
0|datasets-preview-backend         |   File "/home/hf/datasets-preview-backend/src/datasets_preview_backend/io/queue.py", line 89, in add_job
0|datasets-preview-backend         |     Job.objects(dataset_name=dataset_name, finished_at=None).get()
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/mongoengine/queryset/base.py", line 278, in get
0|datasets-preview-backend         |     raise queryset._document.MultipleObjectsReturned(
0|datasets-preview-backend         | datasets_preview_backend.io.queue.MultipleObjectsReturned: 2 or more items returned, instead of 1
0|datasets-preview-backend         | INFO: 2021-10-27 08:44:44,355 - datasets_preview_backend.routes.webhook - /webhook: {'add': 'datasets/yuvalkirstain/asset'}
0|datasets-preview-backend         | ERROR:    Exception in ASGI application
0|datasets-preview-backend         | Traceback (most recent call last):
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 369, in run_asgi
0|datasets-preview-backend         |     result = await app(self.scope, self.receive, self.send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 59, in __call__
0|datasets-preview-backend         |     return await self.app(scope, receive, send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/applications.py", line 112, in __call__
0|datasets-preview-backend         |     await self.middleware_stack(scope, receive, send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/middleware/errors.py", line 181, in __call__
0|datasets-preview-backend         |     raise exc
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/middleware/errors.py", line 159, in __call__
0|datasets-preview-backend         |     await self.app(scope, receive, _send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/middleware/gzip.py", line 23, in __call__
0|datasets-preview-backend         |     await responder(scope, receive, send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/middleware/gzip.py", line 42, in __call__
0|datasets-preview-backend         |     await self.app(scope, receive, self.send_with_gzip)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/exceptions.py", line 82, in __call__
0|datasets-preview-backend         |     raise exc
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/exceptions.py", line 71, in __call__
0|datasets-preview-backend         |     await self.app(scope, receive, sender)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/routing.py", line 656, in __call__
0|datasets-preview-backend         |     await route.handle(scope, receive, send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/routing.py", line 259, in handle
0|datasets-preview-backend         |     await self.app(scope, receive, send)
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/starlette/routing.py", line 61, in app
0|datasets-preview-backend         |     response = await func(request)
0|datasets-preview-backend         |   File "/home/hf/datasets-preview-backend/src/datasets_preview_backend/routes/webhook.py", line 79, in webhook_endpoint
0|datasets-preview-backend         |     process_payload(payload)
0|datasets-preview-backend         |   File "/home/hf/datasets-preview-backend/src/datasets_preview_backend/routes/webhook.py", line 61, in process_payload
0|datasets-preview-backend         |     try_to_update(payload["add"])
0|datasets-preview-backend         |   File "/home/hf/datasets-preview-backend/src/datasets_preview_backend/routes/webhook.py", line 50, in try_to_update
0|datasets-preview-backend         |     add_job(dataset_name)
0|datasets-preview-backend         |   File "/home/hf/datasets-preview-backend/src/datasets_preview_backend/io/queue.py", line 89, in add_job
0|datasets-preview-backend         |     Job.objects(dataset_name=dataset_name, finished_at=None).get()
0|datasets-preview-backend         |   File "/home/hf/.cache/pypoetry/virtualenvs/datasets-preview-backend-CTHb2hp_-py3.9/lib/python3.9/site-packages/mongoengine/queryset/base.py", line 278, in get
0|datasets-preview-backend         |     raise queryset._document.MultipleObjectsReturned(
0|datasets-preview-backend         | datasets_preview_backend.io.queue.MultipleObjectsReturned: 2 or more items returned, instead of 1
0|datasets-preview-backend         | INFO:     172.30.0.55:0 - "POST /webhook HTTP/1.1" 500 Internal Server Error
```