Device.calendarId

kris5 days ago

I have a strange incompatibility with the Device Entitiy.
My server is v.6.10.0 and my Android Client is v9.6.4
When I send a position to the server it is immidiately displayed on the map.
But then I get the devices message via Websocket:
{devices=[{id=9, attributes={}, groupId=0, calendarId=0, name= etc.
which throws an java.lang.IllegalArgumentException: Unrecognized field "calendarId"
When I check the openapi.yaml files the Device never had a calendarId.
Thanks for a hint!
And keep up the great work.

Anton Tananaev5 days ago

I'm very confused. What is throwing the exception? You are?

kris5 days ago

Hello Anton,
I am the guy that wrote about netty and traccar long time ago.
And sorry about the Exception - It's on my client side.
Traccar Server and Android Cient a working perfectly as usual.

I wrote a WebSocket client by generating a java client from the traccar openapi.yaml
I thought that traccar websocket is sending Devices defined in the yaml file.
But the websocket message coming from traccar has the field calendarId,
which is not defined in openapi.yaml > components > schemas > Device
But I will look at your implementation and find out what I got wrong.