Set calendar in recurrence once cause error

comi2 years 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 Tananaev2 years ago

Check the network request.

comi2 years ago

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

API payload:

{"id":6,"attributes":{},"name":"test report","data":"QkVHSU46VkNBTEVOREFSClZFUlNJT046Mi4wClBST0RJRDotLy9UcmFjY2FyLy9OT05TR01MIFRyYWNjYXIvL0VOCkJFR0lOOlZFVkVOVApVSUQ6MDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwCkRUU1RBUlQ7VFpJRD1Bc2lhL1RhaXBlaToyMDIzMDYyNlQwNzAwMDAKRFRFTkQ7VFpJRD1Bc2lhL1RhaXBlaToyMDIzMDYyNlQxMTAwMDAKUlJVTEU6ClNVTU1BUlk6RXZlbnQKRU5EOlZFVkVOVApFTkQ6VkNBTEVOREFS"}
Anton Tananaev2 years ago

Does it work if you make it recurring?

comi2 years 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 Tananaev2 years 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.

comi2 years ago

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

Anton Tananaev2 years 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.