Wait until build (including possible legacy data migration) is finished - otherwise legacy data (previous session id, last event time/id) can be not saved to the storage yet.
The fix doesn't help with original issue (mailformed json).
Checklist
[x] Does your PR title have the correct title format?
Summary
Wait until build (including possible legacy data migration) is finished - otherwise legacy data (previous session id, last event time/id) can be not saved to the storage yet. The fix doesn't help with original issue (mailformed json).
Checklist