#Cavalaa
1 messages · Page 1 of 1 (latest)
hi! not really. What's your current question?
basically having an issue with my webhook, it seems as though my server is set up properly and the URL's are matching but I'm getting 404 errors with every webhook event
this is the most recent one: evt_3N80FzAm5odgtJUY16qEgn1I
seems like your server is not set up properly then. Does it work if you manually visit your URL or manually use curl etc to send a HTTP request to it?
// create server
server := gin.New()
// add middleware
server.Use(gin.Logger())
server.Use(gin.Recovery())
server.Use(middleware.CORS(configs.Server.AllowOrigin))
server.Use(middleware.GinContextToContext())
server.Use(middleware.RequestID())
server.Use(middleware.Authenticate(auth))
server.Use(middleware.Dataloaders())
// graphql routes
server.GET("/", router.GraphiQL())
server.POST("/", router.GraphQL(
auth,
device,
email,
game,
notification,
party,
payment,
post,
request,
user,
configs,
))
// pusher routes
server.POST("/pusher/auth", router.PusherAuth(notification))
server.POST("/pusher/presence", router.PusherPresence(notification, user))
// stripe routes
server.POST("/stripe/webhook", router.StripeWebhook(payment))
Here's the code
I can't find the issue with it and I believe your last colleague agreed it seemed ok