Whats the server log to that timepoint? Error 500 should be logged in error.log
What endpoint you are CURLing?
I have no access what I know to the error.log file unfortunate.
The endpoint I’m CURLing is: https://www.sk*nesport.se/devsite/*ppskanesportregister/ as a POST request.
* = a
Please enable wordpress debug mode and than try again. Check if there are any usefull error notices.
Usually an error 500 does not contain any information on content because it is thrown earlier than the sites content is generated.
Are you sure about the error code?
Please also try to disable the optimized completely in wp staging settings. The optimizer bypasses ajax requests, its possible that it also bypasses your post call.
Came across this error recently, leading me here.
Quote – “Usually an error 500 does not contain any information on content because it is thrown earlier than the sites content is generated.”
https://wpseek.com/function/_default_wp_die_handler/
This WP function in wp-includes/functions.php adds a 500 error after runtime FYI.
It looks like it checks if headers are sent and if not it can set the response code.
Still not sure why I’m getting this error however.