Woocommerce Rest API stops working when we active/deactivate any plugin. Currently, I fix this by doing the following steps.