Skip to content

Android. OData. Can't use https url. #1248

@tbw777

Description

@tbw777

Version 2.3.7

        Engine.getInstance().getRegisteredClients().clear();
        Engine.getInstance().getRegisteredClients().add(new HttpClientHelper(null));

Starting the internal HTTP client
A recoverable error was detected (1001), attempting again in 0 ms.

Restlet timeout
Starting the internal HTTP client
A recoverable error was detected (1001), attempting again in 0 ms.

  1. I have a similar result with:
    Engine.getInstance().getRegisteredClients().clear(); Engine.getInstance().getRegisteredClients().add(new org.restlet.ext.net.HttpClientHelper(null));

Unable to register the helper org.restlet.ext.ssl.HttpsClientHelper
java.lang.NoClassDefFoundError: org.restlet.ext.ssl.HttpsClientHelper
...
Unable to register the helper org.restlet.ext.ssl.HttpsServerHelper
java.lang.NoClassDefFoundError: org.restlet.ext.ssl.HttpsServerHelper
Communication Error (1001) - The connector failed to complete the communication with the server

Engine.getInstance().getRegisteredClients().add(new org.restlet.ext.httpclient.HttpClientHelper(null));

java.lang.IllegalStateException: Scheme 'https' not registered.

Engine.getInstance().getRegisteredClients().add(new org.restlet.ext.nio.HttpsClientHelper(null));

Unable to register the helper org.restlet.ext.nio.HttpClientHelper

  1. OkHttp is work fine with same https url without any additional settings.

  2. https://services.odata.org:443/V3/(S(old0zcqrrak3aezaesutegxj))/OData/OData.svc/ work in browser, but not work on restlet

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions