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

3 messages · Page 1 of 1 (latest)

plain pike
#

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"])
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?

true stirrupBOT
#

This post has been reserved for your question.

Hey @plain pike! 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.