Quote from Gremlin on April 11, 2022, 11:46 pmHy,
get the "429 to many requests" Error message after 15 times call the "InternetGet" Command.
I had tried to slow down with a 5 second delay between the requests, but after 15 calls the error appears again.
Must I clear the variable or like visualbasic a "doevents" command ?
Thanks
Hy,
get the "429 to many requests" Error message after 15 times call the "InternetGet" Command.
I had tried to slow down with a 5 second delay between the requests, but after 15 calls the error appears again.
Must I clear the variable or like visualbasic a "doevents" command ?
Thanks

Quote from luishp on April 12, 2022, 10:39 am@gremlin that's a server side problem. The server is detecting too many request in a given amount of time and blocks your software as it's a possible attack.
You should contact your web hosting to get information about how many requests per minute are allowed from a given IP.Regards.
@gremlin that's a server side problem. The server is detecting too many request in a given amount of time and blocks your software as it's a possible attack.
You should contact your web hosting to get information about how many requests per minute are allowed from a given IP.
Regards.
Quote from Gremlin on April 12, 2022, 7:09 pmHello, I think that can not be the error.
I programmed the same program some years ago in VB6, when I use that I don't get this error message. The HTTP request is not executed at all because the response variable remains empty.
Since I still want to expand some things, I created it in Neobook. But unfortunately I get stuck with this error.Thanks
Steven
Hello, I think that can not be the error.
I programmed the same program some years ago in VB6, when I use that I don't get this error message. The HTTP request is not executed at all because the response variable remains empty.
Since I still want to expand some things, I created it in Neobook. But unfortunately I get stuck with this error.
Thanks
Steven
Quote from Gremlin on May 3, 2022, 6:05 pmHy, after searching a solution I got now a new error (2 pictures attached).
I can use anything for :
InternetGet "[DownloadDatei]" "[Result]" "HideProgress+Async"
or
InternetGet "https://google.com" "[Result]" "HideProgress+Async"
or something else the error message are the same .
These problem only at these project, when I create a new project and test my routine it works ?
:start SetVar "[PartFileName]" ".nzb" FileList "[T_Downloadverzeichnis]\*[PartFileName]" "Files" "[ReturnValue]" If "[ReturnValue]" "<>" "" SearchStr ".nzb" "[ReturnValue]" "[ReturnPosition]" "" Math "[ReturnPosition] + 3" "0" "[ReturnPosition2]" SubStr "[ReturnValue]" "1" "[ReturnPosition2]" "[Datei]" StrReplace "[Datei]" " " "_" "[Datei2]" "" FileRename "[T_Downloadverzeichnis]\[Datei]" "[T_Downloadverzeichnis]\[Datei2]" SetVar "[URL]" "https://offcloud.com/api/remote/download?apikey=" SetVar "[URLOption]" "&option=FTP&url=http://home.*******.org/nzb/incoming" SetVar "[DownloadDatei]" "[URL][T_APIKey][URLOption][Datei2]" FileCopy "[T_Downloadverzeichnis]\[Datei2]" "[T_Webverzeichnis]\" FileErase "[T_Downloadverzeichnis]\[Datei2]" InternetGet "[DownloadDatei]" "[Result]" "HideProgress+Async" .AlertBox "Status" "Datei ([DownloadDatei]) mit der Meldung: [Result]." EndIf EndIf . Prüfen ob noch aktiviert If "[M_ANAUS]" ">" "" Delay "2000" GotoLine "start" EndIf
Hy, after searching a solution I got now a new error (2 pictures attached).
I can use anything for :
InternetGet "[DownloadDatei]" "[Result]" "HideProgress+Async"
or
InternetGet "https://google.com" "[Result]" "HideProgress+Async"
or something else the error message are the same .
These problem only at these project, when I create a new project and test my routine it works ?
:start SetVar "[PartFileName]" ".nzb" FileList "[T_Downloadverzeichnis]\*[PartFileName]" "Files" "[ReturnValue]" If "[ReturnValue]" "<>" "" SearchStr ".nzb" "[ReturnValue]" "[ReturnPosition]" "" Math "[ReturnPosition] + 3" "0" "[ReturnPosition2]" SubStr "[ReturnValue]" "1" "[ReturnPosition2]" "[Datei]" StrReplace "[Datei]" " " "_" "[Datei2]" "" FileRename "[T_Downloadverzeichnis]\[Datei]" "[T_Downloadverzeichnis]\[Datei2]" SetVar "[URL]" "https://offcloud.com/api/remote/download?apikey=" SetVar "[URLOption]" "&option=FTP&url=http://home.*******.org/nzb/incoming" SetVar "[DownloadDatei]" "[URL][T_APIKey][URLOption][Datei2]" FileCopy "[T_Downloadverzeichnis]\[Datei2]" "[T_Webverzeichnis]\" FileErase "[T_Downloadverzeichnis]\[Datei2]" InternetGet "[DownloadDatei]" "[Result]" "HideProgress+Async" .AlertBox "Status" "Datei ([DownloadDatei]) mit der Meldung: [Result]." EndIf EndIf . Prüfen ob noch aktiviert If "[M_ANAUS]" ">" "" Delay "2000" GotoLine "start" EndIf
Uploaded files:

Quote from luishp on May 3, 2022, 8:36 pm@gremlin I have been able to reproduce the problem. I'm quite sure it's because CORS restrictions.
If you use a free online API service that allows CORS it works correctly. For example try these:InternetGet "https://api.genderize.io/?name=luc" "[Result]" "HideProgress+Async" InternetGet "https://catfact.ninja/facts" "[Result]" "HideProgress+Async"Both will work.
Regards.
@gremlin I have been able to reproduce the problem. I'm quite sure it's because CORS restrictions.
If you use a free online API service that allows CORS it works correctly. For example try these:
InternetGet "https://api.genderize.io/?name=luc" "[Result]" "HideProgress+Async" InternetGet "https://catfact.ninja/facts" "[Result]" "HideProgress+Async"
Both will work.
Regards.