From my computer command line, no issues, trigger gets fired.
curl -X POST -H "Content-Type: application/json" -d '{"this":[{"is":{"some":["test","data"]}}]}' https://maker.ifttt.com/trigger/\{event\}/json/with/key/xxxxxxxxxxxxxxxxxxxxx
Congratulations! You've fired the event JSON event%
works for this as well
https://maker.ifttt.com/trigger/Issue/json/with/key/xxxxxxxxxxxxxxxxxxxxx
ESP8266 with this library and error
HTTP Error code: 400
<TITLE>ERROR: The request could not be satisfied</TITLE>
400 ERROR
The request could not be satisfied.
Bad request.
We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.
If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.
Generated by cloudfront (CloudFront)
Request ID: dWIumxrnJs-lUEpmP1kNO0gAMyClOoYt_mLwKPb-gyM5gpsDmGZGdA==
void sendWebhook() {
if (WiFi.status() == WL_CONNECTED) {
WiFiClient client;
HTTPClient http;
// Ensure URL is correct
String url = "https://maker.ifttt.com/trigger/Issue/json/with/key/xxxxxxxxxxxxxxxxxxxxx";
http.begin(client, url); // Start the connection
http.addHeader("Content-Type", "application/json"); // Set content type to JSON
// JSON data that works with curl
String jsonData = "{\"this\":[{\"is\":{\"some\":[\"test\",\"data\"]}}]}";
int httpCode = http.POST(jsonData); // Send the POST request
if (httpCode == HTTP_CODE_OK) {
String payload = http.getString();
Serial.print("HTTP Response code: ");
Serial.println(httpCode);
Serial.println(payload);
} else {
Serial.print("HTTP Error code: ");
Serial.println(httpCode);
Serial.println(http.getString()); // This will print the detailed error message
}
http.end(); // Close the connection
} else {
Serial.println("WiFi not connected");
}
}