ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Policy plugin : Execution failed for task ':export-bundle'.


Article ID: 240051


Updated On:


CA API Gateway


I can't export from our gateway using policy plugin .

gradlew clean export -P env=src  -D
> Task :export-bundle FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':export-bundle'.
> API Call (GET) to gateway returned status 404 for uri: https://xxxxxxxxxxxxx:443/restman//1.0/bundle?all=true&encryptSecrets=true&includeDependencies=true&encassAsPolicyDependency=true

  <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  <l7:Error xmlns:l7="">
      <l7:Link rel="self" uri="https://xxxxxxxxxxxx:443/restman//1.0/bundle?all=true&amp;encryptSecrets=true&amp;includeDependencies=true&amp;encassAsPolicyDependency=true"/>
      <l7:Detail>HTTP 404 Not Found</l7:Detail>


Release : 10.1

Component : API GATEWAY


The client is using the connection url for the export as 

url = 'https://xxxxxxxxxxxxx:443/restman'

This is also how it is documented and which works before plugin version 1.0.7.

Now this results in a API Call (GET) to gateway returned status 404 for uri: https://xxxxxxxxxx:443/restman//1.0/bundle?
changing the url to url = 'https://gatewayname'   without the  :443/restman  works .