Pinterest is slow. It’s slow in general. It takes quite some time for it to return the requested info. Most probably your server has a very short timeout that is not enough for Pinterest.
Our script is trying to increase timeout setting for all calls to Pinterest. Most probably your server is set to ignore such things. Please increase timeout.