Error 429 Too Many Requests on first hit

Question:
Can any one help with error 429
I wrote my vello scrips years ago and about 12, moths ago something changed at wix end. I checked the scripts and had to updated my calling client to use async calls. 6 months ago i then started getting error “429 Too many Requests” on the first connection (stepping through my code)
Its still on going and i can no longer use my client to get information from my site

Product:
Im using Wix Vello against a premium site to build an api and VS2019 as the calling client

What are you trying to achieve:
I want to capture the return value into my client,
Example
https://www.latheworkshop.com/_functions/policies

My example is should return
{
“Result”: “by BinaryStar LTD
Capricorn V1.0.0”
}

What have you already tried:
Tried a complicated api and a basic call and response both fail
Both Get, Put, Http, Https, Altering TLS security, Calling Wix (which didn’t help)

If i type in the URL into a browser (same machine) it returns ok, but any attempt from code raise the error (Put or Get)

e.g.
client.GetAsync(URL).Result

Header Response

{StatusCode: 429, ReasonPhrase: ‘Too Many Requests’, Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
{
X-Served-By: cache-lcy-eglc8600020-LCY
X-Cache: MISS
Strict-Transport-Security: max-age=300
X-Seen-By: yvSunuo/8ld62ehjr5B7kA==
Alt-Svc: h3=“:443”; ma=2592000,h3-29=“:443”; ma=2592000
Accept-Ranges: bytes
Date: Sat, 30 Dec 2023 14:43:03 GMT
Via: 1.1 google
Content-Length: 0
}}
Content: {System.Net.Http.StreamContent}
Headers: {X-Served-By: cache-lcy-eglc8600020-LCY
X-Cache: MISS
Strict-Transport-Security: max-age=300
X-Seen-By: yvSunuo/8ld62ehjr5B7kA==
Alt-Svc: h3=“:443”; ma=2592000,h3-29=“:443”; ma=2592000
Accept-Ranges: bytes
Date: Sat, 30 Dec 2023 14:43:03 GMT
Via: 1.1 google
}
IsSuccessStatusCode: False
ReasonPhrase: “Too Many Requests”
RequestMessage: {Method: GET, RequestUri: ‘https://www.latheworkshop.com/_functions/policies’, Version: 1.1, Content: , Headers:
{
}}
StatusCode: 429
Version: {1.1}

Can you share a code example that is creating this issue?

Sorry for the delay, I just built a new application with just one button
immediate error 429

Dim result As String = “”
Dim ErrorString As String = “”

    Using client As HttpClient = New HttpClient()
        Using response As HttpResponseMessage = client.GetAsync("https://www.latheworkshop.com/_functions/policies").Result
            'Using response As HttpResponseMessage = client.PostAsync(page, b).Result
            If response.StatusCode < 200 Or response.StatusCode > 299 Then
                ErrorString = response.ReasonPhrase & " " & Str(response.StatusCode)
                ' 
                If (NewMsgBox(ErrorString, "Error connecting to host", MsgOptions.Critical Or MsgOptions.RetryCancel)) = DialogResult.Cancel Then
                    'LogMessage(ErrorString, EventLogEntryType.Error, 5001)
                    RaiseEvent Reject(-1)
                    result = ""
                End If
            Else
                Using content As HttpContent = response.Content
                    ' Get contents of page as a String.
                    result = content.ReadAsStringAsync().Result
                End Using
            End If
        End Using
    End Using

The error is returned from the second line client.GetAsync(“https://www.latheworkshop.com/_functions/policies”).Result

Derek

Additional Information…
I have built a small application that tests different sites to bring back just the header details.

On accessing
Wix com i get the full header OK
latheworkshop com error 429
Latheworkshop com/_functions/policies error 429
BBC com i get the full header OK

this suggests something in the output from our wix site, i have placed log entries into the header but is not logged from the client app but is when a browser accesses the site.

Now i haven’t changed the site so what could be causing the issue, its no longer a client problem and seems more likely the server end ??

Derek

I now have wix telling me its the software vendors problem.
without checking router logs or speaking to me.

So ill just call up Microsoft and explain the 1 line of code that fails using Visual Studio on only one site at the wix hosting service means its “Bills” fault.

I have spent many hours learning Vello, had it working for 2 years and for the last 8 months me and my clients can no longer access my own wix site without knowing why.

Took 1 month to reply and this forum never get a reply

No renewal when it comes around !
Good luck to the other developers