API Action working on front and not working in Server Action

Just turn it on and check the error, after that turn it off again.

Also

Check the publish button if there’s something missing on your server