When the lambda triggers I am getting the following error
START RequestId: e62820aa-733b-4ef4-b750-c82ca20074fc Version: $LATEST
INFO (probot): App is loaded
INFO (event): Received PR open event
id: "d7c7fd70-100d-11ec-8fdd-a88238aa5068"
INFO (event): Approving new PR
id: "d7c7fd70-100d-11ec-8fdd-a88238aa5068"
ERROR (HttpError): Your private key (a .pem file or PRIVATE_KEY environment variable) or APP_ID is incorrect. Go to https://github.com/settings/apps/YOUR_APP, verify that APP_ID is set correctly, and generate a new PEM file if necessary.
HttpError: A JSON web token could not be decoded
at /var/task/src/node_modules/@octokit/request/dist-node/index.js:86:21
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async getInstallationAuthentication (/var/task/src/node_modules/@octokit/auth-app/dist-node/index.js:280:7)
at async hook (/var/task/src/node_modules/@octokit/auth-app/dist-node/index.js:449:7)
at async Job.doExecute (/var/task/src/node_modules/bottleneck/light.js:405:18) ```
I've set the following environment variables for the lambda
APP_ID
PRIVATE_KEY = (the value is from cat ghe_app_privateKey.pem)
WEBHOOK_SECRET
NODE_ENV
LOG_LEVEL
I'm trying to run the following probot using AWS Lambda that's getting events from a GHE instance.
return context.octokit.pulls.createReview(params);
instead.When the lambda triggers I am getting the following error
I've set the following environment variables for the lambda
Running all this in
nodejs12.x