I’m having the same problem. I can’t create or update any snippets. It started happening after updating WordPress to 6.2.2 and Code Snippets to 3.4.0.
There are two errors in the console that only appear after saving an individual snippet: “POST https://www.uhliska.sk/wp-json/code-snippets/v1/snippets/22 500” and “Request failed”.
However, could there be a problem with WooCommerce compatibility? I can see this error: “CRITICAL Uncaught Error: Call to a member function get_cart() on null”. Strangely, I can’t even update any other snippet where get_cart() is not used. I’m really not sure what to do.