You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used to configure it via the following environment variable (as we can only use uppercase characters and underscores in our environment):
USER_API_REST_CLIENT_MP_REST_URL
This worked perfectly fine up to Quarkus 2.3.1.
In Quarkus 2.4.0 + 2.4.1, I get the following error message (I've added line breaks for better readability):
Caused by: java.lang.IllegalArgumentException: Unable to determine the proper baseUrl/baseUri.
Consider registering using @RegisterRestClient(baseUri="someuri"),
@RegisterRestClient(configKey="orkey"),
or by adding 'quarkus.rest-config."user-api-rest-client".url'
or 'quarkus.rest-config."user-api-rest-client".uri'
to your Quarkus configuration
Describe the bug
I have the following REST client:
I used to configure it via the following environment variable (as we can only use uppercase characters and underscores in our environment):
This worked perfectly fine up to Quarkus 2.3.1.
In Quarkus 2.4.0 + 2.4.1, I get the following error message (I've added line breaks for better readability):
First of all, there's an error in that message, it should be "quarkus.rest-client", not "quarkus.rest-config" (see https://quarkus.io/guides/rest-client#create-the-configuration).
But that's not the issue here.
As per the documentation, all these configuration keys work fine (in a test environment):
However, as I said before, in our production environment, I can use only uppercase and underscore.
But all these keys do not work:
Expected behavior
Uppercase/underscore environment variables - such as the following ones - should be usable for REST client configuration:
Actual behavior
None of the following uppercase/underscore environment variables are usable for REST client configuration:
How to Reproduce?
Output of
uname -a
orver
Linux debian 4.19.0-16-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64 GNU/Linux
Output of
java -version
openjdk version "16.0.1" 2021-04-20
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.4.0, 2.4.1
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.6.3
Additional information
No response
The text was updated successfully, but these errors were encountered: