Skip to content

AndroidEnterpriseClient doesn't work with HttpClient instance obtained from HttpClients.customs method #364

Closed

Description

@mailniranjan

CloseableHttpClient closeableHttpClient = HttpClients.custom()...build();
ApacheHttpTransport apacheHttpTransport = new ApacheHttpTransport(closeableHttpClient);
AndroidEnterprise enterpriseClient = new AndroidEnterprise.Builder(apacheHttpTransport, ...);
AndroidEnterprise.Products.List listProducts = enterpriseClient.products().list(enterpriseId);

The above piece of code throws the following exception.
java.lang.UnsupportedOperationException
at org.apache.http.impl.client.InternalHttpClient.getParams(InternalHttpClient.java:210)
at com.google.api.client.http.apache.ApacheHttpTransport.(ApacheHttpTransport.java:129)

Activity

  1. changed the title [-]AndroidEnterprise.Builder doesn't work with HttpClient instance obtained from HttpClients.customs method[/-] [+]AndroidEnterpriseClient doesn't work with HttpClient instance obtained from HttpClients.customs method[/+] on Jul 24, 2017
  2. added
    type: bug
    priority: p2
    on Jan 8, 2018
  3. added
    🚨
    on Jun 8, 2018
  4. mzogz commented on Jul 6, 2018

    @mzogz

    Is there any traffic on this issue? It's been open about a year and it's still a problem in the core google http api using version 1.23.0 from Maven for Java.

  5. self-assigned this
    on Jan 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

🚨priority: p2type: bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions