REST API Errors 520, solved with a proxy

What is the difference?

Don’t know. The requests were all simple ones but for an unknown reason it works and direct call was not working

Did you do that through a backend like Node?