jhipster / generator-jhipster

JHipster is a development platform to quickly generate, develop, & deploy modern web applications & microservice architectures.
https://www.jhipster.tech
Apache License 2.0
21.5k stars 4.02k forks source link

Got 404 when calling the api of microservice through gateway url. #17417

Closed betterlq closed 10 months ago

betterlq commented 2 years ago
Overview of the issue

I generate a gateway with generator version 7.4.1 and deploy it. I also deploy a microservice with the same base64-secret. Both of them registried successfully. But I got 404 when calling the api of microservice through gateway url. like:http://10.241.27.125:8080/services/miraclerequirement/api/projects

{ "type": "https://www.jhipster.tech/problem/problem-with-message", "title": "Not Found", "status": 404, "detail": "404 NOT_FOUND", "path": "/services/miraclerequirement/api/projects", "message": "error.http.404" }

Motivation for or Use Case

I got 404 after calling the api of microservice through gateway url.

Reproduce the error
Related issues
Suggest a Fix
JHipster Version(s)

generator 7.4.1

JHipster configuration

{ "generator-jhipster": { "applicationType": "gateway", "baseName": "gateway", "jhipsterVersion": "7.4.1", "skipUserManagement": false, "skipCheckLengthOfIdentifier": false, "skipFakeData": false, "jhiPrefix": "jhi", "entitySuffix": "", "dtoSuffix": "DTO", "testFrameworks": [], "blueprints": [], "otherModules": [], "pages": [], "creationTimestamp": 1640009208170, "serviceDiscoveryType": "eureka", "reactive": true, "authenticationType": "jwt", "packageName": "com.xiaomiev.miracle.gateway", "serverPort": "8080", "cacheProvider": "no", "enableHibernateCache": false, "databaseType": "sql", "devDatabaseType": "mysql", "prodDatabaseType": "mysql", "buildTool": "maven", "serverSideOptions": [], "websocket": false, "searchEngine": false, "messageBroker": false, "enableSwaggerCodegen": false, "clientFramework": "angularX", "withAdminUi": true, "clientTheme": "none", "enableTranslation": true, "nativeLanguage": "zh-cn", "monorepository": true, "skipCommitHook": true, "jwtSecretKey": "YjVkZmQzMzA0N2ZkOWIxOTBhMTY5MWE5YmVmMGNkMGI4Mzc5NzJhZWY0ZDA3ZWIzMWQ5OWRiMWRhNGUzOThmNmFlM2U3NWI0ZDE3MjA4ODI2N2I4M2MwNjA4NTkyMmQ5OWEzNTQ1MDNhZjAyMTc5YTEwNGQyNjRhNGJhMDA4YmI=", "devServerPort": 4200, "clientPackageManager": "npm", "clientThemeVariant": "", "languages": ["zh-cn", "en"], "enableGradleEnterprise": false } }

Entity configuration(s) entityName.json files generated in the .jhipster directory
Browsers and Operating System

Windows10 , chrome version 95.0.4638.69

gachokaerick commented 2 years ago

I got the same error. After restarting all services and applications, the error disappeared.

github-actions[bot] commented 10 months ago

This issue is stale because it has been open for too long without any activity. Due to the moving nature of jhipster generated application, bugs can become invalid. If this issue still applies please comment otherwise it will be closed in 7 days