Set calendar in recurrence once cause error

comia year ago

I use Traccar v5.8, set calendar as the content of image

https://i.imgur.com/LhQ4H2j.png

the error messages:

Missing expected token, last token: at [Source: (org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream); line: 1, column: 53] (through reference chain: org.traccar.model.Calendar["data"])
Anton Tananaeva year ago

Check the network request.

comia year ago

Request URL: (ignore......)/api/calendars/6
Request Method: PUT

API payload:

{"id":6,"attributes":{},"name":"test report","data":"QkVHSU46VkNBTEVOREFSClZFUlNJT046Mi4wClBST0RJRDotLy9UcmFjY2FyLy9OT05TR01MIFRyYWNjYXIvL0VOCkJFR0lOOlZFVkVOVApVSUQ6MDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwCkRUU1RBUlQ7VFpJRD1Bc2lhL1RhaXBlaToyMDIzMDYyNlQwNzAwMDAKRFRFTkQ7VFpJRD1Bc2lhL1RhaXBlaToyMDIzMDYyNlQxMTAwMDAKUlJVTEU6ClNVTU1BUlk6RXZlbnQKRU5EOlZFVkVOVApFTkQ6VkNBTEVOREFS"}
Anton Tananaeva year ago

Does it work if you make it recurring?

comia year ago

Hi Anton,

I try to set a daily calendar in https://demo4.traccar.org/
https://i.imgur.com/ZLjVcDV.png

request payload:

{"id":1,"attributes":{},"name":"send 09:20","data":"QkVHSU46VkNBTEVOREFSClZFUlNJT046Mi4wClBST0RJRDotLy9UcmFjY2FyLy9OT05TR01MIFRyYWNjYXIvL0VOCkJFR0lOOlZFVkVOVApVSUQ6MDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwCkRUU1RBUlQ7VFpJRD1Bc2lhL1RhaXBlaToyMDIzMDYyNlQwMjAwMDAKRFRFTkQ7VFpJRD1Bc2lhL1RhaXBlaToyMDIzMDYyOFQwOTIwMDAKUlJVTEU6RlJFUT1EQUlMWQpTVU1NQVJZOkV2ZW50CkVORDpWRVZFTlQKRU5EOlZDQUxFTkRBUg=="}

And connect the calendar with reports like this.
https://i.imgur.com/Cpj5Z0Q.png

I expected to receive a report email at 9:20 AM on 6/28 but did not receive it.

I use the "Test Channels" in the notification page, and I have confirmed that I can receive the test mail.

Anton Tananaeva year ago

You have a daily report with more than 2 days period. It won't work like that. You have to have at least 15 minutes between events in your calendar.

comia year ago

Thanks Anton, it can work on daliy recurring after I update the calendar.
Still can't set recurrence to once.

Anton Tananaeva year ago

Once doesn't really make much sense to me, but feel free to create a ticket for it. Make sure to include some use cases for it.