Call the producer through the Kafka REST resource with bad fields for Foo: curl -X POST localhost:8080/api/foos/kafka -H "Authorization: Bearer $token" -d '{ "foo": "foo" }' -H 'Content-Type: application/json'
:boom: :
{
"type" : "https://www.jhipster.tech/problem/problem-with-message",
"title" : "Unauthorized",
"status" : 401,
"detail" : "Full authentication is required to access this resource",
"path" : "/api/foos/kafka",
"message" : "error.http.401"
}%
Related issues
Suggest a Fix
JHipster Version(s)
JHipster configuration
Entity configuration(s) entityName.json files generated in the .jhipster directory
Browsers and Operating System
[x] Checking this box is mandatory (this is just to show you read everything)
Overview of the issue
Motivation for or Use Case
Reproduce the error
mkdir test && cd test && jhipster
Foo
with a String fieldbar
:jhipster entity Foo
yo jhipster-kafka
docker-compose -f src/main/docker/kafka.yml up
./mvnw
Call the producer through the Kafka REST resource with bad fields for Foo:
curl -X POST localhost:8080/api/foos/kafka -H "Authorization: Bearer $token" -d '{ "foo": "foo" }' -H 'Content-Type: application/json'
:boom: :
Related issues
Suggest a Fix
JHipster Version(s)
JHipster configuration
Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryBrowsers and Operating System