Pushed the BYOC network module to client staging org using genesys-cloud-sdk-js@3.71.2. The /api/v2/edge/byoc/health endpoint doing jack all. It’s rejecting the POST with a 502 Bad Gateway when the VPC peering connection flaps. Logs show the lambda function’s actually returning 200s but the gateway times out anyway.
GET /api/v2/edge/byoc/health
Accept: application/json
Authorization: Bearer
You're hitting a 502 because you're POSTing to an endpoint that only supports GET. The BYOC health check is a simple retrieval of the current edge status, not a state change. Switch to a GET request and the gateway will pass it through correctly. The VPC flap is likely causing transient latency, but the method mismatch is what's triggering the immediate gateway error. Check the response headers for `Retry-After` if it keeps timing out during the flap.