Probotect0r
Probotect0r
HHono
Created by Probotect0r on 9/6/2024 in #help
event.pathParameters not populated on AWS Lambda event object
I ended up doing this:
const event = c.env.event as APIGatewayProxyEventV2
event.pathParameters = c.req.param()
const event = c.env.event as APIGatewayProxyEventV2
event.pathParameters = c.req.param()
And had to import the type like this:
import { APIGatewayProxyEventV2 } from "hono/dist/types/adapter/aws-lambda/handler";
import { APIGatewayProxyEventV2 } from "hono/dist/types/adapter/aws-lambda/handler";
2 replies
HHono
Created by Probotect0r on 9/4/2024 in #help
doc endpoint returns 500 with no errors in logs
Okay figured it out, it's working now. Some of the routes didn't have a proper schema.
4 replies
HHono
Created by Probotect0r on 9/4/2024 in #help
doc endpoint returns 500 with no errors in logs
Okay, now I am populating the schemas correctly, but still getting a 500 back
4 replies
HHono
Created by Probotect0r on 9/4/2024 in #help
doc endpoint returns 500 with no errors in logs
Ah nvm, I think I might have figured out what's wrong. My schemas are not populated correctly
4 replies