django-comments-xtd icon indicating copy to clipboard operation
django-comments-xtd copied to clipboard

Object of type method is not JSON serializable

Open Braintelligence opened this issue 1 year ago • 5 comments

Hello everyone,

so my setup is Python 3.11 and Django 4.1.5

I tried Django Restframework on 3.14.0 and 3.15.1 and django-comments-xtd on 2.9.13 and 2.10.0 (in all 4 permutations) but I always get this when the JavaScript tries to reach /comments/api/app-model/id/ to view the comments (or if I try to do it manually in the browser):

TypeError at /comments/api/app-model/id/
Object of type method is not JSON serializable

Any idea what might be the issue?

Braintelligence avatar Jun 22 '24 18:06 Braintelligence

Hi @Braintelligence, would it be possible to create a repository with the code? I could look into it and give you feedback.

danirus avatar Jun 23 '24 04:06 danirus

Hello @danirus, thanks for answering. It's a closed source project but I can give you specific access to the gitlab repo it's residing on if that would help you, I'd just need a mail address I could send the invitation to. Don't mind the horrible code tho 😄 Or we could do a remote session if you want where I show and explain. Thanks!

Braintelligence avatar Jun 23 '24 13:06 Braintelligence

Sorry for the late reply, you can add me using this email address: [email protected].

danirus avatar Jun 26 '24 15:06 danirus

Thanks, I added you and gave you some permissions; I hope they suffice.

Braintelligence avatar Jun 26 '24 15:06 Braintelligence

Hi @Braintelligence, did you manage to resolve the problem?

danirus avatar Mar 24 '25 05:03 danirus