Having issues getting `sst.ApiGatewayV1Api` to NOT...
# help
d
Having issues getting
sst.ApiGatewayV1Api
to NOT validate the incoming request. Previously, I had
sst.Api
working as a webhook for Contentful and it worked out of the box. I’ve now setup the same code but in
sst.ApiGatewayV1Api
and now I’m getting…
"__type": "ValidationException", "message": "1 validation error detected: Value null at 'entries' failed to satisfy constraint: Member must not be null"
I have not set ANY validation on the Api which leads me to believe there is one there by default? How can I fix this issue, as I don’t have any control over the format that Contentful is sending.
f
Hey @Dan Van Brunt, i’m not sure if this is related,
sst.Api
uses the HTTP Api behind the scene and the default payload format is v2. Where as
sst.ApiGatewayV1Api
uses the REST Api and the default payload format is v1.
^ i don’t think REST Api supports v1.
d
Turns out I think this is an error NOT with APIG but with the service integration with EventBridge. This seems to be an error after transformations and once the request is sent to EventBridge.
Still working through how to solve
@Frank Hmmmm, Actionally… now I’m super confused. I’ve stripped out all the transformations from the route… but its still erroring out… so now it feels like maybe it is the format of the original webhook request that breaking things?
f
hmm… I haven’t tried APIv1 integraiton.. were you able to get it to work?