The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

536973 (2) [Avatar] Offline
[ 21 KB ]
Using the Policies, HTML, Js and Lambdas...I'm getting this error when trying to test the createUser Lambda provided. Anybody have any ideas why this may happen?
536973 (2) [Avatar] Offline
[ 4 KB ]
Here's the Lambda
adamba (6) [Avatar] Offline
Looking at cryptoUtils.js, on p. 169, that is probably complaining about the first parameter, password, which is also the first parameter to computeHash(), which is being called at line 85 of ll.js; it comes from event.password, where event is passed in to the handler.

When you say "test it", do you mean clicking on "Test" from the AWS Lambda console? I get the same error (or *almost* the same error, it just says "TypeError: Not a buffer") if I just test it with an empty input event. If I set the right fields (password, email, and in my case name since I did the exercise to add that) then it works.