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

Problem in the backend with JSON #20

Open
AchrafELKADIRI99 opened this issue Jan 1, 2022 · 5 comments
Open

Problem in the backend with JSON #20

AchrafELKADIRI99 opened this issue Jan 1, 2022 · 5 comments

Comments

@AchrafELKADIRI99
Copy link

Error message :
Traceback (most recent call last):
File "C:\Users\achra.conda\envs\attendance-system\lib\site-packages\flask\app.py", line 2091, in call
return self.wsgi_app(environ, start_response)
File "C:\Users\achra.conda\envs\attendance-system\lib\site-packages\flask\app.py", line 2076, in wsgi_app
response = self.handle_exception(e)
File "C:\Users\achra.conda\envs\attendance-system\lib\site-packages\flask_cors\extension.py", line 165, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "C:\Users\achra.conda\envs\attendance-system\lib\site-packages\flask_restful_init_.py", line 271, in error_router
return original_handler(e)
File "C:\Users\achra.conda\envs\attendance-system\lib\site-packages\flask\app.py", line 2073, in wsgi_app
response = self.full_dispatch_request()
File "C:\Users\achra.conda\envs\attendance-system\lib\site-packages\flask\app.py", line 1518, in full_dispatch_request
rv = self.handle_user_exception(e)
File "C:\Users\achra.conda\envs\attendance-system\lib\site-packages\flask_cors\extension.py", line 165, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "C:\Users\achra.conda\envs\attendance-system\lib\site-packages\flask_restful_init_.py", line 271, in error_router
return original_handler(e)
File "C:\Users\achra.conda\envs\attendance-system\lib\site-packages\flask\app.py", line 1516, in full_dispatch_request
rv = self.dispatch_request()
File "C:\Users\achra.conda\envs\attendance-system\lib\site-packages\flask\app.py", line 1502, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "C:\Users\achra.conda\envs\attendance-system\lib\site-packages\flask_restful_init_.py", line 471, in wrapper
return self.make_response(data, code, headers=headers)
File "C:\Users\achra.conda\envs\attendance-system\lib\site-packages\flask_restful_init_.py", line 500, in make_response
resp = self.representations[mediatype](data, *args, **kwargs)
File "C:\Users\achra.conda\envs\attendance-system\lib\site-packages\flask_restful\representations\json.py", line 21, in output_json
dumped = dumps(data, **settings) + "\n"
File "C:\Users\achra.conda\envs\attendance-system\lib\json_init_.py", line 238, in dumps
**kw).encode(obj)
File "C:\Users\achra.conda\envs\attendance-system\lib\json\encoder.py", line 201, in encode
chunks = list(chunks)
File "C:\Users\achra.conda\envs\attendance-system\lib\json\encoder.py", line 438, in _iterencode
o = _default(o)
File "C:\Users\achra.conda\envs\attendance-system\lib\json\encoder.py", line 179, in default
raise TypeError(f'Object of type {o.class.name} '
TypeError: Object of type function is not JSON serializable

@sellis1234
Copy link

Have you been working on this project for a while?

@AchrafELKADIRI99
Copy link
Author

Not really tried to work on it only for 1 day... It's an interesting project but i guess it's a complicated bug so i had no time to solve it...
Do you suggest a solution?

@sellis1234
Copy link

sellis1234 commented Jan 8, 2022 via email

@AchrafELKADIRI99
Copy link
Author

Hired me??? What ??? I was just trying to work on a similar project that's why i found that on LinkedIn and tried to fix it! I'm not working with that Jason!

@sellis1234
Copy link

How busy are you?

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