Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: invalid json array string for android file storage #50

Merged
merged 1 commit into from
Jul 28, 2022

Conversation

bohan-amplitude
Copy link
Contributor

Summary

fix unterminated array
fix expected literal value at character 0

Checklist

  • Does your PR title have the correct title format?
  • Does your PR have a breaking change?: no

Copy link
Collaborator

@liuyang1520 liuyang1520 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, to double check, is this to handle the case that when a file is not newFile, but doesn't have any content inside?

@bohan-amplitude
Copy link
Contributor Author

@liuyang1520 I found two cases in the issue report, one is file already exist but empty, another is missing comma between start_session and end_session events. Still don't know what really caused the second one. But by check file length I think we can cover both cases.

@bohan-amplitude bohan-amplitude merged commit 593050a into amplitude:main Jul 28, 2022
github-actions bot pushed a commit that referenced this pull request Jul 29, 2022
# [1.1.0](v1.0.1...v1.1.0) (2022-07-29)

### Bug Fixes

* authorize for release action ([#47](#47)) ([5c44d34](5c44d34))
* invalid json array string for android file storage ([#50](#50)) ([593050a](593050a))

### Features

* add reset method to reset userId and deviceId ([#48](#48)) ([837895a](837895a))
@github-actions
Copy link

🎉 This PR is included in version 1.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@bohan-amplitude bohan-amplitude deleted the AMP-57268 branch August 12, 2022 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants