The remote server returned an error 429

Hello. Yesterday is working fine, but now there show me this error The remote server returned an error 429.

How can fix the error.

string urltocken = “https://www.wix.com/oauth/access”;
var shopAccessToken = UserInt.Value;
using (var streamWriter = new StreamWriter(myReqtoken.GetRequestStream()))
{
string json = new JavaScriptSerializer().Serialize(new
{
grant_type = “refresh_token”,
client_id = UserInt.ApiKey,
client_secret = shopAccessToken,
refresh_token = UserInt.Token
});

                streamWriter.Write(json); 
            } 

            Here is the error -------> WebResponse wrtoken = myReqtoken.GetResponse();

I ran into this problem too yesterday. I fixed it by changing the URL to “https://www.wixapis.com/oauth/access” (as opposed to www.wix.com)

There is a note at https://dev.wix.com/api/rest/getting-started/authentication saying the old URL was deprecated and to change it by December 1st, but it seems someone at Wix broke the old one yesterday. I don’t recall seeing any announcement about it so it was news to me too.

Thanks is working.