You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have created the hipster app with a backend and frontend separate from the commands below. After successfully starting the backend and frontend and trying the login, I get the "Request method 'POST' not supported" in the backend logs.
jhipster --skip-client
jhipster jdl jhipster.jdl
docker-compose -f src/main/docker/keycloak.yml up
docker-compose -f src/main/docker/postgresql.yml up
I have created the hipster app with a backend and frontend separate from the commands below.
This is not how JHIpster is designed to work. If you want a frontend that's not part of a full-stack app, you can use the Ionic or React Native blueprints. Otherwise, the client expects to be packaged with the backend.
Overview of the issue
I have created the hipster app with a backend and frontend separate from the commands below. After successfully starting the backend and frontend and trying the login, I get the "Request method 'POST' not supported" in the backend logs.
jhipster --skip-client
jhipster jdl jhipster.jdl
docker-compose -f src/main/docker/keycloak.yml up
docker-compose -f src/main/docker/postgresql.yml up
jhipster --skip-server --auth=oauth2 --db=postgresql
jhipster jdl jhipster.jdl
Motivation for or Use Case
I have checked the source code in the frontend side and the request is made with the POST method, where the backend expects GET method.
I think that when the jhipster app is created with a separate back and front and with oauth2 support, it does not create the source code properly.
Reproduce the error
jhipster --skip-client
jhipster jdl jhipster.jdl
docker-compose -f src/main/docker/keycloak.yml up
docker-compose -f src/main/docker/postgresql.yml up
jhipster --skip-server --auth=oauth2 --db=postgresql
jhipster jdl jhipster.jdl
Related issues
#21079
Suggest a Fix
no suggestion
JHipster Version(s)
v8.7.0
JHipster configuration
.yo-rc.json file
Environment and Tools
java version "17.0.9" 2023-10-17 LTS
Java(TM) SE Runtime Environment (build 17.0.9+11-LTS-201)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.9+11-LTS-201, mixed mode, sharing)
git version 2.39.2.windows.1
node: v20.11.1
npm: 10.2.4
Docker version 24.0.6, build ed223bc
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryJDL entity definitions
.yo-rc.json file
Environment and Tools
java version "17.0.9" 2023-10-17 LTS
Java(TM) SE Runtime Environment (build 17.0.9+11-LTS-201)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.9+11-LTS-201, mixed mode, sharing)
git version 2.39.2.windows.1
node: v20.11.1
npm: 10.2.4
Docker version 24.0.6, build ed223bc
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryJDL entity definitions
Browsers and Operating System
Chrome, Windows 10
The text was updated successfully, but these errors were encountered: