-
Notifications
You must be signed in to change notification settings - Fork 37
"errorMessage": "Cannot convert undefined or null to object", #129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can you please share some code demonstrating your issue? |
I'm struggling with the same, I have the following. Sourceimport { Probot } from "probot";
import { createLambdaFunction, createProbot } from "@probot/adapter-aws-lambda-serverless";
const app = (app: Probot) => {
app.log.info("TODO");
};
export const handler = async (event: any, context: any) => {
return createLambdaFunction(app, { probot: createProbot() })(event, context);
}; Bundling
package.json
|
I made some progress in my investigation. So, what I was trying to do:
However, then payload sent to the lambda function during the test was not an HTTP event but an example object. I switched the test payload to the API Gateway HTTP API template which is an object that had the HTTP headers (expected by the lambda-function) so I got a different but reasonably expected error: Snippet:
So, so far my conclusion is that I may be able to work may way through and get it working. But, from the |
My probot lambda function is having issue above.
The text was updated successfully, but these errors were encountered: