Call Url With Form
#23256
Replies: 1 comment
-
Hi Everybody. After a week of debugging i found a work around. Ad a dummy @RegisterRestClient(baseUri = "https://stage.code.quarkus.io/api") And add quarkus.resteasy-json.json-default=false This combination wil make it work. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are trying to call an url wich will suply a token.
// val entity: Entity
= Entity.form(form)val response: Response = target.request(MediaType.APPLICATION_JSON).post(Entity.form(form))
if (response.getStatus() === 200) {
val info: AccesToken = response.readEntity(AccesToken::class.java)
return info.accesToken
} else {
return null
}
But this results in:
javax.ws.rs.ProcessingException: RESTEASY004655: Unable to invoke request: javax.ws.rs.ProcessingException: RESTEASY003215: could not find writer for content-type application/x-www-form-urlencoded
There was an issue:
#13667
This is closed but the issue is not resolved.
Can anybody give me a hint?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions