Search code examples
error-handlingwso2wso2-api-manager

wso2 api manager convert.xml sequence will be removed after started


I'm using from wso2 api manager 4.1.0 and I want to handle errors according to https://apim.docs.wso2.com/en/latest/troubleshooting/error-handling

When the server is up and I add the convert.xml file it's working But after restarting the server, the file will be deleted!


Solution

  • You need to add the following config to the deployment.toml to skip deletion.

    [apim.sync_runtime_artifacts.gateway.skip_list]
    sequences = ["custom_fault_sequence.xml"]
    

    If you have multiple sequences you can add them as a comma-separated list.

    [apim.sync_runtime_artifacts.gateway.skip_list]
    sequences = ["auth_failure_handler_.xml", "production_key_error_.xml"]