Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

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();

click to hide/show revision 2
No.2 Revision

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

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)

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();

novaApi.getConfiguredRegions();