Web Developer Portfolio Contact Form (Vue.js, AWS, Postman)
HTML-код
- Опубликовано: 1 ноя 2022
- In this video we go over how you can use AWS services to create a contact form on your portfolio. It will only take you 30 minutes to set it up and start receiving emails!
Наука
I'm very new to AWS and also needed to hook a server up for my portfolio form so this video came in handy. Thanks a lot and keep up the great work!!
I'm glad you found it helpful!!
Really really great instruction Blake! Hope you keep at it. Finding all of your tutorials extremely helpful in building out my portfolio.
I'm glad you found them to be helpful! I do have some video ideas in mind so hopefully you'll see those soon.
Would you mind sharing the repo for this tutorial? Thanks!
hello and thank u for this amazing video
i am having this issue when i invoke my url
{"message":"Missing Authentication Token"}
what could be the case?
This could be a couple of things! Make sure that the IAM role has the correct permissions. If that is not the issue then make sure you are passing the correct JWT from your cognito session if you are using that. Let me know if that helps.
@@devspot3864 Thank you for the quick response and the awesome content!
can please share the code?
Bro Put Videos about React js
I could do that! Thanks for the suggestion.
Hi! Thank you so much for your video. Kindly ask your assistance on this. I'm still encountering a 502 Bad Gateway Internal Server Error, even after adding the EmailPolicy. Can you assist me with this? I hope you can respond.
Have you checked the cloud watch logs? That may help. Your response format for the lambda may also be incorrect. I have been wanting to make some more videos so I will work on a video going over this very soon.
@@devspot3864 ty for your time. i am also getting that 502 Bad Gateway error. I also checked logs it returns some errors that i don't understand.
2023-11-19T23:36:58.279+03:00 INIT_START Runtime Version: nodejs:20.v13 Runtime Version ARN: arn:aws:lambda:eu-north-1::runtime:0593533e3a90a967b5685780855b7a89f7ba80b7d910603abf59369c6c4c7331
2023-11-19T23:36:58.350+03:00 2023-11-19T20:36:58.350Z undefined ERROR Uncaught Exception {"errorType":"Runtime.UserCodeSyntaxError","errorMessage":"SyntaxError: Unexpected token ';'","stack":["Runtime.UserCodeSyntaxError: SyntaxError: Unexpected token ';'"," at _loadUserApp (file:///var/runtime/index.mjs:1084:17)"," at async UserFunction.js.module.exports.load (file:///var/runtime/index.mjs:1119:21)"," at async start (file:///var/runtime/index.mjs:1282:23)"," at async file:///var/runtime/index.mjs:1288:1"]}
2023-11-19T23:36:58.371+03:00 INIT_REPORT Init Duration: 92.03 ms Phase: init Status: error Error Type: Runtime.ExitError
ps: i 've checked after i post this message. i think i did several syntax error while i was writing the lambda function.
I followed it the the T but am getting an error message "{"message":"Missing Authentication Token"}"
This could be a couple of things! Make sure that the IAM role has the correct permissions. If that is not the issue then make sure you are passing the correct JWT from your cognito session if you are using that. Let me know if that helps.
@@devspot3864 Thanks for the reply! The IAM role definitely has the right permissions. I don't think I am using a cognito session, how could I check this? I'm very new to all this backend stuff
@@stratocaster1134 I did some research, since I received the same message. (FYI I'm also new to this backend developing) Found out postman needs to be authenticated to aws to invoke the API. Still wasn't successful with the '200 Ok' message response but I believe I resolved the "missing authentication token" and now receiving "internal server error". On the mission of resolving that now.
Thanks @devspot3864 for the content. Looking forward for more! Also lmk if I didn't need to authenticate postman with AWS signature.
Received a successful status: 200 Ok! Found out my "internal server error" was due to the lambda runtime I was using. I created a new lambda function and used Node.js 14.x instead of Node.js 18.x