Closed lryckman closed 1 year ago
Hi @lryckman , have you tried testing this without SDK, like curl
? If it doesn't work with 'curl' then it might be an issue with proxy server configuration rather than a client issue.
Also, can you enable debug logs and share the detailed log?
Thank you for your response. The java sdk team has confirmed that there is a bug in the Jersey3 http client where the proxy password is not extracted correctly. I believe a fix will be available soon. You can consider this item closed.
This has been fixed as part of the latest release. Closing this ticket.
I have client code like in this sample - https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/HttpProxyExample.java. I am getting Cache Access Denied exception listing regions using IdentityClient. The proxy server is a Squid server. The invocation works correctly if the proxy server authentication is off. Any suggestions? Thank you.
"message": "Failed to list IAM region com.oracle.bmc.model.BmcException: Error returned by ListRegions operation in Identity service.(407, Unknown, false) Unexpected Content-Type: text/html;charset=utf-8 instead of application/json. Response body: <!DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01//EN' 'http://www.w3.org/TR/html4/strict.dtd'>
ERROR
Cache Access Denied.
The following error was encountered while trying to retrieve the URL: https://identity.us-phoenix-1.oci.oraclecloud.com/
Sorry, you are not currently allowed to request https://identity.us-phoenix-1.oci.oraclecloud.com/ from this cache until you have authenticated yourself.
Please contact the cache administrator if you have difficulties authenticating yourself.
Generated Mon, 18 Sep 2023 16:08:10 GMT by c3-proxy-2 (squid/4.15)
Using SLF4J for Logging section
in https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconfig.htm. If you are unable to resolve this Identity issue, please contact Oracle support and provide them this full error message."