Comments (1)
When you run a Lambda function in your JAWS API, the data in that function's event.json file is submitted to the Lambda function. event.json should contain url params, url query strings and a JSON body submitted via a POST or PUT http request. -- I'm going to add this in comments in each of the event.json file and write more information to help you and everyone understand this tonight.
The event.json in the users/show function includes an access_token
. This access_token
is a JSON Web Token and it was left over from one of my own user records when I was developing JAWS. In short, the access token you are using does not pertain to any user records in your database.
You need to first follow the DynamoDB section in the Installation guide, run the user/sign-up function to create a user in your own DynamoDB Users table, then take the jwt/access token that is received when you sign up a new user and put it in the event.json to use with the users/show function.
Lots of helpful information on this process will be published in the next few hours.
Also, I will update the Installation guide to include that "Role Type" step. Sorry about that!
from serverless.
Related Issues (20)
- Function URLs get deleted (or won't get created) when provisioned capacity is set on Lambdas for AWS
- Serverless `support` command doesn't support multiple orgs or read the org in serverless.yml
- Compose CLI Command Schema HOT 2
- Advanced Lambda Logging - Undo Uppercase in YAML
- Deployment Failure with Python 3.12.2 HOT 2
- Can no longer reference layer in same service as function
- Implement Exponential Backoff Strategy for AWS API Deployment Rate Limits HOT 5
- Serverless support command occasionally includes the wrong command in report HOT 1
- Template generation produces incorrect template when Policies are specified using an intrinsic.
- `Fn::ForEach` Supported but an error is thrown on the CLI
- Node minimum version requirements? HOT 7
- Lambda invokeMode as RESPONSE_STREAM is not set in deployment
- Add support for docker build --cache-to / remote registry caching
- Unable to build v4 for testing HOT 1
- Error: Cannot find module 'node:events' HOT 3
- dependency [email protected] is vulnerabilty HOT 1
- Missing support for Ruby 3.3 runtime
- Add support for Dockerfile --secret
- Breaking Change in NodeJS 20.12.2 (Error: spawn EINVAL) HOT 2
- Serverless transpiling before provider environment variables initialization HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serverless.