Code Monkey home page Code Monkey logo

Comments (4)

Willis0826 avatar Willis0826 commented on July 18, 2024

Hey, I assume you are running sam build && sam local start-api command in the http-apis folder. I can get the Hello auth output as the screenshots below.

Screenshot 2023-10-02 200408
Screenshot 2023-10-02 200918

What is your SAM CLI version? Mine is 1.94.0

from sam-local-authorizer-example.

CeccoCQ avatar CeccoCQ commented on July 18, 2024

Hi @Willis0826, it seems I overlooked the "sam build" command.
Your code works perfectly, but mine doesn't—I'll investigate further.

On another note, have you tried debugging with VSCode by adding a breakpoint to the auth function and the pong lambda?
For instance, if I pass a Bearer token in JWT format to the auth function and want to check its validity through debugging, do you think that's possible?

from sam-local-authorizer-example.

Willis0826 avatar Willis0826 commented on July 18, 2024

Ah, please feel free to let me know if you need any help with your SAM project.

I tried the VSCode debugger and AWS SAM stuff today, but I couldn't make it work. I also found out you have an open issue aws/aws-sam-cli#3749

The issue I faced is that I can not expose the debug port with sam local start-api -d 5858

from sam-local-authorizer-example.

Willis0826 avatar Willis0826 commented on July 18, 2024

Hey, I will close this issue for now. But please feel free to re-open this issue, if you would like me help with the SAM config.

from sam-local-authorizer-example.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.