aws-samples / aws-modern-application-workshop

A tutorial for developers that want to learn about how to build modern applications on top of AWS. You will build a sample website that leverages infrastructure as code, containers, serverless code functions, CI/CD, and more.
Apache License 2.0
1.46k stars 829 forks source link

Module 4 - Adoption and 'Like' does not work #250

Open kristofrk opened 3 years ago

kristofrk commented 3 years ago

I just finished Module 4. Adoption and Like doesn't seem to work. When looking at index.html it some problems are flagged (localstorage not defined). The web site seems fine, but clicking on the adoption button and the heart have no effect. Has anyone seen this as well?

kristofrk commented 3 years ago

After posting, I realized that the code build for Module 4 failed, due to an outdated Dockerfile (still using Python 2 and pip). When replacing this Dockerfile with the one in Module 2, adoption works, but 'likes' still don't.

gmarchand commented 3 years ago

Module 4 of python CDK doesn't implement getMysfit() and likeMysfit, you can find the code in Module 4 of python

kristofrk commented 3 years ago

Thanks. I am not using the CDK, but will look at the code.

On Sat, Apr 10, 2021 at 5:57 AM Guillaume Marchand @.***> wrote:

Module 4 of python CDK doesn't implement getMysfit() and likeMysfit, you can find the code in Module 4 of python

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/aws-samples/aws-modern-application-workshop/issues/250#issuecomment-817110702, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABCQDC3LBI4LH6M2F6J26QLTIAOKDANCNFSM42P2VMXA .

--

Dr. Kristof Kloeckner @.***

kristofrk commented 3 years ago

I have now changed the network configuration to public subnets and an ALB. I can see the mysfits and their profiles and apply filters, but I still cannot like a mysfit or adopt one. I am using Python (not the CDK). I changed the API Gateway integration to HTTP_Proxy. Not sure what I am missing.