A developer is experiencing an issue with Alipay's asynchronous notifications to their Vercel-deployed API endpoint at https://my-domain.vercel.app/api/alipay/notify/.
Alipay's support team confirmed they're sending POST requests to the endpoint
They report receiving an HTTP status 0 error from the application
This appears to be a connection initialization error rather than an application-level error
The developer can successfully connect to the endpoint using Postman from their machine
No incoming requests from Alipay appear in their Vercel logs
Since it's an HTTP 0 error, they suspect the requests aren't reaching the application at all
Has anyone encountered similar issues with webhook integrations on Vercel?
Are there any Vercel-specific configurations needed for external services like Alipay?
How can they troubleshoot connection issues when no logs are being generated?
Any suggestions or guidance would be greatly appreciated.
This appears to be a connection issue between Alipay's servers and your Vercel deployment. Since you're receiving an HTTP status 0 error and no logs are appearing in Vercel, the requests likely aren't reaching your application at all.
Vercel supports webhooks for various events and integrations 12. For external services like Alipay, you need to ensure:
Some payment providers have specific security requirements:
Create a Debug Endpoint:
// pages/api/alipay/debug.js or app/api/alipay/debug/route.js
export default async function handler(req, res) {
console.log('Headers:', JSON.stringify(req.headers));
console.log('Body:', JSON.stringify(req.body));
// Always return a success response for testing
return res.status(200).json({ received: true });
}If the issue persists, you might want to implement a temporary workaround using a webhook relay service until the root cause is identified.