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.55k stars 4.02k forks source link

404 while generating entities on existing project #23524

Closed kamssiopeia closed 1 year ago

kamssiopeia commented 1 year ago
Overview of the issue

I'm getting 404 while trying to regenerate entities using jhipster jdl command. I notced this issue two days ago, before that everything worked with no problems. Last time I regenerated entities was on 27th of July

❯ jhipster jdl db/jhipster_jdl.jh
INFO! Using JHipster version installed locally in current project's node_modules
INFO! Downloading file: https://raw.githubusercontent.com/jhipster/jdl-samples/master/db/jhipster_jdl.jh
Error: Error downloading https://raw.githubusercontent.com/jhipster/jdl-samples/master/db/jhipster_jdl.jh: 404 - Not Found
    at ClientRequest.<anonymous> (/home/kamgol/Projekty/ANNKeeper/node_modules/generator-jhipster/cli/jdl.js:44:35)
    at Object.onceWrapper (node:events:510:26)
    at ClientRequest.emit (node:events:390:28)
    at ClientRequest.emit (node:domain:475:12)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:623:27)
    at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
    at TLSSocket.socketOnData (node:_http_client:487:22)
    at TLSSocket.emit (node:events:390:28)
    at TLSSocket.emit (node:domain:475:12)
    at addChunk (node:internal/streams/readable:315:12)
Motivation for or Use Case

Adding new entities through jh file

Reproduce the error

Run command jhipster jdl file_name.jh

Related issues
Suggest a Fix
JHipster Version(s)
JHipster configuration
<details>
<summary>.yo-rc.json file</summary>
<pre>
{
  "generator-jhipster": {
    "promptValues": {
      "packageName": "",
      "nativeLanguage": "en"
    },
    "jhipsterVersion": "6.10.1",
    "baseName": "",
    "packageName": "",
    "packageFolder": "",
    "serverPort": "8080",
    "authenticationType": "jwt",
    "hibernateCache": "ehcache",
    "clusteredHttpSession": false,
    "websocket": false,
    "databaseType": "sql",
    "devDatabaseType": "postgresql",
    "prodDatabaseType": "postgresql",
    "searchEngine": false,
    "messageBroker": false,
    "serviceDiscoveryType": false,
    "buildTool": "gradle",
    "enableSocialSignIn": false,
    "enableSwaggerCodegen": false,
    "jwtSecretKey": "",
    "clientFramework": "angularX",
    "useSass": true,
    "clientPackageManager": "npm",
    "applicationType": "monolith",
    "testFrameworks": ["gatling"],
    "jhiPrefix": "jhi",
    "cacheProvider": "ehcache",
    "enableHibernateCache": true,
    "otherModules": [],
    "enableTranslation": true,
    "nativeLanguage": "en",
    "languages": ["en", "pl"],
    "clientTheme": "none",
    "entitySuffix": "",
    "dtoSuffix": "DTO",
    "blueprints": [],
    "embeddableLaunchScript": false,
    "creationTimestamp": 1599742219689
  }
}

</pre>
</details>
Entity configuration(s) entityName.json files generated in the .jhipster directory

Error is during creation but it's not related to entity configuration

Browsers and Operating System
mshima commented 1 year ago

@DanielFran we should keep jdl-samples master branch for v6 and main for v7

kamssiopeia commented 1 year ago

I think i resolved my own issue by using jhipster import-jdl file_name.jh. I would like to know if command in documentation is meant to be used by newer jhipster versions?

mshima commented 1 year ago

In any case jhipster v6 is not supported anymore. If the file is not found locally, we try to download from jdl-samples repository. You should check if the file is present locally.

mshima commented 1 year ago

I think i resolved my own issue by using jhipster import-jdl file_name.jh. I would like to know if command in documentation is meant to be used by newer jhipster versions?

Yes. For older jhipster version you should look at the archive.

kamssiopeia commented 1 year ago

I think i resolved my own issue by using jhipster import-jdl file_name.jh. I would like to know if command in documentation is meant to be used by newer jhipster versions?

Yes. For older jhipster version you should look at the archive.

Ok, thank you!

DanielFran commented 1 year ago

@DanielFran we should keep jdl-samples master branch for v6 and main for v7

Done