Fix urllib3 strict parameter warning#867
Conversation
Signed-off-by: Akash Ayare <akash.ayare@oracle.com>
With oci v2.174.0 and urllib3 v2.7.0 there is an annoying warning message created by urllib3. This warning can be resolved by removing the use of the strict parameter from OCIHTTPAdapter. Signed-off-by: Akash Ayare <akash.ayare@oracle.com>
|
Thank you for your pull request and welcome to our community! To contribute, please sign the Oracle Contributor Agreement (OCA).
To sign the OCA, please create an Oracle account and sign the OCA in Oracle's Contributor Agreement Application. When signing the OCA, please provide your GitHub username. After signing the OCA and getting an OCA approval from Oracle, this PR will be automatically updated. If you are an Oracle employee, please make sure that you are a member of the main Oracle GitHub organization, and your membership in this organization is public. |
Signed-off-by: Akash Ayare <akash.ayare@oracle.com>
b5b4273 to
9d549f7
Compare
|
Thanks for reporting this and for the detailed information. We have a change in progress to improve compatibility with newer urllib3 behavior for this scenario. The update is planned for the next SDK release (next Tuesday 06/02). Once that release is available, please upgrade and let us know if the behavior is resolved in your environment. |
With oci v2.174.0 and urllib3 v2.7.0 we get an annoying FutureWarning hinting to us that the strict parameter is no longer needed.
Demonstrate Warning
Sample script:
Result:
Proposed Solution
In
OCIHTTPAdapterwe can delete thestrict=Trueparameter, because we have been informed that it is no longer needed.Execute Unit Test
Environment