thunder icon indicating copy to clipboard operation
thunder copied to clipboard

I can't post comments. type'_Map<String, dynamic> is not a subtype of type 'String'

Open marbris opened this issue 1 year ago • 15 comments

Whenever I send a comment, I get the following message:

type'_Map<String, dynamic> is not a subtype of type 'String'

And the comment is not posted.

I'm using thunder version 0.5.1. I have reinstalled the app and restarted my phone (android 14, galaxy a15 5g).

This has been an issue for a few weeks. I saw someone else posting the same issue in the thunder-app community, but didn't see an issue for it here.

marbris avatar Oct 16 '24 22:10 marbris

Thanks for the report! Could you provide a step-by-step guide on what you did to get this error?

For example, did you use the swipe gesture to reply to a comment, use the FAB to reply, etc. It would also be helpful to include a video recording if possible so that we can reproduce it on our end. Thanks!

hjiangsu avatar Oct 17 '24 15:10 hjiangsu

Whenever possible, could you also provide information on the instance you're using and their version? (e.g., lemmy.world, v0.19.3). Thanks!

hjiangsu avatar Oct 18 '24 19:10 hjiangsu

I'm on lemmy.world (v0.19.3).

I got the error by

  1. clicking on a post to enter the comment view,
  2. clicking the arrow below the post
  3. writing a comment
  4. clicking send

However, can't reproduce the error anymore. I don't know why. so I'll close the issue. I'll upload a video if it happens again.

marbris avatar Oct 18 '24 20:10 marbris

Sounds good! Thanks for double checking this, and definitely open up a new issue if it happens again.

hjiangsu avatar Oct 18 '24 20:10 hjiangsu

https://github.com/user-attachments/assets/2f3f451e-d4a6-46b0-beb4-5d28176f770b

The issue is ongoing but sporadic.

marbris avatar Oct 21 '24 19:10 marbris

@marbris, when you see this issue, is it just a one-off? Like if you immediately try to comment again, it works fine?

Or does it keep happening for long periods of time, and you have to wait minutes/hours/days until you are able to comment again?

micahmo avatar Oct 22 '24 01:10 micahmo

@micahmo i cant comment for long periods of time. I tried again just now and the same thing happens.

It's hard to tell how long it doesn't work since I only feel like commenting every few weeks. But I know it didn't work several weeks apart.

marbris avatar Oct 22 '24 02:10 marbris

I've been trying to reproduce this but have not been able to get it to trigger unfortunately 😔. The weird thing here is how you mentioned it was sporadic, so I'm not sure how to accurately reproduce this.

@micahmo have you encountered this situation?

hjiangsu avatar Oct 24 '24 17:10 hjiangsu

@micahmo have you encountered this situation?

I have not unfortunately. 😞

micahmo avatar Oct 24 '24 17:10 micahmo

I've had this same issue before; not sure what causes it but I suspect something with my user settings from when I was developing a while back. When I have an issue with my account (also on lemmy.world) I've tried switching to an account on a different instance and I can comment with that one. Perhaps an issue either with the instance or my account settings?

iparks99 avatar Dec 14 '24 02:12 iparks99

I made another account on another instance (lemmy.wtf version 0.19.5). From there, lm able to post comments on posts hosted on lemmy.world. i was not able to post comments on that same post from my lemmy.world account. So this seems to be a lemmy issue.

The issue has been on and off since I first posted the issue. I could post comments from about 1 month ago up until about a week ago. And now the issue is back.

I've also noticed that if the comment has been saved as a draft, the draft is deleted when i hit send. Despite the comment never appearing.

When i exit the comment field after having hit send (and failing to post comment), the comment is not saved as a draft.

marbris avatar Dec 18 '24 05:12 marbris

I'm running into this about 90% of the time I try to comment on lemmy.world ever since they updated past Lemmy 0.19.3.

jgeorgeson avatar Apr 04 '25 13:04 jgeorgeson

@jgeorgeson Thanks for bringing this back up - could I ask you a few additional questions to further troubleshoot this issue? I haven't been able to reliably reproduce this issue which is why there was never a fix applied.

  1. Are you using an account on lemmy.world to comment, or is your account on a different instance?
  2. If you have accounts on other instances, does this happen there or is it specific to lemmy.world?
  3. Are you using a VPN when commenting? I know lemmy.world restricts VPNs so this could be a potential cause.

hjiangsu avatar Apr 04 '25 16:04 hjiangsu

  1. My account is on lemmy.world (currently on Lemmy BE 0.19.10)
  2. I hadn't tried, but adding an account from another instance (sdf.org, Lemmy BE 0.19.8) to my Thunder app now, I am able to comment on lemmy.world posts from the other instance
  3. No VPN

jgeorgeson avatar Apr 04 '25 16:04 jgeorgeson

For #2 I also now tested commenting on lemmy.world posts from lemmy.one (BE 0.19.7) and lemmy.ml (BE 0.19.11-beta.1) and they worked. So it definitely seems specific to lemmy.world.

jgeorgeson avatar Apr 04 '25 16:04 jgeorgeson