-
Notifications
You must be signed in to change notification settings - Fork 340
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
[Bug]: Export fails #2413
Comments
Can you post the malformed json? |
it gets cut off just before the |
Yeah, I looked a bit more, its any |
I cant reproduce this in unit tests, but it does happen when I try to make an export on voyager.lemmy.ml with your bio. But calling the export endpoint with curl works as expected: {"display_name":null,"bio":"Punch nazis, trebuchet TERFs.\n\nI am building [Voyager](https://github.com/aeharding/voyager#readme), a client for lemmy!","avatar":null,"banner":null,"matrix_id":null,"bot_account":false,"settings":{"id":1,"person_id":2,"show_nsfw":false,"theme":"browser","default_sort_type":"Active","default_listing_type":"Local","interface_language":"browser","show_avatars":true,"send_notifications_to_email":false,"show_scores":true,"show_bot_accounts":true,"show_read_posts":true,"email_verified":false,"accepted_application":false,"open_links_in_new_tab":false,"blur_nsfw":true,"auto_expand":false,"infinite_scroll_enabled":false,"admin":true,"post_listing_mode":"List","totp_2fa_enabled":false,"enable_keyboard_navigation":false,"enable_animated_images":true,"collapse_bot_comments":false},"vote_display_mode_settings":{"local_user_id":1,"score":true,"upvotes":false,"downvotes":false,"upvote_percentage":true},"followed_communities":["https://enterprise.lemmy.ml/c/main","https://voyager.lemmy.ml/c/test2","https://voyager.lemmy.ml/c/test","https://gehirneimer.de/m/Test","https://voyager.lemmy.ml/c/test3"],"saved_posts":[],"saved_comments":[],"blocked_communities":[],"blocked_users":[],"blocked_instances":[]}⏎ So it seems like the browser is messing something up (Firefox in my case). But from what I can find |
The downloaded file is also cut off in Chrome |
Visiting https://instance/api/v3/user/export_settings in Firefox displays pretty JSON, then saving with cmd+s or the save button at the top of the pretty JSON view both downloads the full file. |
Maybe a bug in lemmy-ui? |
Yes, my apologies, I believe this is a lemmy-ui bug. PR made :) |
Requirements
Summary
Export fails with certain bio.
Steps to Reproduce
Set bio to following:
Try to export.
See malformed JSON.
Technical Details
None
Version
0.19.3
Lemmy Instance URL
Tested various instances and various browsers
The text was updated successfully, but these errors were encountered: