Jump to content

HTTP.Send() ERROR thrown for GET Request


Recommended Posts

Hi, I'm facing issue with my script which calls an API and retrieves the required information from the response. The API is working fine in postman as well as in Chrome browser, but when I run the same through AutoIT it throws an error which I have attached with this post below. It is also worth noting that the same script works totally fine in Local Lab, but facing issues in client environment.

Edited by Aviral
Link to comment
Share on other sites

I'm ready to go get some ZZzzz, but I wanted to help. Get WinHttp.au3 and use that. Is well though out.
Also get the full version of SciTE. Much better to work with.

As far as code, check for errors every time  you can. You ObjCreate() but don't check for errors with IsObj($oHTTP). That makes it difficult to see why/debug it.

My 2 cents, g'night.

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Link to comment
Share on other sites

@argumentum hi, the same script is running in a different server, plus i have one other autoit script that is also not working in the affected server, but working in other. so is it some problem with autoit permissions or something else?

 

Link to comment
Share on other sites

Same script works on different machines and you still think it's still something wrong with AutoIt but not with a specific machine or the network or a firewall or anything else, right? Also why don't you use ObjEvent() so you have at least an error code or a message as a starting point to identify the issue?

Edited by Andreik

When the words fail... music speaks.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...