The example request I run is something similar to this (sensitive information removed and example domain):
curl --location --request POST 'https://api-gateway-example.example.com/login/' \
--header 'Content-Type: application/json' \
--data-raw '{"email":"(111) 444-2341","password":"abcd123456789!"}'
I don't think the logging from the GCP API Gateway helps much, but this is the log (sensitive information removed).
{
"insertId": "3153ce1f-28f0-4481-b94f-aa0271d9d7ec4850965654466612439@a1",
"jsonPayload": {
"producer_project_id": "test-example",
"api_name": "1.api_gateway_example_apigateway_test_develop_cloud_goog",
"http_status_code": 308,
"response_code_detail": "via_upstream",
"service_config_id": "config-test",
"log_message": "1.api_gateway_example_apigateway_test_develop_cloud_goog.PostApp is called",
"location": "us-central1",
"api_version": "1.0.0",
"api_method": "1.api_gateway_example_apigateway_test_develop_cloud_goog.PostApp",
"timestamp": 1654780608.3517172,
"service_agent": "ESPv2/2.35.0",
"api_key_state": "NOT CHECKED"
},
"httpRequest": {
"requestMethod": "POST",
"requestUrl": "/login",
"requestSize": "1225",
"status": 308,
"responseSize": "853",
"remoteIp": "34.96.60.110",
"latency": "0.028s",
"protocol": "http"
},
"resource": {
"type": "api",
"labels": {
"project_id": "test-develop",
"method": "1.api_gateway_example_apigateway_test_develop_cloud_goog.PostApp",
"location": "us-central1",
"version": "1.0.0",
"service": "api-gateway-example.apigateway.test-develop.cloud.goog"
}
},
"timestamp": "2022-06-09T13:16:48.351717270Z",
"severity": "INFO",
"logName": "projects/test-develop/logs/api-gateway-example.apigateway.test-develop.cloud.goog%2Fendpoints_log",
"receiveTimestamp": "2022-06-09T13:16:50.358653267Z"
}
We do enforce HTTPS. I don't have any issues on Postman with this request, but I can't get it to work here. Is there any other information I can provide to help?