Nginx Bad Gateway 502 when trying to add Post or Page

I’m getting a 502 Bad Gateway error when trying to add a new post or page to my website that was set up with Easy Engine. I’ve restarted nginx and php-fpm, and neither has fixed the issue. Any idea why only adding an item would cause a 502 Bad Gateway error? The rest of the site is working great.

Ah, it was my bad. I’m running specific functions that change the wp_insert_post hook, so I just fixed my code, and all is well again. Resolved!