What I'm doing here is passing some JSON through the 'rest.framework' . The problem is that when using 'request.json' I'm seeing the following being returned.
What I need to do is extract the JSON out . To do this , the following works.
What I'm doing here is passing some JSON through the 'rest.framework' . The problem is that when using 'request.json' I'm seeing the following being returned.
What I need to do is extract the JSON out . To do this , the following works.
Just a quick note , if you've searched and found this blog then I expect you already know deep down that the M1 chip is your issue. There is a solution though. Let me explain.
So, what we've been doing is using Lambda Layers to install Python packages on our Lambda installation. However, when putting the same code on my Mac ( M1 Chip ) it doesn't work !
https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html
It does work if we take the zip file from the AMD64 chipped Mac , and put that on my Mac and proceed.
That is the solution we're having to use at the moment , the zip needs to be compiled on the AMD64 chip , doing it on the M1 chip won't work.
Here's the error code I was getting.
The recommended solution across the web seemed to be to run the following.
pipenv install --upgrade setuptools
However, this didn't work for me. I needed to use the '--pre' tag.
pipenv install --pre email
This now works, the version I had the issue with was 'email-4.0.2'
So, if you have a 'email-4.0.2 won't pipenv install' issue then I hope this post helps.