Hi all,
I have a problem with requestLibrary get method, it return OSError: [WinError 6] The handle is invalid error message. I have Robot Framework 6.1.1 (Python 3.9.13 on win32). Do anybody know how this can be fixed?
Hi all,
I have a problem with requestLibrary get method, it return OSError: [WinError 6] The handle is invalid error message. I have Robot Framework 6.1.1 (Python 3.9.13 on win32). Do anybody know how this can be fixed?
Message sending and responding working. I can see in log file responce of message, but when call come out it give this error message.
Hi Jari,
I did a quick search and found this:
That error for the OP in that thread was because the url was a number not at url path, so I’d suggest you double check the url you are passing to RequestsLibrary is a valid URL (should probably start with http:// or https://)
Hopefully that helps,
Dave.
Hi Dave, Thank you for your answer. I used request start like: GET Request : url=https://
Is that correct?
Typically its good starting point to share the actual code you tried, not just vague references…
However, you said something about “url=https://” …
Documentation of RequestsLibrary has following as example;
*** Settings ***
Library RequestsLibrary
*** Test Cases ***
Quick Get Request Test
${response}= GET https://www.google.com
That does not denote that you have to have “url=” in the actual argument. If you are familar with with python args and kwargs, arg parameters do not need a name where as kwargs do… Functionality is same in RF.
I found solution for the problem. I change to to verify=${True} and now it works. Verify default value is ${True}. But in other solutions it need to False and because of that it was still False state.