diff --git a/apps/tenor-search-service/src/main/java/no/nav/testnav/apps/tenorsearchservice/consumers/TenorClient.java b/apps/tenor-search-service/src/main/java/no/nav/testnav/apps/tenorsearchservice/consumers/TenorClient.java index c3708f8e552..48c2c20e305 100644 --- a/apps/tenor-search-service/src/main/java/no/nav/testnav/apps/tenorsearchservice/consumers/TenorClient.java +++ b/apps/tenor-search-service/src/main/java/no/nav/testnav/apps/tenorsearchservice/consumers/TenorClient.java @@ -1,6 +1,5 @@ package no.nav.testnav.apps.tenorsearchservice.consumers; -import com.fasterxml.jackson.databind.JsonNode; import no.nav.testnav.apps.tenorsearchservice.config.Consumers; import no.nav.testnav.apps.tenorsearchservice.consumers.command.GetTenorTestdata; import no.nav.testnav.apps.tenorsearchservice.domain.TenorResponse; @@ -26,6 +25,9 @@ public TenorClient(Consumers consumers, MaskinportenClient maskinportenClient) { public Mono getTestdata(String query) { return maskinportenClient.getAccessToken() - .flatMap(token -> new GetTenorTestdata(webClient, query, token.value()).call()); + .flatMap(token -> new GetTenorTestdata(webClient, + query.replace("{", "%7b") + .replace("}", "%7d"), + token.value()).call()); } }