HTTP query from an AHK script returning error status 12029

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
JnLlnd
Posts: 487
Joined: 29 Sep 2013, 21:29
Location: Montreal, Quebec, Canada
Contact:

HTTP query from an AHK script returning error status 12029

05 Sep 2021, 07:25

Hi,

I distribute a compiled script that is using the Windows com object MSXML2.XMLHTTP.6.0 to send a request to my web server to validate some information. Recently, two users reported that the request is failing. I investigated the result of the request and found that instead of a normal status code "200" and a response text confirming the validity of the information, the requests on these systems now return the status code "12029" and the response text is empty. From my search on the web, this non-official error code seems to indicate a firewall issue. But the users who reported the issue say the app is not blocked by their firewalls. FYI, these users are running the app on Win 7 and Win 8.1.

I saw very old posts on the old AHK forum about this error code. But nothing recently. Has anybody ever faced this issue here?

Thanks.
:thumbup: Author of freeware Quick Access Popup, the powerful Windows folders, apps and documents launcher!
:P Now working on Quick Clipboard Editor
:ugeek: The Automator's Courses on AutoHotkey
malcev
Posts: 1769
Joined: 12 Aug 2014, 12:37

Re: HTTP query from an AHK script returning error status 12029

05 Sep 2021, 09:08

this non-official error code
No, this is official error code
ERROR_WINHTTP_CANNOT_CONNECT

12029

Returned if connection to the server failed.
https://docs.microsoft.com/en-us/windows/win32/winhttp/error-messages
Post Your code here.
Also, Why do You use MSXML2.XMLHTTP.6.0, but not WinHTTP.WinHTTPRequest.5.1?
amateur+
Posts: 655
Joined: 09 Oct 2021, 15:43

Re: HTTP query from an AHK script returning error status 12029

27 Oct 2021, 17:14

JnLlnd wrote:
05 Sep 2021, 07:25
I saw very old posts on the old AHK forum about this error code. But nothing recently. Has anybody ever faced this issue here?
Have you seen this?
viewtopic.php?t=66685
Have found any drawback in my code or approach? Please, point it out. /The moderator ordered to remove the rest of the signature, I had obeyed.
And I really apologize for our russian president. Being a citizen of an aggressor country is very shameful. Personally I tried to avoid this trying to defend elections from fraud being a member of the election commission of one of the precincts but only was subjected to a hooligan attack and right before the vote count was illegally escorted from the polling station and spent the night behind bars (in jail) in a result of illegal actions of corrupt policemen.
User avatar
JnLlnd
Posts: 487
Joined: 29 Sep 2013, 21:29
Location: Montreal, Quebec, Canada
Contact:

Re: HTTP query from an AHK script returning error status 12029

27 Oct 2021, 22:44

amateur+ wrote:
27 Oct 2021, 17:14
Have you seen this?
viewtopic.php?t=66685
Yes. I'm the one who started this post.

To tell the end of this story. I finally discovered that after my ISP provider upgraded the HTTPS security settings on his hosted web servers, users on Win 7 and 8.1 running an AHK compiled script using WinHttp.WinHttpRequest.5.1 or MSXML2.XMLHTTP.6.0 started getting the error 12029. ISP said that these users had to update their Windows software but even after updating Windows 7 or 8.1 to the latest release, they were still getting the error. In the end, because 1) my ISP had no solution to offer on his side, 2) the number of users on these OS was getting relatively low and 3) because the impact on my app's usage was not critical, I decided to keep things as they were...
:thumbup: Author of freeware Quick Access Popup, the powerful Windows folders, apps and documents launcher!
:P Now working on Quick Clipboard Editor
:ugeek: The Automator's Courses on AutoHotkey
amateur+
Posts: 655
Joined: 09 Oct 2021, 15:43

Re: HTTP query from an AHK script returning error status 12029

28 Oct 2021, 09:19

JnLlnd wrote:Yes. I'm the one who started this post.
I'm a donkey I see :)

Could you offer them an edit registry file?
I have such one that I have to use sometimes. I have "Brave open links.reg" file that contains:

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\BraveHTML\shell\open\command]
@="\"C:\\Program Files\\BraveSoftware\\Brave-Browser\\Application\\brave.exe\" --user-data-dir=\"F:\\\\Programs\\Brave\" --single-argument %1"

I use it to make links to be opened by browser with these parameters if they have crashed to defaults. You could offer them your file to help them edit their registry.
Have found any drawback in my code or approach? Please, point it out. /The moderator ordered to remove the rest of the signature, I had obeyed.
And I really apologize for our russian president. Being a citizen of an aggressor country is very shameful. Personally I tried to avoid this trying to defend elections from fraud being a member of the election commission of one of the precincts but only was subjected to a hooligan attack and right before the vote count was illegally escorted from the polling station and spent the night behind bars (in jail) in a result of illegal actions of corrupt policemen.
User avatar
JnLlnd
Posts: 487
Joined: 29 Sep 2013, 21:29
Location: Montreal, Quebec, Canada
Contact:

Re: HTTP query from an AHK script returning error status 12029

28 Oct 2021, 09:35

amateur+ wrote:
28 Oct 2021, 09:19
I use it to make links to be opened by browser with these parameters if they have crashed to defaults. You could offer them your file to help them edit their registry.
Thanks for the suggestion :-)
:thumbup: Author of freeware Quick Access Popup, the powerful Windows folders, apps and documents launcher!
:P Now working on Quick Clipboard Editor
:ugeek: The Automator's Courses on AutoHotkey

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Anput, doodles333, jameswrightesq, sofista and 293 guests