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

JSONDecodeError not caught correctly when using AWS Lambda #255

Closed
wizedkyle opened this issue Oct 4, 2022 · 0 comments · Fixed by #259
Closed

JSONDecodeError not caught correctly when using AWS Lambda #255

wizedkyle opened this issue Oct 4, 2022 · 0 comments · Fixed by #259

Comments

@wizedkyle
Copy link

When you are running code using TheHive4Py 2.0.0b2 on AWS Lambda and you interact with a function that returns a None response you get a JSONDecodeError:

image

This error appears to be coming from

. It is most likely caused by the fact that JSONDecodeError is coming from from json.decoder import JSONDecodeError as Lambda my not include either simplejson or json unlike when you import JSONDecodeError from requests.

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