I’m getting some strange behaviour from this function: remembermore-dashboard.netlify.app/.netlify/functions/submit
(add https:// to the front of that to see what I mean. I can’t make this post with that link in it)
The code is simply:
exports.handler = function(event) {
console.log(event);
return {
statusCode: 200,
body: 'Hello world'
};
};
When I run this locally using netlify dev
, I see the “Hello world” output.
On the live site though, I get an HTTP 200 but an empty body.
I can see from the Function log that the code is indeed executing, but something appears to be truncating the body.
(Side note, when I initially tried to post this, my post failed to appear - probably some spam filter? The topic disappeared and I saw the errors below in the browser console. I could only get this post to appear once I removed the URL)