Malformed escape pair at index 43: http://xx.xx.xx.xx:8774/v2/%(tenant_id)s/v2/

asked 2015-04-04 15:17:16 -0500

DavidBorja gravatar image

updated 2015-04-06 04:41:59 -0500

SGPJ gravatar image

Hi,

I am facing the following exception calling the Rest API using Java:

Caused by: java.net.URISyntaxException: Malformed escape pair at index 43: http://xx.xx.xx.xx:8774/v2/%(tenant_id)s/v2/02a74d0d7e064f15bf09096ae9de9104/servers/2badda31-d787-4dad-9e27-19923a513beb
    at java.net.URI$Parser.fail(Unknown Source)
    at java.net.URI$Parser.scanEscape(Unknown Source)
    at java.net.URI$Parser.scan(Unknown Source)
    at java.net.URI$Parser.checkChars(Unknown Source)
    at java.net.URI$Parser.parseHierarchical(Unknown Source)
    at java.net.URI$Parser.parse(Unknown Source)
    at java.net.URI.<init>(Unknown Source)
    at com.google.gson.internal.bind.TypeAdapters$19.read(TypeAdapters.java:467)

I am using the NovaApi org.jclouds.openstack.nova.v2_0.NovaApi:

novaApi = ContextBuilder.newBuilder(provider)
                .endpoint("http://xx.xx.xx.xx:5000/v2.0/")
                .credentials(identity, credential)
                .modules(modules)
                .buildApi(NovaApi.class);
        regions = novaApi.getConfiguredRegions();
edit retag flag offensive close merge delete