Cannot detect API key from .env in my Spring Boot App

I want to create an app to use API Layer for currency exchange. I used a API key of Exchange Rates Data API in apilayer.com. When I send a request to Get Rates defined in postman_collection in my repo. I get this error message shown below
com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "message" (class com.exchangeapi.currencyexchange.exception.RestTemplateError), not marked as ignorable (4 known properties: "error", "status", "path", "timestamp"]) at [Source: (String)"{"message":"No API key found in request"}"; line: 1, column: 42] (through reference chain: com.exchangeapi.currencyexchange.exception.RestTemplateError["message"])
com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "message" (class com.exchangeapi.currencyexchange.exception.RestTemplateError), not marked as ignorable (4 known properties: "error", "status", "path", "timestamp"]) at [Source: (String)"{"message":"No API key found in request"}"; line: 1, column: 42] (through reference chain: com.exchangeapi.currencyexchange.exception.RestTemplateError["message"])
Here is the link : https://stackoverflow.com/questions/76300394/cannot-detect-api-key-from-env-in-my-spring-boot-app How can I fix it?
Stack Overflow
Cannot detect API key from .env in my Spring Boot App
I want to create an app to use API Layer for currency exchange. I used a API key of Exchange Rates Data API in apilayer.com. When I send a request to Get Rates defined in postman_collection in my r...
1 Reply
JavaBot
JavaBot2y ago
This post has been reserved for your question.
Hey @direct_x_34! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here. 💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one.
Want results from more Discord servers?
Add your server