I created a nodejs app API at https://enterprise.apigee.com/platform/schneider-e1/proxies/sendgrid_api After testing the node http server app in my local machine, I deployed. But when I send a request to the API, I get the following error and the trace captures nothing.
{ "fault": { "faultstring": "Invalid Header \"RVBD-CSH\"", "detail": { "errorcode": "protocol.http.InvalidHeader" } } }
The request looks like below.
POST http://schneider-e1-test.apigee.net/v1/sendgrid_api
{ "recipients": [ "wonkun.kim@schneider-electric.com", "wongni@gmail.com" ], "from": "no-reply@schneider-electric.ws", "subject": "Your password has been changed", "textBody": "Your password has been changed", "substitutions": { ":firstName": [ "Wonkun in office", "Wonkun personal" ], ":newPassword": [ "ABCDXZY", "CDKFVSU" ] }, "templateId": "f179ef00-669e-4763-8b73-7872efb8df99" }
Solved! Go to Solution.
Dear @Wonkun Kim ,
I just tested above API proxy using postman & I got 200 OK
{"message":"success"}
Do you still see an issue ? Please keep us posted.
I changed http to https and it worked. I think it was a kind of some company firewall issues. Thanks!