OldTyT / frigate-telegram

Frigate telegram event notifications.
24 stars 2 forks source link

Error after recent Update: #21

Open ne0ark opened 6 days ago

ne0ark commented 6 days ago

Hello,

I am getting the following error:

Error unmarshal json: json: cannot unmarshal string into Go struct field .sub_label of type []interface {}
EventID: ALL

Thanks

OldTyT commented 6 days ago

Oh...

OldTyT commented 6 days ago

@ne0ark, hello! I am not getting this error. Can you show the data that frigate returns on the endpoint /api/events Docs? Try updating the image.

OldTyT commented 6 days ago

This error could have been caused as part of the work on #19

ne0ark commented 6 days ago

Hello, the error stopped. I will provide a log once it happens again.

ne0ark commented 4 hours ago

This error could have been caused as part of the work on #19

Seems like error is back again:Error unmarshal json: json: cannot unmarshal string into Go struct field .sub_label of type []interface {} EventID: ALL

 {
    "box": null,
    "camera": "frontdoor",
    "data": {
      "attributes": [
        {
          "box": [0.478125, 0.0462962962962963, 0.0130208333333333, 0.0148148148148148],
          "label": "license_plate",
          "score": 0.71875
        }
      ],
      "box": [0.404166666666667, 0, 0.0963541666666667, 0.0787037037037037],
      "region": [0.353645833333333, 0, 0.166666666666667, 0.296296296296296],
      "score": 0.90625,
      "top_score": 0.90625,
      "type": "object"
    },
    "end_time": 1731947905.32525,
    "false_positive": null,
    "has_clip": false,
    "has_snapshot": true,
    "id": "1731947889.226455-an77dc",
    "label": "car",
    "plus_id": null,
    "retain_indefinitely": false,
    "start_time": 1731947884.22646,
    "sub_label": null,