Skip to content
This repository has been archived by the owner on Feb 27, 2021. It is now read-only.

Object of type 'WSGIRequest' is not JSON serializable #24

Open
yaserrahimi opened this issue Jul 21, 2018 · 1 comment
Open

Object of type 'WSGIRequest' is not JSON serializable #24

yaserrahimi opened this issue Jul 21, 2018 · 1 comment

Comments

@yaserrahimi
Copy link

my code:


@background(schedule=60)
def g_trends(request):
	get_trends()
	return HttpResponse('hello')

when i run code in django and i get to my url for that function i get this error:
Object of type 'WSGIRequest' is not JSON serializable
how can i fix it?

@RyabykinIlya
Copy link

do not send request as task argument.
that object type does not JSON serializable, it can not be stored in database as argument

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

No branches or pull requests

2 participants