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

Incorrect data format for Mona #4

Closed
LauraLangdon opened this issue May 15, 2023 · 4 comments
Closed

Incorrect data format for Mona #4

LauraLangdon opened this issue May 15, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@LauraLangdon
Copy link

In Mona, The Bluesky timeline gets "Error: the data couldn't be read because it isn't in the current format".

image

Notifications load correctly, though!

@videah videah added the bug Something isn't working label May 16, 2023
@JunyuKuang
Copy link

Hi, thank you for reporting the issue, and thank @videah for creating this project. Mona’s developer here. I’ve made some client-side adjustments to make future versions of Mona compatible with this project, and I’d like to introduce some adjustment proposals so the project can work better with other Mastodon apps:

  1. Account objects should have non-nil values for statuses_count, following_count, and followers_count. Using 0 as a fallback value should be sufficient. Mastodon Doc
  2. Currently date strings are returned as something like this: “2023-05-20T07:10:16.288” which by default is incompatible with Apple’s date formatter ISO8601DateFormatter. To address it, a “Z” character needs to be added at the end, for example: “2023-05-20T07:10:16.288Z”
  3. Some endpoints (e.g. status lookup API) expect a single object, but the server currently returns an array of objects instead, which can cause JSON parsing failure.

@videah
Copy link
Owner

videah commented May 20, 2023

Thank you @JunyuKuang! I knew I was doing some things wrong in subtle ways but hadn't had the time to investigate yet so I really appreciate being pointed in the right direction. These issues should hopefully be fixed in 51b5bb0, f8d6a38, and 25e8eea.

I have had quite a few people coming to me asking for Mona support so I'm excited to get it closer to a more usable state, I'll be doing some more testing with it shortly

@JunyuKuang
Copy link

Great, thank you for the quick fix!

@videah
Copy link
Owner

videah commented Aug 4, 2023

Since Mona is more or less working now, I will close this issue, any more issue reports are welcome!

@videah videah closed this as completed Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants