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

Object of type method is not JSON serializable #427

Open
Braintelligence opened this issue Jun 22, 2024 · 4 comments
Open

Object of type method is not JSON serializable #427

Braintelligence opened this issue Jun 22, 2024 · 4 comments

Comments

@Braintelligence
Copy link

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?

@danirus
Copy link
Owner

danirus commented Jun 23, 2024

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

@Braintelligence
Copy link
Author

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!

@danirus
Copy link
Owner

danirus commented Jun 26, 2024

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

@Braintelligence
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants