Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue searching/filtering sessions #292

Closed
Destreyf opened this issue Jan 27, 2022 · 8 comments
Closed

Issue searching/filtering sessions #292

Destreyf opened this issue Jan 27, 2022 · 8 comments
Assignees
Labels
API bug Something isn't working

Comments

@Destreyf
Copy link

When i submit a search for a session i get a 500 internal server error.

{
    "key": "record_257",
    "events": [],
    "filters": [
        {
            "value": [
                "2"
            ],
            "type": "USERID",
            "key": "USERID",
            "operator": "is",
            "source": null
        }
    ],
    "custom": {},
    "rangeValue": "LAST_7_DAYS",
    "startDate": 1642662000000,
    "endDate": 1643353199000,
    "sort": "startTs",
    "order": "desc",
    "strict": true
}

I have deployed it on an EC2 instance, everything else seems to be running fine, I don't see a way to get more detailed logs (maybe i overlooked it).

@estradino estradino added API bug Something isn't working labels Jan 27, 2022
@Destreyf
Copy link
Author

Destreyf commented Feb 7, 2022

@estradino @tahayk

Is there anything I can do to help with debugging this? We're about to swap off of Fullstory in favor of self hosted OpenReplay (amazing software btw!) but this is the last thing to get worked out before we can fully switch over.

I can't seem to find any documentation on logging for looking at errors and I'm not very well versed in Kubernetes so any guidance wouldbe greatly appreciated.

@Destreyf
Copy link
Author

Destreyf commented Feb 7, 2022

Just as a follow up, when I follow the chalice logs I get the following error during my search.

I've added them as a detail/summary collapsed block to make it easier for future use.

./openreplay-cli --logs chalice
2022-02-07T20:05:34.299720156Z {'userId': 1, 'tenantId': 1, 'exp': 1646848051, 'iss': 'openreplay-default-foss', 'iat': 1644256051, 'aud': 'front:default-foss', 'authorizer_identity': 'jwt'}
2022-02-07T20:05:34.299774756Z Execution time: 14 ms
2022-02-07T20:05:34.299786846Z INFO:     10.42.0.44:38374 - "GET /2/events/search?type=USERID&q=243 HTTP/1.1" 200 OK
2022-02-07T20:05:35.265864879Z ERROR:    Exception in ASGI application
2022-02-07T20:05:35.265930569Z Traceback (most recent call last):
2022-02-07T20:05:35.265943409Z   File "/usr/local/lib/python3.9/site-packages/uvicorn/protocols/http/httptools_impl.py", line 376, in run_asgi
2022-02-07T20:05:35.267913499Z     result = await app(self.scope, self.receive, self.send)
2022-02-07T20:05:35.267947629Z   File "/usr/local/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 75, in __call__
2022-02-07T20:05:35.267955639Z     return await self.app(scope, receive, send)
2022-02-07T20:05:35.267965669Z   File "/usr/local/lib/python3.9/site-packages/fastapi/applications.py", line 208, in __call__
2022-02-07T20:05:35.267972589Z     await super().__call__(scope, receive, send)
2022-02-07T20:05:35.267978419Z   File "/usr/local/lib/python3.9/site-packages/starlette/applications.py", line 112, in __call__
2022-02-07T20:05:35.267984439Z     await self.middleware_stack(scope, receive, send)
2022-02-07T20:05:35.267990659Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 159, in __call__
2022-02-07T20:05:35.267996939Z     await self.app(scope, receive, _send)
2022-02-07T20:05:35.268002699Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/cors.py", line 92, in __call__
2022-02-07T20:05:35.268009599Z     await self.simple_response(scope, receive, send, request_headers=headers)
2022-02-07T20:05:35.268017469Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/cors.py", line 147, in simple_response
2022-02-07T20:05:35.268023159Z     await self.app(scope, receive, send)
2022-02-07T20:05:35.268028179Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/base.py", line 57, in __call__
2022-02-07T20:05:35.268033439Z     task_group.cancel_scope.cancel()
2022-02-07T20:05:35.268038719Z   File "/usr/local/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 572, in __aexit__
2022-02-07T20:05:35.268043959Z     raise ExceptionGroup(exceptions)
2022-02-07T20:05:35.268049829Z anyio._backends._asyncio.ExceptionGroup: 2 exceptions were raised in the task group:
2022-02-07T20:05:35.268055409Z ----------------------------
2022-02-07T20:05:35.268060489Z Traceback (most recent call last):
2022-02-07T20:05:35.268066009Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/base.py", line 35, in call_next
2022-02-07T20:05:35.268073899Z     message = await recv_stream.receive()
2022-02-07T20:05:35.268101400Z   File "/usr/local/lib/python3.9/site-packages/anyio/streams/memory.py", line 81, in receive
2022-02-07T20:05:35.268107120Z     return self.receive_nowait()
2022-02-07T20:05:35.268112030Z   File "/usr/local/lib/python3.9/site-packages/anyio/streams/memory.py", line 74, in receive_nowait
2022-02-07T20:05:35.268117710Z     raise EndOfStream
2022-02-07T20:05:35.268124180Z anyio.EndOfStream
2022-02-07T20:05:35.268129130Z
2022-02-07T20:05:35.268134420Z During handling of the above exception, another exception occurred:
2022-02-07T20:05:35.268139320Z
2022-02-07T20:05:35.268144430Z Traceback (most recent call last):
2022-02-07T20:05:35.268149380Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/base.py", line 55, in __call__
2022-02-07T20:05:35.268154970Z     response = await self.dispatch_func(request, call_next)
2022-02-07T20:05:35.268159680Z   File "/work/./app.py", line 34, in or_middleware
2022-02-07T20:05:35.268165340Z     raise e
2022-02-07T20:05:35.268170820Z   File "/work/./app.py", line 29, in or_middleware
2022-02-07T20:05:35.268176920Z     response: StreamingResponse = await call_next(request)
2022-02-07T20:05:35.268182070Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/base.py", line 37, in call_next
2022-02-07T20:05:35.268188030Z     raise RuntimeError("No response returned.")
2022-02-07T20:05:35.268192590Z RuntimeError: No response returned.
2022-02-07T20:05:35.268198090Z ----------------------------
2022-02-07T20:05:35.268203370Z Traceback (most recent call last):
2022-02-07T20:05:35.268210530Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/base.py", line 30, in coro
2022-02-07T20:05:35.268215690Z     await self.app(scope, request.receive, send_stream.send)
2022-02-07T20:05:35.268220910Z   File "/usr/local/lib/python3.9/site-packages/starlette/exceptions.py", line 82, in __call__
2022-02-07T20:05:35.268226490Z     raise exc
2022-02-07T20:05:35.268231960Z   File "/usr/local/lib/python3.9/site-packages/starlette/exceptions.py", line 71, in __call__
2022-02-07T20:05:35.268237700Z     await self.app(scope, receive, sender)
2022-02-07T20:05:35.268244120Z   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 656, in __call__
2022-02-07T20:05:35.268249480Z     await route.handle(scope, receive, send)
2022-02-07T20:05:35.268257840Z   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 259, in handle
2022-02-07T20:05:35.268264120Z     await self.app(scope, receive, send)
2022-02-07T20:05:35.268269260Z   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 61, in app
2022-02-07T20:05:35.268274460Z     response = await func(request)
2022-02-07T20:05:35.268279630Z   File "/work/./or_dependencies.py", line 26, in custom_route_handler
2022-02-07T20:05:35.268285740Z     response: Response = await original_route_handler(request)
2022-02-07T20:05:35.268290721Z   File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 216, in app
2022-02-07T20:05:35.268296021Z     solved_result = await solve_dependencies(
2022-02-07T20:05:35.268302221Z   File "/usr/local/lib/python3.9/site-packages/fastapi/dependencies/utils.py", line 553, in solve_dependencies
2022-02-07T20:05:35.268307901Z     ) = await request_body_to_args(  # body_params checked above
2022-02-07T20:05:35.268313201Z   File "/usr/local/lib/python3.9/site-packages/fastapi/dependencies/utils.py", line 688, in request_body_to_args
2022-02-07T20:05:35.268318541Z     v_, errors_ = field.validate(value, values, loc=loc)
2022-02-07T20:05:35.268329911Z   File "pydantic/fields.py", line 723, in pydantic.fields.ModelField.validate
2022-02-07T20:05:35.268345321Z   File "pydantic/fields.py", line 906, in pydantic.fields.ModelField._validate_singleton
2022-02-07T20:05:35.268351641Z   File "pydantic/fields.py", line 913, in pydantic.fields.ModelField._apply_validators
2022-02-07T20:05:35.268357001Z   File "pydantic/class_validators.py", line 310, in pydantic.class_validators._generic_validator_basic.lambda12
2022-02-07T20:05:35.268362951Z   File "pydantic/main.py", line 735, in pydantic.main.BaseModel.validate
2022-02-07T20:05:35.268368161Z   File "pydantic/main.py", line 404, in pydantic.main.BaseModel.__init__
2022-02-07T20:05:35.268373531Z   File "pydantic/main.py", line 1014, in pydantic.main.validate_model
2022-02-07T20:05:35.268378881Z   File "/work/./schemas.py", line 564, in flat_to_original
2022-02-07T20:05:35.268386471Z     if v["isEvent"]:
2022-02-07T20:05:35.268392801Z KeyError: 'isEvent'
2022-02-07T20:05:35.268397791Z
2022-02-07T20:05:35.268403421Z ERROR:uvicorn.error:Exception in ASGI application
2022-02-07T20:05:35.268409251Z Traceback (most recent call last):
2022-02-07T20:05:35.268416241Z   File "/usr/local/lib/python3.9/site-packages/uvicorn/protocols/http/httptools_impl.py", line 376, in run_asgi
2022-02-07T20:05:35.268423291Z     result = await app(self.scope, self.receive, self.send)
2022-02-07T20:05:35.268428661Z   File "/usr/local/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 75, in __call__
2022-02-07T20:05:35.269252255Z     return await self.app(scope, receive, send)
2022-02-07T20:05:35.269268245Z   File "/usr/local/lib/python3.9/site-packages/fastapi/applications.py", line 208, in __call__
2022-02-07T20:05:35.269274715Z     await super().__call__(scope, receive, send)
2022-02-07T20:05:35.269280585Z   File "/usr/local/lib/python3.9/site-packages/starlette/applications.py", line 112, in __call__
2022-02-07T20:05:35.269286325Z     await self.middleware_stack(scope, receive, send)
2022-02-07T20:05:35.269098705Z {'userId': 1, 'tenantId': 1, 'exp': 1646848051, 'iss': 'openreplay-default-foss', 'iat': 1644256051, 'aud': 'front:default-foss', 'authorizer_identity': 'jwt'}
2022-02-07T20:05:35.269331986Z INFO:     10.42.0.44:38388 - "POST /2/sessions/search2 HTTP/1.1" 500 Internal Server Error
2022-02-07T20:05:35.269293825Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 159, in __call__
2022-02-07T20:05:35.269363396Z     await self.app(scope, receive, _send)
2022-02-07T20:05:35.269762918Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/cors.py", line 92, in __call__
2022-02-07T20:05:35.269782748Z     await self.simple_response(scope, receive, send, request_headers=headers)
2022-02-07T20:05:35.269791378Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/cors.py", line 147, in simple_response
2022-02-07T20:05:35.269798828Z     await self.app(scope, receive, send)
2022-02-07T20:05:35.269806288Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/base.py", line 57, in __call__
2022-02-07T20:05:35.269811288Z     task_group.cancel_scope.cancel()
2022-02-07T20:05:35.269816198Z   File "/usr/local/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 572, in __aexit__
2022-02-07T20:05:35.269822508Z     raise ExceptionGroup(exceptions)
2022-02-07T20:05:35.269827738Z anyio._backends._asyncio.ExceptionGroup: 2 exceptions were raised in the task group:
2022-02-07T20:05:35.269833008Z ----------------------------
2022-02-07T20:05:35.269838108Z Traceback (most recent call last):
2022-02-07T20:05:35.269843698Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/base.py", line 35, in call_next
2022-02-07T20:05:35.269848838Z     message = await recv_stream.receive()
2022-02-07T20:05:35.269854458Z   File "/usr/local/lib/python3.9/site-packages/anyio/streams/memory.py", line 81, in receive
2022-02-07T20:05:35.269873578Z     return self.receive_nowait()
2022-02-07T20:05:35.269880998Z   File "/usr/local/lib/python3.9/site-packages/anyio/streams/memory.py", line 74, in receive_nowait
2022-02-07T20:05:35.269887188Z     raise EndOfStream
2022-02-07T20:05:35.269892558Z anyio.EndOfStream
2022-02-07T20:05:35.269897548Z
2022-02-07T20:05:35.269902508Z During handling of the above exception, another exception occurred:
2022-02-07T20:05:35.269907799Z
2022-02-07T20:05:35.269912829Z Traceback (most recent call last):
2022-02-07T20:05:35.269918629Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/base.py", line 55, in __call__
2022-02-07T20:05:35.269925589Z     response = await self.dispatch_func(request, call_next)
2022-02-07T20:05:35.269931249Z   File "/work/./app.py", line 34, in or_middleware
2022-02-07T20:05:35.269936489Z     raise e
2022-02-07T20:05:35.269941419Z   File "/work/./app.py", line 29, in or_middleware
2022-02-07T20:05:35.269946269Z     response: StreamingResponse = await call_next(request)
2022-02-07T20:05:35.269951139Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/base.py", line 37, in call_next
2022-02-07T20:05:35.269955989Z     raise RuntimeError("No response returned.")
2022-02-07T20:05:35.269960789Z RuntimeError: No response returned.
2022-02-07T20:05:35.269965609Z ----------------------------
2022-02-07T20:05:35.269970399Z Traceback (most recent call last):
2022-02-07T20:05:35.269975389Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/base.py", line 30, in coro
2022-02-07T20:05:35.269980589Z     await self.app(scope, request.receive, send_stream.send)
2022-02-07T20:05:35.269986409Z   File "/usr/local/lib/python3.9/site-packages/starlette/exceptions.py", line 82, in __call__
2022-02-07T20:05:35.269992939Z     raise exc
2022-02-07T20:05:35.269998859Z   File "/usr/local/lib/python3.9/site-packages/starlette/exceptions.py", line 71, in __call__
2022-02-07T20:05:35.270004099Z     await self.app(scope, receive, sender)
2022-02-07T20:05:35.270010709Z   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 656, in __call__
2022-02-07T20:05:35.270016809Z     await route.handle(scope, receive, send)
2022-02-07T20:05:35.270022159Z   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 259, in handle
2022-02-07T20:05:35.270027839Z     await self.app(scope, receive, send)
2022-02-07T20:05:35.270049379Z   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 61, in app
2022-02-07T20:05:35.270056259Z     response = await func(request)
2022-02-07T20:05:35.270062159Z   File "/work/./or_dependencies.py", line 26, in custom_route_handler
2022-02-07T20:05:35.270067909Z     response: Response = await original_route_handler(request)
2022-02-07T20:05:35.270073369Z   File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 216, in app
2022-02-07T20:05:35.270079149Z     solved_result = await solve_dependencies(
2022-02-07T20:05:35.270084599Z   File "/usr/local/lib/python3.9/site-packages/fastapi/dependencies/utils.py", line 553, in solve_dependencies
2022-02-07T20:05:35.270090529Z     ) = await request_body_to_args(  # body_params checked above
2022-02-07T20:05:35.270095929Z   File "/usr/local/lib/python3.9/site-packages/fastapi/dependencies/utils.py", line 688, in request_body_to_args
2022-02-07T20:05:35.270101489Z     v_, errors_ = field.validate(value, values, loc=loc)
2022-02-07T20:05:35.270107139Z   File "pydantic/fields.py", line 723, in pydantic.fields.ModelField.validate
2022-02-07T20:05:35.270112550Z   File "pydantic/fields.py", line 906, in pydantic.fields.ModelField._validate_singleton
2022-02-07T20:05:35.270125030Z   File "pydantic/fields.py", line 913, in pydantic.fields.ModelField._apply_validators
2022-02-07T20:05:35.270130300Z   File "pydantic/class_validators.py", line 310, in pydantic.class_validators._generic_validator_basic.lambda12
2022-02-07T20:05:35.270135750Z   File "pydantic/main.py", line 735, in pydantic.main.BaseModel.validate
2022-02-07T20:05:35.270141900Z   File "pydantic/main.py", line 404, in pydantic.main.BaseModel.__init__
2022-02-07T20:05:35.270147280Z   File "pydantic/main.py", line 1014, in pydantic.main.validate_model
2022-02-07T20:05:35.270152390Z   File "/work/./schemas.py", line 564, in flat_to_original
2022-02-07T20:05:35.270157280Z     if v["isEvent"]:
2022-02-07T20:05:35.270162320Z KeyError: 'isEvent'

@tahayk
Copy link
Contributor

tahayk commented Feb 7, 2022

Hello @Destreyf
sorry for the delay,
this was fixed in v1.5.0, and it will be released this week (ETA: next 2 days if everything goes well 🤞).
Basically that issue happens because the USERID you are providing is a number, and the user_id column in the DB is a text, so just a small casting and it was fixed.

@Destreyf
Copy link
Author

Destreyf commented Feb 7, 2022

@tahayk Thank you for the response, I am not sure if just fixing a casting issue will be enough.

I am having this issue searching some standard fields as well as custom fields, not just limited to the USERID field cast issue.

custom EMAIL field
2022-02-07T20:28:01.381562038Z ERROR:    Exception in ASGI application
2022-02-07T20:28:01.381606549Z Traceback (most recent call last):
2022-02-07T20:28:01.381617769Z   File "/usr/local/lib/python3.9/site-packages/uvicorn/protocols/http/httptools_impl.py", line 376, in run_asgi
2022-02-07T20:28:01.381628849Z     result = await app(self.scope, self.receive, self.send)
2022-02-07T20:28:01.381635959Z   File "/usr/local/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 75, in __call__
2022-02-07T20:28:01.381642369Z     return await self.app(scope, receive, send)
2022-02-07T20:28:01.381651549Z   File "/usr/local/lib/python3.9/site-packages/fastapi/applications.py", line 208, in __call__
2022-02-07T20:28:01.381658759Z     await super().__call__(scope, receive, send)
2022-02-07T20:28:01.381666429Z   File "/usr/local/lib/python3.9/site-packages/starlette/applications.py", line 112, in __call__
2022-02-07T20:28:01.381672339Z     await self.middleware_stack(scope, receive, send)
2022-02-07T20:28:01.381678839Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 159, in __call__
2022-02-07T20:28:01.381684989Z     await self.app(scope, receive, _send)
2022-02-07T20:28:01.381691509Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/cors.py", line 92, in __call__
2022-02-07T20:28:01.381697029Z     await self.simple_response(scope, receive, send, request_headers=headers)
2022-02-07T20:28:01.381705319Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/cors.py", line 147, in simple_response
2022-02-07T20:28:01.381713519Z     await self.app(scope, receive, send)
2022-02-07T20:28:01.381719079Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/base.py", line 57, in __call__
2022-02-07T20:28:01.381725969Z     task_group.cancel_scope.cancel()
2022-02-07T20:28:01.381733299Z   File "/usr/local/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 572, in __aexit__
2022-02-07T20:28:01.381742409Z     raise ExceptionGroup(exceptions)
2022-02-07T20:28:01.381749199Z anyio._backends._asyncio.ExceptionGroup: 2 exceptions were raised in the task group:
2022-02-07T20:28:01.381756989Z ----------------------------
2022-02-07T20:28:01.381762899Z Traceback (most recent call last):
2022-02-07T20:28:01.381769559Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/base.py", line 35, in call_next
2022-02-07T20:28:01.381775839Z     message = await recv_stream.receive()
2022-02-07T20:28:01.381782759Z   File "/usr/local/lib/python3.9/site-packages/anyio/streams/memory.py", line 81, in receive
2022-02-07T20:28:01.381789829Z     return self.receive_nowait()
2022-02-07T20:28:01.381797089Z   File "/usr/local/lib/python3.9/site-packages/anyio/streams/memory.py", line 74, in receive_nowait
2022-02-07T20:28:01.381804049Z     raise EndOfStream
2022-02-07T20:28:01.381810259Z anyio.EndOfStream
2022-02-07T20:28:01.381817239Z
2022-02-07T20:28:01.381824030Z During handling of the above exception, another exception occurred:
2022-02-07T20:28:01.381847710Z
2022-02-07T20:28:01.381855820Z Traceback (most recent call last):
2022-02-07T20:28:01.381861140Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/base.py", line 55, in __call__
2022-02-07T20:28:01.381867300Z     response = await self.dispatch_func(request, call_next)
2022-02-07T20:28:01.381872910Z   File "/work/./app.py", line 34, in or_middleware
2022-02-07T20:28:01.381879200Z     raise e
2022-02-07T20:28:01.381885040Z   File "/work/./app.py", line 29, in or_middleware
2022-02-07T20:28:01.381891350Z     response: StreamingResponse = await call_next(request)
2022-02-07T20:28:01.381899510Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/base.py", line 37, in call_next
2022-02-07T20:28:01.381905220Z     raise RuntimeError("No response returned.")
2022-02-07T20:28:01.381910890Z RuntimeError: No response returned.
2022-02-07T20:28:01.381916250Z ----------------------------
2022-02-07T20:28:01.381921960Z Traceback (most recent call last):
2022-02-07T20:28:01.381927450Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/base.py", line 30, in coro
2022-02-07T20:28:01.381934750Z     await self.app(scope, request.receive, send_stream.send)
2022-02-07T20:28:01.381940150Z   File "/usr/local/lib/python3.9/site-packages/starlette/exceptions.py", line 82, in __call__
2022-02-07T20:28:01.381945530Z     raise exc
2022-02-07T20:28:01.381950950Z   File "/usr/local/lib/python3.9/site-packages/starlette/exceptions.py", line 71, in __call__
2022-02-07T20:28:01.381956300Z     await self.app(scope, receive, sender)
2022-02-07T20:28:01.381962040Z   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 656, in __call__
2022-02-07T20:28:01.381967550Z     await route.handle(scope, receive, send)
2022-02-07T20:28:01.381972820Z   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 259, in handle
2022-02-07T20:28:01.381978540Z     await self.app(scope, receive, send)
2022-02-07T20:28:01.381983920Z   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 61, in app
2022-02-07T20:28:01.381989170Z     response = await func(request)
2022-02-07T20:28:01.381994100Z   File "/work/./or_dependencies.py", line 26, in custom_route_handler
2022-02-07T20:28:01.382000300Z     response: Response = await original_route_handler(request)
2022-02-07T20:28:01.382005830Z   File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 216, in app
2022-02-07T20:28:01.382011660Z     solved_result = await solve_dependencies(
2022-02-07T20:28:01.382016720Z   File "/usr/local/lib/python3.9/site-packages/fastapi/dependencies/utils.py", line 553, in solve_dependencies
2022-02-07T20:28:01.382021990Z     ) = await request_body_to_args(  # body_params checked above
2022-02-07T20:28:01.382026880Z   File "/usr/local/lib/python3.9/site-packages/fastapi/dependencies/utils.py", line 688, in request_body_to_args
2022-02-07T20:28:01.382032331Z     v_, errors_ = field.validate(value, values, loc=loc)
2022-02-07T20:28:01.382051311Z   File "pydantic/fields.py", line 723, in pydantic.fields.ModelField.validate
2022-02-07T20:28:01.382059831Z   File "pydantic/fields.py", line 906, in pydantic.fields.ModelField._validate_singleton
2022-02-07T20:28:01.382067001Z   File "pydantic/fields.py", line 913, in pydantic.fields.ModelField._apply_validators
2022-02-07T20:28:01.382072631Z   File "pydantic/class_validators.py", line 310, in pydantic.class_validators._generic_validator_basic.lambda12
2022-02-07T20:28:01.382078461Z   File "pydantic/main.py", line 735, in pydantic.main.BaseModel.validate
2022-02-07T20:28:01.382084411Z   File "pydantic/main.py", line 404, in pydantic.main.BaseModel.__init__
2022-02-07T20:28:01.382099221Z   File "pydantic/main.py", line 1014, in pydantic.main.validate_model
2022-02-07T20:28:01.382105881Z   File "/work/./schemas.py", line 564, in flat_to_original
2022-02-07T20:28:01.382185241Z     if v["isEvent"]:
2022-02-07T20:28:01.382197281Z KeyError: 'isEvent'
2022-02-07T20:28:01.382203271Z
2022-02-07T20:28:01.382209511Z ERROR:uvicorn.error:Exception in ASGI application
2022-02-07T20:28:01.382215611Z Traceback (most recent call last):
2022-02-07T20:28:01.382221051Z   File "/usr/local/lib/python3.9/site-packages/uvicorn/protocols/http/httptools_impl.py", line 376, in run_asgi
2022-02-07T20:28:01.382262162Z     result = await app(self.scope, self.receive, self.send)
2022-02-07T20:28:01.382273822Z   File "/usr/local/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 75, in __call__
2022-02-07T20:28:01.382281022Z     return await self.app(scope, receive, send)
2022-02-07T20:28:01.382287262Z   File "/usr/local/lib/python3.9/site-packages/fastapi/applications.py", line 208, in __call__
2022-02-07T20:28:01.382293342Z     await super().__call__(scope, receive, send)
2022-02-07T20:28:01.382153201Z {'userId': 1, 'tenantId': 1, 'exp': 1646848051, 'iss': 'openreplay-default-foss', 'iat': 1644256051, 'aud': 'front:default-foss', 'authorizer_identity': 'jwt'}
2022-02-07T20:28:01.382343352Z INFO:     10.42.0.44:55470 - "POST /2/sessions/search2 HTTP/1.1" 500 Internal Server Error
2022-02-07T20:28:01.382299762Z   File "/usr/local/lib/python3.9/site-packages/starlette/applications.py", line 112, in __call__
2022-02-07T20:28:01.382364412Z     await self.middleware_stack(scope, receive, send)
2022-02-07T20:28:01.382375002Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 159, in __call__
2022-02-07T20:28:01.382381692Z     await self.app(scope, receive, _send)
2022-02-07T20:28:01.382388382Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/cors.py", line 92, in __call__
2022-02-07T20:28:01.382394872Z     await self.simple_response(scope, receive, send, request_headers=headers)
2022-02-07T20:28:01.382401162Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/cors.py", line 147, in simple_response
2022-02-07T20:28:01.382410322Z     await self.app(scope, receive, send)
2022-02-07T20:28:01.382416452Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/base.py", line 57, in __call__
2022-02-07T20:28:01.382422422Z     task_group.cancel_scope.cancel()
2022-02-07T20:28:01.382428572Z   File "/usr/local/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 572, in __aexit__
2022-02-07T20:28:01.382434752Z     raise ExceptionGroup(exceptions)
2022-02-07T20:28:01.382440352Z anyio._backends._asyncio.ExceptionGroup: 2 exceptions were raised in the task group:
2022-02-07T20:28:01.382446422Z ----------------------------
2022-02-07T20:28:01.382452362Z Traceback (most recent call last):
2022-02-07T20:28:01.382460483Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/base.py", line 35, in call_next
2022-02-07T20:28:01.382466553Z     message = await recv_stream.receive()
2022-02-07T20:28:01.382472273Z   File "/usr/local/lib/python3.9/site-packages/anyio/streams/memory.py", line 81, in receive
2022-02-07T20:28:01.382478613Z     return self.receive_nowait()
2022-02-07T20:28:01.382484303Z   File "/usr/local/lib/python3.9/site-packages/anyio/streams/memory.py", line 74, in receive_nowait
2022-02-07T20:28:01.382490373Z     raise EndOfStream
2022-02-07T20:28:01.382496393Z anyio.EndOfStream
2022-02-07T20:28:01.382503943Z
2022-02-07T20:28:01.382509783Z During handling of the above exception, another exception occurred:
2022-02-07T20:28:01.382515723Z
2022-02-07T20:28:01.382540253Z Traceback (most recent call last):
2022-02-07T20:28:01.382546763Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/base.py", line 55, in __call__
2022-02-07T20:28:01.382555473Z     response = await self.dispatch_func(request, call_next)
2022-02-07T20:28:01.382561633Z   File "/work/./app.py", line 34, in or_middleware
2022-02-07T20:28:01.382567373Z     raise e
2022-02-07T20:28:01.382572863Z   File "/work/./app.py", line 29, in or_middleware
2022-02-07T20:28:01.382578873Z     response: StreamingResponse = await call_next(request)
2022-02-07T20:28:01.382584253Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/base.py", line 37, in call_next
2022-02-07T20:28:01.382589993Z     raise RuntimeError("No response returned.")
2022-02-07T20:28:01.382595363Z RuntimeError: No response returned.
2022-02-07T20:28:01.382600843Z ----------------------------
2022-02-07T20:28:01.382606213Z Traceback (most recent call last):
2022-02-07T20:28:01.382611733Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/base.py", line 30, in coro
2022-02-07T20:28:01.382617593Z     await self.app(scope, request.receive, send_stream.send)
2022-02-07T20:28:01.382623473Z   File "/usr/local/lib/python3.9/site-packages/starlette/exceptions.py", line 82, in __call__
2022-02-07T20:28:01.382655133Z     raise exc
2022-02-07T20:28:01.382662743Z   File "/usr/local/lib/python3.9/site-packages/starlette/exceptions.py", line 71, in __call__
2022-02-07T20:28:01.382668393Z     await self.app(scope, receive, sender)
2022-02-07T20:28:01.382674054Z   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 656, in __call__
2022-02-07T20:28:01.382679554Z     await route.handle(scope, receive, send)
2022-02-07T20:28:01.382684934Z   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 259, in handle
2022-02-07T20:28:01.382690534Z     await self.app(scope, receive, send)
2022-02-07T20:28:01.382743184Z   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 61, in app
2022-02-07T20:28:01.382754674Z     response = await func(request)
2022-02-07T20:28:01.382763234Z   File "/work/./or_dependencies.py", line 26, in custom_route_handler
2022-02-07T20:28:01.382769074Z     response: Response = await original_route_handler(request)
2022-02-07T20:28:01.382775124Z   File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 216, in app
2022-02-07T20:28:01.382780524Z     solved_result = await solve_dependencies(
2022-02-07T20:28:01.382785914Z   File "/usr/local/lib/python3.9/site-packages/fastapi/dependencies/utils.py", line 553, in solve_dependencies
2022-02-07T20:28:01.382791264Z     ) = await request_body_to_args(  # body_params checked above
2022-02-07T20:28:01.382797054Z   File "/usr/local/lib/python3.9/site-packages/fastapi/dependencies/utils.py", line 688, in request_body_to_args
2022-02-07T20:28:01.382802644Z     v_, errors_ = field.validate(value, values, loc=loc)
2022-02-07T20:28:01.382808124Z   File "pydantic/fields.py", line 723, in pydantic.fields.ModelField.validate
2022-02-07T20:28:01.382812734Z   File "pydantic/fields.py", line 906, in pydantic.fields.ModelField._validate_singleton
2022-02-07T20:28:01.382817914Z   File "pydantic/fields.py", line 913, in pydantic.fields.ModelField._apply_validators
2022-02-07T20:28:01.382823184Z   File "pydantic/class_validators.py", line 310, in pydantic.class_validators._generic_validator_basic.lambda12
2022-02-07T20:28:01.382828334Z   File "pydantic/main.py", line 735, in pydantic.main.BaseModel.validate
2022-02-07T20:28:01.382833794Z   File "pydantic/main.py", line 404, in pydantic.main.BaseModel.__init__
2022-02-07T20:28:01.382901385Z   File "pydantic/main.py", line 1014, in pydantic.main.validate_model
2022-02-07T20:28:01.382921595Z   File "/work/./schemas.py", line 564, in flat_to_original
2022-02-07T20:28:01.382930025Z     if v["isEvent"]:
2022-02-07T20:28:01.382934915Z KeyError: 'isEvent'

When testing for other the "Page" property though it does appear to work.

However trying the "Browser" when searching for "Safari" a similar issue happens

Searching Browser Field
2022-02-07T20:30:57.921843843Z ERROR:    Exception in ASGI application
2022-02-07T20:30:57.921917523Z Traceback (most recent call last):
2022-02-07T20:30:57.921931333Z   File "/usr/local/lib/python3.9/site-packages/uvicorn/protocols/http/httptools_impl.py", line 376, in run_asgi
2022-02-07T20:30:57.921939663Z     result = await app(self.scope, self.receive, self.send)
2022-02-07T20:30:57.921946753Z   File "/usr/local/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 75, in __call__
2022-02-07T20:30:57.921956034Z     return await self.app(scope, receive, send)
2022-02-07T20:30:57.921964184Z   File "/usr/local/lib/python3.9/site-packages/fastapi/applications.py", line 208, in __call__
2022-02-07T20:30:57.921987174Z     await super().__call__(scope, receive, send)
2022-02-07T20:30:57.921993014Z   File "/usr/local/lib/python3.9/site-packages/starlette/applications.py", line 112, in __call__
2022-02-07T20:30:57.921998754Z     await self.middleware_stack(scope, receive, send)
2022-02-07T20:30:57.922005394Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 159, in __call__
2022-02-07T20:30:57.922010614Z     await self.app(scope, receive, _send)
2022-02-07T20:30:57.922015904Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/cors.py", line 92, in __call__
2022-02-07T20:30:57.922021914Z     await self.simple_response(scope, receive, send, request_headers=headers)
2022-02-07T20:30:57.922028554Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/cors.py", line 147, in simple_response
2022-02-07T20:30:57.922034184Z     await self.app(scope, receive, send)
2022-02-07T20:30:57.922040254Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/base.py", line 57, in __call__
2022-02-07T20:30:57.922046174Z     task_group.cancel_scope.cancel()
2022-02-07T20:30:57.922051534Z   File "/usr/local/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 572, in __aexit__
2022-02-07T20:30:57.922057924Z     raise ExceptionGroup(exceptions)
2022-02-07T20:30:57.922066244Z anyio._backends._asyncio.ExceptionGroup: 2 exceptions were raised in the task group:
2022-02-07T20:30:57.922072214Z ----------------------------
2022-02-07T20:30:57.922077314Z Traceback (most recent call last):
2022-02-07T20:30:57.922082744Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/base.py", line 35, in call_next
2022-02-07T20:30:57.922088824Z     message = await recv_stream.receive()
2022-02-07T20:30:57.922094524Z   File "/usr/local/lib/python3.9/site-packages/anyio/streams/memory.py", line 81, in receive
2022-02-07T20:30:57.922116244Z     return self.receive_nowait()
2022-02-07T20:30:57.922122104Z   File "/usr/local/lib/python3.9/site-packages/anyio/streams/memory.py", line 74, in receive_nowait
2022-02-07T20:30:57.922127694Z     raise EndOfStream
2022-02-07T20:30:57.922133234Z anyio.EndOfStream
2022-02-07T20:30:57.922214915Z
2022-02-07T20:30:57.922227525Z During handling of the above exception, another exception occurred:
2022-02-07T20:30:57.922233245Z
2022-02-07T20:30:57.922238725Z Traceback (most recent call last):
2022-02-07T20:30:57.922244085Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/base.py", line 55, in __call__
2022-02-07T20:30:57.922251355Z     response = await self.dispatch_func(request, call_next)
2022-02-07T20:30:57.922256395Z   File "/work/./app.py", line 34, in or_middleware
2022-02-07T20:30:57.922261205Z     raise e
2022-02-07T20:30:57.922266665Z   File "/work/./app.py", line 29, in or_middleware
2022-02-07T20:30:57.922271535Z     response: StreamingResponse = await call_next(request)
2022-02-07T20:30:57.922276825Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/base.py", line 37, in call_next
2022-02-07T20:30:57.922282165Z     raise RuntimeError("No response returned.")
2022-02-07T20:30:57.922287645Z RuntimeError: No response returned.
2022-02-07T20:30:57.922293355Z ----------------------------
2022-02-07T20:30:57.922298085Z Traceback (most recent call last):
2022-02-07T20:30:57.922302665Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/base.py", line 30, in coro
2022-02-07T20:30:57.922308035Z     await self.app(scope, request.receive, send_stream.send)
2022-02-07T20:30:57.922313075Z   File "/usr/local/lib/python3.9/site-packages/starlette/exceptions.py", line 82, in __call__
2022-02-07T20:30:57.922318625Z     raise exc
2022-02-07T20:30:57.922334485Z   File "/usr/local/lib/python3.9/site-packages/starlette/exceptions.py", line 71, in __call__
2022-02-07T20:30:57.922341465Z     await self.app(scope, receive, sender)
2022-02-07T20:30:57.922346685Z   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 656, in __call__
2022-02-07T20:30:57.922351705Z     await route.handle(scope, receive, send)
2022-02-07T20:30:57.922357635Z   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 259, in handle
2022-02-07T20:30:57.922363025Z     await self.app(scope, receive, send)
2022-02-07T20:30:57.922367995Z   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 61, in app
2022-02-07T20:30:57.922374245Z     response = await func(request)
2022-02-07T20:30:57.922380005Z   File "/work/./or_dependencies.py", line 26, in custom_route_handler
2022-02-07T20:30:57.922386826Z     response: Response = await original_route_handler(request)
2022-02-07T20:30:57.922393786Z   File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 216, in app
2022-02-07T20:30:57.922399256Z     solved_result = await solve_dependencies(
2022-02-07T20:30:57.922404286Z   File "/usr/local/lib/python3.9/site-packages/fastapi/dependencies/utils.py", line 553, in solve_dependencies
2022-02-07T20:30:57.922409746Z     ) = await request_body_to_args(  # body_params checked above
2022-02-07T20:30:57.922414986Z   File "/usr/local/lib/python3.9/site-packages/fastapi/dependencies/utils.py", line 688, in request_body_to_args
2022-02-07T20:30:57.922421366Z     v_, errors_ = field.validate(value, values, loc=loc)
2022-02-07T20:30:57.922431756Z   File "pydantic/fields.py", line 723, in pydantic.fields.ModelField.validate
2022-02-07T20:30:57.922438846Z   File "pydantic/fields.py", line 906, in pydantic.fields.ModelField._validate_singleton
2022-02-07T20:30:57.922443686Z   File "pydantic/fields.py", line 913, in pydantic.fields.ModelField._apply_validators
2022-02-07T20:30:57.922448996Z   File "pydantic/class_validators.py", line 310, in pydantic.class_validators._generic_validator_basic.lambda12
2022-02-07T20:30:57.922550556Z   File "pydantic/main.py", line 735, in pydantic.main.BaseModel.validate
2022-02-07T20:30:57.922570906Z   File "pydantic/main.py", line 404, in pydantic.main.BaseModel.__init__
2022-02-07T20:30:57.922576846Z   File "pydantic/main.py", line 1014, in pydantic.main.validate_model
2022-02-07T20:30:57.922590356Z   File "/work/./schemas.py", line 564, in flat_to_original
2022-02-07T20:30:57.922596727Z     if v["isEvent"]:
2022-02-07T20:30:57.922603047Z KeyError: 'isEvent'
2022-02-07T20:30:57.922608117Z
2022-02-07T20:30:57.923017188Z ERROR:uvicorn.error:Exception in ASGI application
2022-02-07T20:30:57.923037339Z Traceback (most recent call last):
2022-02-07T20:30:57.923045769Z   File "/usr/local/lib/python3.9/site-packages/uvicorn/protocols/http/httptools_impl.py", line 376, in run_asgi
2022-02-07T20:30:57.923052739Z     result = await app(self.scope, self.receive, self.send)
2022-02-07T20:30:57.923049799Z {'userId': 1, 'tenantId': 1, 'exp': 1646848051, 'iss': 'openreplay-default-foss', 'iat': 1644256051, 'aud': 'front:default-foss', 'authorizer_identity': 'jwt'}
2022-02-07T20:30:57.923072909Z INFO:     10.42.0.44:57504 - "POST /2/sessions/search2 HTTP/1.1" 500 Internal Server Error
2022-02-07T20:30:57.923059139Z   File "/usr/local/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 75, in __call__
2022-02-07T20:30:57.923085539Z     return await self.app(scope, receive, send)
2022-02-07T20:30:57.923092339Z   File "/usr/local/lib/python3.9/site-packages/fastapi/applications.py", line 208, in __call__
2022-02-07T20:30:57.923097829Z     await super().__call__(scope, receive, send)
2022-02-07T20:30:57.923116029Z   File "/usr/local/lib/python3.9/site-packages/starlette/applications.py", line 112, in __call__
2022-02-07T20:30:57.923121849Z     await self.middleware_stack(scope, receive, send)
2022-02-07T20:30:57.923127989Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 159, in __call__
2022-02-07T20:30:57.923133689Z     await self.app(scope, receive, _send)
2022-02-07T20:30:57.923213829Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/cors.py", line 92, in __call__
2022-02-07T20:30:57.923226669Z     await self.simple_response(scope, receive, send, request_headers=headers)
2022-02-07T20:30:57.923233619Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/cors.py", line 147, in simple_response
2022-02-07T20:30:57.923239370Z     await self.app(scope, receive, send)
2022-02-07T20:30:57.923244900Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/base.py", line 57, in __call__
2022-02-07T20:30:57.923250480Z     task_group.cancel_scope.cancel()
2022-02-07T20:30:57.923255800Z   File "/usr/local/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 572, in __aexit__
2022-02-07T20:30:57.923261980Z     raise ExceptionGroup(exceptions)
2022-02-07T20:30:57.923269180Z anyio._backends._asyncio.ExceptionGroup: 2 exceptions were raised in the task group:
2022-02-07T20:30:57.923275370Z ----------------------------
2022-02-07T20:30:57.923281960Z Traceback (most recent call last):
2022-02-07T20:30:57.923287440Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/base.py", line 35, in call_next
2022-02-07T20:30:57.923292930Z     message = await recv_stream.receive()
2022-02-07T20:30:57.923298490Z   File "/usr/local/lib/python3.9/site-packages/anyio/streams/memory.py", line 81, in receive
2022-02-07T20:30:57.923304510Z     return self.receive_nowait()
2022-02-07T20:30:57.923309940Z   File "/usr/local/lib/python3.9/site-packages/anyio/streams/memory.py", line 74, in receive_nowait
2022-02-07T20:30:57.923315360Z     raise EndOfStream
2022-02-07T20:30:57.923320460Z anyio.EndOfStream
2022-02-07T20:30:57.923325210Z
2022-02-07T20:30:57.923330540Z During handling of the above exception, another exception occurred:
2022-02-07T20:30:57.923336400Z
2022-02-07T20:30:57.923342140Z Traceback (most recent call last):
2022-02-07T20:30:57.923349360Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/base.py", line 55, in __call__
2022-02-07T20:30:57.923355130Z     response = await self.dispatch_func(request, call_next)
2022-02-07T20:30:57.923360560Z   File "/work/./app.py", line 34, in or_middleware
2022-02-07T20:30:57.923365370Z     raise e
2022-02-07T20:30:57.923369340Z   File "/work/./app.py", line 29, in or_middleware
2022-02-07T20:30:57.923373420Z     response: StreamingResponse = await call_next(request)
2022-02-07T20:30:57.923377390Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/base.py", line 37, in call_next
2022-02-07T20:30:57.923381470Z     raise RuntimeError("No response returned.")
2022-02-07T20:30:57.923385590Z RuntimeError: No response returned.
2022-02-07T20:30:57.923391400Z ----------------------------
2022-02-07T20:30:57.923395510Z Traceback (most recent call last):
2022-02-07T20:30:57.923399630Z   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/base.py", line 30, in coro
2022-02-07T20:30:57.923403620Z     await self.app(scope, request.receive, send_stream.send)
2022-02-07T20:30:57.923408200Z   File "/usr/local/lib/python3.9/site-packages/starlette/exceptions.py", line 82, in __call__
2022-02-07T20:30:57.923415290Z     raise exc
2022-02-07T20:30:57.923420990Z   File "/usr/local/lib/python3.9/site-packages/starlette/exceptions.py", line 71, in __call__
2022-02-07T20:30:57.923438650Z     await self.app(scope, receive, sender)
2022-02-07T20:30:57.923445210Z   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 656, in __call__
2022-02-07T20:30:57.923451021Z     await route.handle(scope, receive, send)
2022-02-07T20:30:57.923456551Z   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 259, in handle
2022-02-07T20:30:57.923508541Z     await self.app(scope, receive, send)
2022-02-07T20:30:57.923516491Z   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 61, in app
2022-02-07T20:30:57.923525151Z     response = await func(request)
2022-02-07T20:30:57.923530661Z   File "/work/./or_dependencies.py", line 26, in custom_route_handler
2022-02-07T20:30:57.923535941Z     response: Response = await original_route_handler(request)
2022-02-07T20:30:57.923541811Z   File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 216, in app
2022-02-07T20:30:57.923546981Z     solved_result = await solve_dependencies(
2022-02-07T20:30:57.923552451Z   File "/usr/local/lib/python3.9/site-packages/fastapi/dependencies/utils.py", line 553, in solve_dependencies
2022-02-07T20:30:57.923558741Z     ) = await request_body_to_args(  # body_params checked above
2022-02-07T20:30:57.923563641Z   File "/usr/local/lib/python3.9/site-packages/fastapi/dependencies/utils.py", line 688, in request_body_to_args
2022-02-07T20:30:57.923569571Z     v_, errors_ = field.validate(value, values, loc=loc)
2022-02-07T20:30:57.923599271Z   File "pydantic/fields.py", line 723, in pydantic.fields.ModelField.validate
2022-02-07T20:30:57.923608061Z   File "pydantic/fields.py", line 906, in pydantic.fields.ModelField._validate_singleton
2022-02-07T20:30:57.923613181Z   File "pydantic/fields.py", line 913, in pydantic.fields.ModelField._apply_validators
2022-02-07T20:30:57.923618511Z   File "pydantic/class_validators.py", line 310, in pydantic.class_validators._generic_validator_basic.lambda12
2022-02-07T20:30:57.923624811Z   File "pydantic/main.py", line 735, in pydantic.main.BaseModel.validate
2022-02-07T20:30:57.923630641Z   File "pydantic/main.py", line 404, in pydantic.main.BaseModel.__init__
2022-02-07T20:30:57.923635411Z   File "pydantic/main.py", line 1014, in pydantic.main.validate_model
2022-02-07T20:30:57.923640691Z   File "/work/./schemas.py", line 564, in flat_to_original
2022-02-07T20:30:57.923646211Z     if v["isEvent"]:
2022-02-07T20:30:57.923651721Z KeyError: 'isEvent'
2022-02-07T20:30:57.923656731Z

Upon testing further, I've noticed issues with Duration as well as all of our custom fields.

Let me know if there's anything I can, I'm also willing to run a version of master if it's test-able/safe to migrate.

We don't presently use OpenReplay for anything mission critical but plan to use it more in depth with time so we can defintiely test it and we have until Feb 22nd to finish the switchover so there's plenty of time to work through this.

@tahayk
Copy link
Contributor

tahayk commented Feb 7, 2022

@Destreyf thank you for the logs,
yeah, the KeyError: 'isEvent' issue was fixed in v1.5.0 too.

Just to check with you, when you say "custom fields" you are referring to the custom events or metadata ?
because we found a different issue with metadata, but for custom events it was the same issue as KeyError.

@Destreyf
Copy link
Author

Destreyf commented Feb 7, 2022

It's Metadata, I can see that being confusing.

@tahayk
Copy link
Contributor

tahayk commented Feb 7, 2022

yeah, metadata had a different issues (payload validation issue between frontend-chalice and operator issue in chalice) and is was fixed in v1.5.0.

@estradino
Copy link
Contributor

Fixed in OpenReplay v1.5.0.

@estradino estradino changed the title Issue searching/filtering sessions. Issue searching/filtering sessions Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants