{"record":{"id":"da7fddb220d000aa","repo":"quarkusio/quarkus","slug":"value-config-url-of-property-quarkus-spri","errorCode":null,"errorMessage":"Value: '${config.url()}' of property 'quarkus.spring-cloud-config.url' is invalid","messagePattern":"Value: '(.+?)' of property 'quarkus\\.spring-cloud-config\\.url' is invalid","errorType":"exception","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"extensions/spring-cloud-config-client/runtime/src/main/java/io/quarkus/spring/cloud/config/client/runtime/DirectConfigServerBaseUrlProvider.java","lineNumber":22,"sourceCode":"import java.net.URISyntaxException;\n\nimport io.quarkus.spring.cloud.config.client.runtime.util.UrlUtility;\n\npublic class DirectConfigServerBaseUrlProvider implements ConfigServerBaseUrlProvider {\n    private final SpringCloudConfigClientConfig config;\n\n    public DirectConfigServerBaseUrlProvider(SpringCloudConfigClientConfig config) {\n        this.config = config;\n    }\n\n    @Override\n    public URI get() {\n        String url = config.url();\n        validate(url);\n        try {\n            return UrlUtility.toURI(url);\n        } catch (URISyntaxException e) {\n            throw new IllegalArgumentException(\"Value: '\" + config.url()\n                    + \"' of property 'quarkus.spring-cloud-config.url' is invalid\", e);\n        }\n    }\n\n    private void validate(String url) {\n        if (null == url || url.isEmpty()) {\n            throw new IllegalArgumentException(\n                    \"The 'quarkus.spring-cloud-config.url' property cannot be empty\");\n        }\n    }\n}\n","sourceCodeStart":4,"sourceCodeEnd":34,"githubUrl":"https://github.com/quarkusio/quarkus/blob/e1c734241f34c7919086ceb4c9262b4a58f6de44/extensions/spring-cloud-config-client/runtime/src/main/java/io/quarkus/spring/cloud/config/client/runtime/DirectConfigServerBaseUrlProvider.java#L4-L34","documentation":"DirectConfigServerBaseUrlProvider converts the quarkus.spring-cloud-config.url property into a java.net.URI for the Config Server base URL. When UrlUtility.toURI() raises a URISyntaxException the provider wraps it in an IllegalArgumentException naming the offending property value. The configured URL is syntactically invalid (bad characters, spaces, missing scheme, etc.).","triggerScenarios":"Setting quarkus.spring-cloud-config.url to a malformed URI, e.g. 'http://config server:8888' (space), 'config-server:8888' (no scheme, parsed as unknown scheme), or containing unencoded special characters like '{' or '|'.","commonSituations":"Copy-pasting a URL with trailing whitespace or quotes from documentation; using environment-variable interpolation that leaves literal '${...}' text in the value; typos in the host/port.","solutions":["Correct the value of quarkus.spring-cloud-config.url to a valid absolute URI, e.g. http://config-server:8888","URL-encode any special characters or remove spaces/braces","Verify that property substitution resolved correctly (run with -Dquarkus.log.level=DEBUG or print effective config)"],"exampleFix":"// before\nquarkus.spring-cloud-config.url=http://config server:8888\n\n// after\nquarkus.spring-cloud-config.url=http://config-server:8888","handlingStrategy":"validation","validationCode":"String url = \"http://config-server:8888\";\ntry { new java.net.URI(url); } catch (URISyntaxException e) {\n    throw new IllegalArgumentException(\"Invalid quarkus.spring-cloud-config.url: \" + url, e);\n}","typeGuard":null,"tryCatchPattern":"catch (IllegalArgumentException e) { log.error(\"Fix quarkus.spring-cloud-config.url\", e); }","preventionTips":["Always include scheme http:// or https://","Avoid spaces and unencoded special characters in the URL","Validate effective config in CI before deployment"],"tags":["quarkus","spring-cloud-config","uri-syntax","configuration"],"backgroundTag":"invalid-url-syntax","analyzedSha":"e1c734241f34c7919086ceb4c9262b4a58f6de44","analyzedAt":"2026-09-05T17:01:29.979Z","contentChangedAt":"2026-09-05T17:01:29.979Z","schemaVersion":2},"datasetVersion":"2026-09-12T22:17:10.623Z"}