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

Error after latest 0.16 dev build #176

Open
JoshuaSeidel opened this issue Dec 7, 2024 · 13 comments
Open

Error after latest 0.16 dev build #176

JoshuaSeidel opened this issue Dec 7, 2024 · 13 comments

Comments

@JoshuaSeidel
Copy link

I'm using your dev build as well that supports reviews. Updated to latest build and notifications stopped having labels in it, turned on debugging and only see this

2024/12/06 19:53:57 -0500 ERR events/reviews.go:51 > Unable to retrieve detection information error=500 detection_id=1733532835.988643-wmuxqn review_id=1733532837.240501-cfxmw9

Is there a way to capture everything to see the mqtt payload in here too?

@JoshuaSeidel
Copy link
Author

JoshuaSeidel commented Dec 7, 2024

here is a example of a event from homeassistant

{
  "before": {
    "id": "1733532391.455171-ntqkc9",
    "camera": "driveway",
    "frame_time": 1733534054.463705,
    "snapshot": {
      "frame_time": 1733532403.072841,
      "box": [
        39,
        104,
        355,
        344
      ],
      "area": 75840,
      "region": [
        0,
        0,
        452,
        452
      ],
      "score": 0.9921875,
      "attributes": [
        {
          "label": "license_plate",
          "score": 0.62109375,
          "box": [
            40,
            294,
            68,
            322
          ]
        }
      ]
    },
    "label": "car",
    "sub_label": null,
    "top_score": 0.99609375,
    "false_positive": false,
    "start_time": 1733532391.455171,
    "end_time": null,
    "score": 0.97265625,
    "box": [
      41,
      103,
      358,
      343
    ],
    "area": 76080,
    "ratio": 1.3208333333333333,
    "region": [
      0,
      9,
      428,
      437
    ],
    "active": false,
    "stationary": true,
    "motionless_count": 8308,
    "position_changes": 0,
    "current_zones": [
      "parking"
    ],
    "entered_zones": [
      "parking"
    ],
    "has_clip": false,
    "has_snapshot": false,
    "attributes": {
      "license_plate": 0.83984375
    },
    "current_attributes": [
      {
        "label": "license_plate",
        "score": 0.6796875,
        "box": [
          49,
          298,
          69,
          318
        ]
      }
    ],
    "pending_loitering": false
  },
  "after": {
    "id": "1733532391.455171-ntqkc9",
    "camera": "driveway",
    "frame_time": 1733534054.662122,
    "snapshot": {
      "frame_time": 1733532403.072841,
      "box": [
        39,
        104,
        355,
        344
      ],
      "area": 75840,
      "region": [
        0,
        0,
        452,
        452
      ],
      "score": 0.9921875,
      "attributes": [
        {
          "label": "license_plate",
          "score": 0.62109375,
          "box": [
            40,
            294,
            68,
            322
          ]
        }
      ]
    },
    "label": "car",
    "sub_label": null,
    "top_score": 0.99609375,
    "false_positive": false,
    "start_time": 1733532391.455171,
    "end_time": null,
    "score": 0.97265625,
    "box": [
      41,
      103,
      358,
      343
    ],
    "area": 76080,
    "ratio": 1.3208333333333333,
    "region": [
      0,
      9,
      428,
      437
    ],
    "active": false,
    "stationary": true,
    "motionless_count": 8309,
    "position_changes": 0,
    "current_zones": [
      "parking"
    ],
    "entered_zones": [
      "parking"
    ],
    "has_clip": false,
    "has_snapshot": false,
    "attributes": {
      "license_plate": 0.83984375
    },
    "current_attributes": [],
    "pending_loitering": false
  },
  "type": "update"
}```

@0x2142
Copy link
Owner

0x2142 commented Dec 7, 2024

Looks like frigate-notify is getting a 500 error when querying the event info from Frigate. Are you able to manually grab that event from http://<your frigate>/api/events/<event id>?

Also, you can enable trace logging to get additional stuff like MQTT messages & HTTP requests/responses.

@JoshuaSeidel
Copy link
Author

I'm having it get messages from mqtt? And it's hitting port 5000 so there shouldn't be any auth errors.

Will enabled trace and report back

@0x2142
Copy link
Owner

0x2142 commented Dec 7, 2024

Yeah we'll receive the review message via MQTT - but in order to look up details of the events within the review, we still have to hit the Frigate API.

@JoshuaSeidel
Copy link
Author

The frigate connection looks fine gets a 200 return. Waiting for the next review will send the startup trace that shows connectivity to frigate once I can get to my laptop and sanitize it

@JoshuaSeidel
Copy link
Author


2024/12/07 07:24:05 -0500 TRC events/mqtt.go:108 > New MQTT message received payload={"after":{"camera":"backyard","data":{"audio":[],"detections":["1733574244.216592-trxk6z"],"objects":["person"],"sub_labels":[],"zones":["patio"]},"end_time":null,"id":"1733574245.20694-btqpz7","severity":"alert","start_time":1733574245.20694,"thumb_path":"/media/frigate/clips/review/thumb-backyard-1733574245.20694-btqpz7.webp"},"before":{"camera":"backyard","data":{"audio":[],"detections":["1733574244.216592-trxk6z"],"objects":["person"],"sub_labels":[],"zones":["patio"]},"end_time":null,"id":"1733574245.20694-btqpz7","severity":"alert","start_time":1733574245.20694,"thumb_path":"/media/frigate/clips/review/thumb-backyard-1733574245.20694-btqpz7.webp"},"type":"new"}
2024/12/07 07:24:05 -0500 DBG events/mqtt.go:119 > New review received review_id=1733574245.20694-btqpz7
2024/12/07 07:24:05 -0500 INF events/reviews.go:29 > Processing review... camera=backyard num_detections=1 objects=person review_id=1733574245.20694-btqpz7 severity=alert zones=patio
2024/12/07 07:24:05 -0500 DBG events/reviews.go:32 > Review start time: 2024-12-07 07:24:05 -0500 EST review_id=1733574245.20694-btqpz7
2024/12/07 07:24:05 -0500 TRC util/httpclient.go:86 > HTTP GET headers=null insecure=false url=http://192.168.9.144:5000/api/events/1733574244.216592-trxk6z
zerolog: could not write event: cannot decode event: invalid character 'I' looking for beginning of value
2024/12/07 07:24:05 -0500 ERR events/reviews.go:54 > Unable to retrieve detection information error=500 detection_id=1733574244.216592-trxk6z review_id=1733574245.20694-btqpz7
2024/12/07 07:24:05 -0500 DBG notifier/alerts.go:152 > Rendered message template event_id= provider=Pushover rendered_template="Alert:  detected a ."
2024/12/07 07:24:05 -0500 DBG notifier/alerts.go:152 > Rendered title template event_id= provider=Pushover rendered_template="Frigate Alert"

@JoshuaSeidel
Copy link
Author

looks like something broke in the dev on frigate with the api updates.

2024-12-07 07:32:34.838139901  ERROR:    Exception in ASGI application
2024-12-07 07:32:34.838146647    + Exception Group Traceback (most recent call last):
2024-12-07 07:32:34.838150665    |   File "/usr/local/lib/python3.9/dist-packages/starlette/_utils.py", line 76, in collapse_excgroups
2024-12-07 07:32:34.838153690    |     yield
2024-12-07 07:32:34.838157207    |   File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/base.py", line 189, in __call__
2024-12-07 07:32:34.838159893    |     response_sent.set()
2024-12-07 07:32:34.838163295    |   File "/usr/local/lib/python3.9/dist-packages/anyio/_backends/_asyncio.py", line 815, in __aexit__
2024-12-07 07:32:34.838166202    |     raise BaseExceptionGroup(
2024-12-07 07:32:34.838169487    | exceptiongroup.ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
2024-12-07 07:32:34.838172337    +-+---------------- 1 ----------------
2024-12-07 07:32:34.838175130      | Traceback (most recent call last):
2024-12-07 07:32:34.838178467      |   File "/usr/local/lib/python3.9/dist-packages/uvicorn/protocols/http/h11_impl.py", line 406, in run_asgi
2024-12-07 07:32:34.838181476      |     result = await app(  # type: ignore[func-returns-value]
2024-12-07 07:32:34.838185075      |   File "/usr/local/lib/python3.9/dist-packages/uvicorn/middleware/proxy_headers.py", line 70, in __call__
2024-12-07 07:32:34.838188046      |     return await self.app(scope, receive, send)
2024-12-07 07:32:34.838191448      |   File "/usr/local/lib/python3.9/dist-packages/fastapi/applications.py", line 1054, in __call__
2024-12-07 07:32:34.838194430      |     await super().__call__(scope, receive, send)
2024-12-07 07:32:34.838197814      |   File "/usr/local/lib/python3.9/dist-packages/starlette/applications.py", line 113, in __call__
2024-12-07 07:32:34.838200800      |     await self.middleware_stack(scope, receive, send)
2024-12-07 07:32:34.838204261      |   File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/errors.py", line 187, in __call__
2024-12-07 07:32:34.838206866      |     raise exc
2024-12-07 07:32:34.838210343      |   File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/errors.py", line 165, in __call__
2024-12-07 07:32:34.838213204      |     await self.app(scope, receive, _send)
2024-12-07 07:32:34.838216621      |   File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/base.py", line 189, in __call__
2024-12-07 07:32:34.838219347      |     response_sent.set()
2024-12-07 07:32:34.838222361      |   File "/usr/lib/python3.9/contextlib.py", line 135, in __exit__
2024-12-07 07:32:34.838225190      |     self.gen.throw(type, value, traceback)
2024-12-07 07:32:34.838228588      |   File "/usr/local/lib/python3.9/dist-packages/starlette/_utils.py", line 82, in collapse_excgroups
2024-12-07 07:32:34.838231194      |     raise exc
2024-12-07 07:32:34.838234547      |   File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/base.py", line 187, in __call__
2024-12-07 07:32:34.838237493      |     response = await self.dispatch_func(request, call_next)
2024-12-07 07:32:34.838240788      |   File "/usr/local/lib/python3.9/dist-packages/slowapi/middleware.py", line 136, in dispatch
2024-12-07 07:32:34.838243616      |     response = await call_next(request)
2024-12-07 07:32:34.838247019      |   File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/base.py", line 163, in call_next
2024-12-07 07:32:34.838249660      |     raise app_exc
2024-12-07 07:32:34.838253047      |   File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/base.py", line 149, in coro
2024-12-07 07:32:34.838256066      |     await self.app(scope, receive_or_disconnect, send_no_error)
2024-12-07 07:32:34.838259415      |   File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/base.py", line 189, in __call__
2024-12-07 07:32:34.838263447      |     response_sent.set()
2024-12-07 07:32:34.838266475      |   File "/usr/lib/python3.9/contextlib.py", line 135, in __exit__
2024-12-07 07:32:34.838269266      |     self.gen.throw(type, value, traceback)
2024-12-07 07:32:34.838272598      |   File "/usr/local/lib/python3.9/dist-packages/starlette/_utils.py", line 82, in collapse_excgroups
2024-12-07 07:32:34.838275149      |     raise exc
2024-12-07 07:32:34.838278492      |   File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/base.py", line 187, in __call__
2024-12-07 07:32:34.838281460      |     response = await self.dispatch_func(request, call_next)
2024-12-07 07:32:34.838284688      |   File "/opt/frigate/frigate/api/fastapi_app.py", line 87, in frigate_middleware
2024-12-07 07:32:34.838287413      |     response = await call_next(request)
2024-12-07 07:32:34.838290772      |   File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/base.py", line 163, in call_next
2024-12-07 07:32:34.838293293      |     raise app_exc
2024-12-07 07:32:34.838296567      |   File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/base.py", line 149, in coro
2024-12-07 07:32:34.838299590      |     await self.app(scope, receive_or_disconnect, send_no_error)
2024-12-07 07:32:34.838302873      |   File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/base.py", line 189, in __call__
2024-12-07 07:32:34.838305525      |     response_sent.set()
2024-12-07 07:32:34.838308516      |   File "/usr/lib/python3.9/contextlib.py", line 135, in __exit__
2024-12-07 07:32:34.838311298      |     self.gen.throw(type, value, traceback)
2024-12-07 07:32:34.838314645      |   File "/usr/local/lib/python3.9/dist-packages/starlette/_utils.py", line 82, in collapse_excgroups
2024-12-07 07:32:34.838317198      |     raise exc
2024-12-07 07:32:34.838320535      |   File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/base.py", line 187, in __call__
2024-12-07 07:32:34.838323562      |     response = await self.dispatch_func(request, call_next)
2024-12-07 07:32:34.838327110      |   File "/usr/local/lib/python3.9/dist-packages/starlette_context/middleware/context_middleware.py", line 78, in dispatch
2024-12-07 07:32:34.838329887      |     response = await call_next(request)
2024-12-07 07:32:34.838333254      |   File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/base.py", line 163, in call_next
2024-12-07 07:32:34.838335803      |     raise app_exc
2024-12-07 07:32:34.838339052      |   File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/base.py", line 149, in coro
2024-12-07 07:32:34.838342026      |     await self.app(scope, receive_or_disconnect, send_no_error)
2024-12-07 07:32:34.838345369      |   File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/exceptions.py", line 62, in __call__
2024-12-07 07:32:34.838348484      |     await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
2024-12-07 07:32:34.838351847      |   File "/usr/local/lib/python3.9/dist-packages/starlette/_exception_handler.py", line 53, in wrapped_app
2024-12-07 07:32:34.838354341      |     raise exc
2024-12-07 07:32:34.838357735      |   File "/usr/local/lib/python3.9/dist-packages/starlette/_exception_handler.py", line 42, in wrapped_app
2024-12-07 07:32:34.838360537      |     await app(scope, receive, sender)
2024-12-07 07:32:34.838363911      |   File "/usr/local/lib/python3.9/dist-packages/starlette/routing.py", line 715, in __call__
2024-12-07 07:32:34.838366943      |     await self.middleware_stack(scope, receive, send)
2024-12-07 07:32:34.838369991      |   File "/usr/local/lib/python3.9/dist-packages/starlette/routing.py", line 735, in app
2024-12-07 07:32:34.838372801      |     await route.handle(scope, receive, send)
2024-12-07 07:32:34.838376062      |   File "/usr/local/lib/python3.9/dist-packages/starlette/routing.py", line 288, in handle
2024-12-07 07:32:34.838378879      |     await self.app(scope, receive, send)
2024-12-07 07:32:34.838382101      |   File "/usr/local/lib/python3.9/dist-packages/starlette/routing.py", line 76, in app
2024-12-07 07:32:34.838385765      |     await wrap_app_handling_exceptions(app, request)(scope, receive, send)
2024-12-07 07:32:34.838389156      |   File "/usr/local/lib/python3.9/dist-packages/starlette/_exception_handler.py", line 53, in wrapped_app
2024-12-07 07:32:34.838391721      |     raise exc
2024-12-07 07:32:34.838395134      |   File "/usr/local/lib/python3.9/dist-packages/starlette/_exception_handler.py", line 42, in wrapped_app
2024-12-07 07:32:34.838397976      |     await app(scope, receive, sender)
2024-12-07 07:32:34.838401139      |   File "/usr/local/lib/python3.9/dist-packages/starlette/routing.py", line 73, in app
2024-12-07 07:32:34.838403800      |     response = await f(request)
2024-12-07 07:32:34.838406935      |   File "/usr/local/lib/python3.9/dist-packages/fastapi/routing.py", line 327, in app
2024-12-07 07:32:34.838409645      |     content = await serialize_response(
2024-12-07 07:32:34.838413018      |   File "/usr/local/lib/python3.9/dist-packages/fastapi/routing.py", line 176, in serialize_response
2024-12-07 07:32:34.838415722      |     raise ResponseValidationError(
2024-12-07 07:32:34.838418691      | fastapi.exceptions.ResponseValidationError: 1 validation errors:
2024-12-07 07:32:34.838422240      |   {'type': 'bool_type', 'loc': ('response', 'false_positive'), 'msg': 'Input should be a valid boolean', 'input': None}
2024-12-07 07:32:34.838424791      |
2024-12-07 07:32:34.838427625      +------------------------------------
2024-12-07 07:32:34.838430063
2024-12-07 07:32:34.838433102  During handling of the above exception, another exception occurred:
2024-12-07 07:32:34.838435548
2024-12-07 07:32:34.838438264  Traceback (most recent call last):
2024-12-07 07:32:34.838441727    File "/usr/local/lib/python3.9/dist-packages/uvicorn/protocols/http/h11_impl.py", line 406, in run_asgi
2024-12-07 07:32:34.838444662      result = await app(  # type: ignore[func-returns-value]
2024-12-07 07:32:34.838447996    File "/usr/local/lib/python3.9/dist-packages/uvicorn/middleware/proxy_headers.py", line 70, in __call__
2024-12-07 07:32:34.838450793      return await self.app(scope, receive, send)
2024-12-07 07:32:34.838453871    File "/usr/local/lib/python3.9/dist-packages/fastapi/applications.py", line 1054, in __call__
2024-12-07 07:32:34.838456755      await super().__call__(scope, receive, send)
2024-12-07 07:32:34.838460010    File "/usr/local/lib/python3.9/dist-packages/starlette/applications.py", line 113, in __call__
2024-12-07 07:32:34.838462829      await self.middleware_stack(scope, receive, send)
2024-12-07 07:32:34.838466139    File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/errors.py", line 187, in __call__
2024-12-07 07:32:34.838468646      raise exc
2024-12-07 07:32:34.838471913    File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/errors.py", line 165, in __call__
2024-12-07 07:32:34.838474775      await self.app(scope, receive, _send)
2024-12-07 07:32:34.838478107    File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/base.py", line 189, in __call__
2024-12-07 07:32:34.838480655      response_sent.set()
2024-12-07 07:32:34.838483659    File "/usr/lib/python3.9/contextlib.py", line 135, in __exit__
2024-12-07 07:32:34.838486427      self.gen.throw(type, value, traceback)
2024-12-07 07:32:34.838489774    File "/usr/local/lib/python3.9/dist-packages/starlette/_utils.py", line 82, in collapse_excgroups
2024-12-07 07:32:34.838492266      raise exc
2024-12-07 07:32:34.838495560    File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/base.py", line 187, in __call__
2024-12-07 07:32:34.838498446      response = await self.dispatch_func(request, call_next)
2024-12-07 07:32:34.838555021    File "/usr/local/lib/python3.9/dist-packages/slowapi/middleware.py", line 136, in dispatch
2024-12-07 07:32:34.838558231      response = await call_next(request)
2024-12-07 07:32:34.838561491    File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/base.py", line 163, in call_next
2024-12-07 07:32:34.838564106      raise app_exc
2024-12-07 07:32:34.838567338    File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/base.py", line 149, in coro
2024-12-07 07:32:34.838570378      await self.app(scope, receive_or_disconnect, send_no_error)
2024-12-07 07:32:34.838573621    File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/base.py", line 189, in __call__
2024-12-07 07:32:34.838576193      response_sent.set()
2024-12-07 07:32:34.838579163    File "/usr/lib/python3.9/contextlib.py", line 135, in __exit__
2024-12-07 07:32:34.838581999      self.gen.throw(type, value, traceback)
2024-12-07 07:32:34.838585286    File "/usr/local/lib/python3.9/dist-packages/starlette/_utils.py", line 82, in collapse_excgroups
2024-12-07 07:32:34.838587866      raise exc
2024-12-07 07:32:34.838591115    File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/base.py", line 187, in __call__
2024-12-07 07:32:34.838594144      response = await self.dispatch_func(request, call_next)
2024-12-07 07:32:34.838597306    File "/opt/frigate/frigate/api/fastapi_app.py", line 87, in frigate_middleware
2024-12-07 07:32:34.838600101      response = await call_next(request)
2024-12-07 07:32:34.838603388    File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/base.py", line 163, in call_next
2024-12-07 07:32:34.838605935      raise app_exc
2024-12-07 07:32:34.838609196    File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/base.py", line 149, in coro
2024-12-07 07:32:34.838612076      await self.app(scope, receive_or_disconnect, send_no_error)
2024-12-07 07:32:34.838615344    File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/base.py", line 189, in __call__
2024-12-07 07:32:34.838617888      response_sent.set()
2024-12-07 07:32:34.838620801    File "/usr/lib/python3.9/contextlib.py", line 135, in __exit__
2024-12-07 07:32:34.838623574      self.gen.throw(type, value, traceback)
2024-12-07 07:32:34.838626898    File "/usr/local/lib/python3.9/dist-packages/starlette/_utils.py", line 82, in collapse_excgroups
2024-12-07 07:32:34.838629379      raise exc
2024-12-07 07:32:34.838632616    File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/base.py", line 187, in __call__
2024-12-07 07:32:34.838635436      response = await self.dispatch_func(request, call_next)
2024-12-07 07:32:34.838638881    File "/usr/local/lib/python3.9/dist-packages/starlette_context/middleware/context_middleware.py", line 78, in dispatch
2024-12-07 07:32:34.838641625      response = await call_next(request)
2024-12-07 07:32:34.838644921    File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/base.py", line 163, in call_next
2024-12-07 07:32:34.838647449      raise app_exc
2024-12-07 07:32:34.838650663    File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/base.py", line 149, in coro
2024-12-07 07:32:34.838653543      await self.app(scope, receive_or_disconnect, send_no_error)
2024-12-07 07:32:34.838656848    File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/exceptions.py", line 62, in __call__
2024-12-07 07:32:34.838659993      await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
2024-12-07 07:32:34.838663326    File "/usr/local/lib/python3.9/dist-packages/starlette/_exception_handler.py", line 53, in wrapped_app
2024-12-07 07:32:34.838665831      raise exc
2024-12-07 07:32:34.838669218    File "/usr/local/lib/python3.9/dist-packages/starlette/_exception_handler.py", line 42, in wrapped_app
2024-12-07 07:32:34.838671854      await app(scope, receive, sender)
2024-12-07 07:32:34.838675015    File "/usr/local/lib/python3.9/dist-packages/starlette/routing.py", line 715, in __call__
2024-12-07 07:32:34.838677882      await self.middleware_stack(scope, receive, send)
2024-12-07 07:32:34.838681073    File "/usr/local/lib/python3.9/dist-packages/starlette/routing.py", line 735, in app
2024-12-07 07:32:34.838683836      await route.handle(scope, receive, send)
2024-12-07 07:32:34.838687100    File "/usr/local/lib/python3.9/dist-packages/starlette/routing.py", line 288, in handle
2024-12-07 07:32:34.838689960      await self.app(scope, receive, send)
2024-12-07 07:32:34.838693087    File "/usr/local/lib/python3.9/dist-packages/starlette/routing.py", line 76, in app
2024-12-07 07:32:34.838696078      await wrap_app_handling_exceptions(app, request)(scope, receive, send)
2024-12-07 07:32:34.838699450    File "/usr/local/lib/python3.9/dist-packages/starlette/_exception_handler.py", line 53, in wrapped_app
2024-12-07 07:32:34.838701929      raise exc
2024-12-07 07:32:34.838705238    File "/usr/local/lib/python3.9/dist-packages/starlette/_exception_handler.py", line 42, in wrapped_app
2024-12-07 07:32:34.838707965      await app(scope, receive, sender)
2024-12-07 07:32:34.838711146    File "/usr/local/lib/python3.9/dist-packages/starlette/routing.py", line 73, in app
2024-12-07 07:32:34.838713757      response = await f(request)
2024-12-07 07:32:34.838716892    File "/usr/local/lib/python3.9/dist-packages/fastapi/routing.py", line 327, in app
2024-12-07 07:32:34.838719636      content = await serialize_response(
2024-12-07 07:32:34.838722900    File "/usr/local/lib/python3.9/dist-packages/fastapi/routing.py", line 176, in serialize_response
2024-12-07 07:32:34.838725554      raise ResponseValidationError(
2024-12-07 07:32:34.838728407  fastapi.exceptions.ResponseValidationError: 1 validation errors:
2024-12-07 07:32:34.838731882    {'type': 'bool_type', 'loc': ('response', 'false_positive'), 'msg': 'Input should be a valid boolean', 'input': None}
2024-12-07 07:32:34.838734313
2024-12-07 07:32:34.995049983  192.168.7.78 - - [07/Dec/2024:07:32:34 -0500] "GET /favicon.ico HTTP/1.1" 200 2650 "http://192.168.9.144:5000/api/events/1733574244.216592-trxk6z" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36" "-"

@0x2142
Copy link
Owner

0x2142 commented Dec 7, 2024

Ahh, okay. Good to know. Yeah then it's probably worth reverting to an earlier build until that's fixed and/or open an issue with them. For what it's worth, I only run & develop against the latest Frigate beta.

@JoshuaSeidel
Copy link
Author

Why does it need to make an api call? If it's set to mqtt, can't it just get everything from mqtt?

@0x2142
Copy link
Owner

0x2142 commented Dec 8, 2024

Frigate reviews are a collection of one or more detections / events. When we get the review MQTT message, it gives us the list of event IDs that are part of the review item. The review MQTT message doesn't contain all the same information as the event messages - so we make an API call at this point to look up some of those additional details from the event IDs in the review.

@JoshuaSeidel
Copy link
Author

im reverting to a older commit, but its likley one of these two commits

blakeblackshear/frigate@d3b631a
blakeblackshear/frigate@bb86e71

i dunno if its a bug or just a change in how the api is handling things, but i figured i would send it over in-case its a intended change and any code change here would be needed.

@JoshuaSeidel
Copy link
Author

Frigate reviews are a collection of one or more detections / events. When we get the review MQTT message, it gives us the list of event IDs that are part of the review item. The review MQTT message doesn't contain all the same information as the event messages - so we make an API call at this point to look up some of those additional details from the event IDs in the review.

what things are you looking for that are not within the mqtt message? i know labels and image urls should be in there

@0x2142
Copy link
Owner

0x2142 commented Dec 11, 2024

A few that I'm using are top_score, has_clip, and has_snapshot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants