Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I got a issue on line 270 #2

Closed
LukeWANGNJ opened this issue Mar 14, 2023 · 2 comments
Closed

I got a issue on line 270 #2

LukeWANGNJ opened this issue Mar 14, 2023 · 2 comments

Comments

@LukeWANGNJ
Copy link

Error -2146697208: The download of the specified resource
has failed.
Line: 270

          ' Open and send the HTTP request
230       With httpRequest
240           .Open "POST", API_ENDPOINT, False
250           .SetRequestHeader "Content-Type", "application/json"
260           .SetRequestHeader "Authorization", "Bearer " & API_KEY
270           .send (requestBody)
280       End With
@LukeWANGNJ
Copy link
Author

Hi,

I've tried to replace line 210
Set httpRequest = CreateObject("MSXML2.XMLHTTP")
to
Set httpRequest = CreateObject("WinHttp.WinHttpRequest.5.1")

and now I got another error
Error -2147012866: The connection with the server was terminated abnormally Line: 270

@Sven-Bo
Copy link
Owner

Sven-Bo commented Mar 14, 2023

See Issue #1

@Sven-Bo Sven-Bo closed this as completed Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants