Fabrice Nordmann

Error 10 on Insert From URL… but the curl request is passed

Discussion created by Fabrice Nordmann Expert on Aug 23, 2018
Latest reply on Mar 7, 2019 by CamelCase_data


I'm using the SendGrid API to send e-mail, and I run into an issue:



while calling this url



with curl options like

curl --header "Authorization: Bearer <my API key>" --header "Content-Type: application/json" --data "{\"content\":[{\"type\":\"text/plain\",\"value\":\"Here is some text\"}],\"from\":{\"email\":\"<sender address>\",\"name\":\"TEST MESSAGE\"},\"personalizations\":[{\"to\":[{\"email\":\"<recipient address>\",\"name\":\"Fabrice\"}]}],\"subject\":\"test message\"}" --dump-header $headers


I get an error 10, but the request is received by SendGrid and the e-mail is correctly sent.

As suggested here Error 10 Insert from URL , I added a / at the end of the URL but then I get a 404 (http).