2 Risposte
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
0
Can you please follow these two Knowledge Articles and see if it helps.
0
I think the issue doesn't lie in creating deployments or layers for nodejs or python for nanoid.
As per https://github.com/ai/nanoid/issues/289 and https://github.com/puyuan/py-nanoid/issues/22, the issue seems to be that using nanoid in AWS Lambda there are chances of running into problems with nanoid not having enough entropy to create secure ids.
One of the workaround provided in those articles is to use Node's crypto that waits for entropy collection or if you intend to use python, it is also good to look into urandom. Check https://lwn.net/Articles/693189/
If the answer is helpful, please click "Accept Answer" and upvote it.
con risposta 10 mesi fa
Contenuto pertinente
- AWS UFFICIALEAggiornata 2 anni fa
- AWS UFFICIALEAggiornata 2 anni fa
I have tried the above-given workarounds, although it still gives me the same error.
Can you please make sure that you are not following the steps on Mac, as that can cause problem sometime.
Yes I have tried them on Windows, yet they still give me the "can not import nanoid" error.