MATLAB ANALYSIS run Successfully on ThingSpeak, BUT always generates Server Error 500, so doesn’t send email
The error is:
"Failed to send alert: The server returned the status 500 with message "Internal Server Error" in response to the request to URL https://api.thingspeak.com/alerts/send."
The message says MATLAB Analysis ran successfully, so the code is good, but never sends the email because of the server error.
Simple code from examples:
% Catch errors so the MATLAB code does not disable a TimeControl if it fails
try
webwrite(alertUrl , "body", alertBody, "subject", alertSubject, options);
catch someException
fprintf("Failed to send alert: %sn", someException.message);
end
Where to go from here?The error is:
"Failed to send alert: The server returned the status 500 with message "Internal Server Error" in response to the request to URL https://api.thingspeak.com/alerts/send."
The message says MATLAB Analysis ran successfully, so the code is good, but never sends the email because of the server error.
Simple code from examples:
% Catch errors so the MATLAB code does not disable a TimeControl if it fails
try
webwrite(alertUrl , "body", alertBody, "subject", alertSubject, options);
catch someException
fprintf("Failed to send alert: %sn", someException.message);
end
Where to go from here? The error is:
"Failed to send alert: The server returned the status 500 with message "Internal Server Error" in response to the request to URL https://api.thingspeak.com/alerts/send."
The message says MATLAB Analysis ran successfully, so the code is good, but never sends the email because of the server error.
Simple code from examples:
% Catch errors so the MATLAB code does not disable a TimeControl if it fails
try
webwrite(alertUrl , "body", alertBody, "subject", alertSubject, options);
catch someException
fprintf("Failed to send alert: %sn", someException.message);
end
Where to go from here? thingspeak MATLAB Answers — New Questions