I had the working python code which was working & still working sometimes when rest api doesn't throw error. So one thing for sure it doesn't have to do with python script as it is working when it is not throwing error.
Here is the error it is throwing.
The web server reported a bad gateway '
Please try again in a few '
Here is what I have tried.
Disabled httpauth as I found out it causes issue. Didn't work!
Enabled Developer mode on Cloudflare. didn't work.
Enabled Respect existing header for http header setting in cloudflare. Didn't work!
Created new Application password. same situation. Didn't work.
The code sometime works perfectly & uploads 2-3 posts & then start throwing error again. The issue is really frustrating as I have tried to debug alot without any success.
The website is working perfectly on the frontend without throwing any error. I am also able to properly access wp admin without any issue.
I am on latest version of webinoly.
Any help or tips to navigate the error for tackle would be really helpful.