I don't get the proper logs when sending data + also it doesn't cleans the sent events
So far it properly records events in the memory and also persist them properly in the .json file after you close the app, but for some reason I am having weird bugs when sending the events to the server.
The app successfully sends some events and it is not clear why it doesn't send something. When it does sends events, it just says "Socket is closed" and not the "Successfully sent data" that it's here . I also don't get the debug("Waiting longer to send data after $failedSubmissionCount failed attempts.") log. It also doesn't deletes the sent events from the memory so they get persisted + resended if I stop and run the app again.
The test server function does return the proper log.
I have no idea how it's happening but here is my toy project in which it doesn't work. The cleaninsights.json file needs to be added into raw/cleaninsights.json, I did't commit it because I didn't want to share the url of my server but it's defined like
{
"server": "...",
"siteId": ..,
"timeout": 5,
"debug": true,
"campaigns": {
"test": {
"start": "2024-06-05T01:11:00Z",
"end": "2030-06-30T17:21:00Z",
"aggregationPeriodLength": 1,
"numberOfPeriods":30,
"onlyRecordOnce": false,
"eventAggregationRule": "sum",
"strengthenAnonymity": false
}
}
}