jhipster / jhipster-guides

Guides to help you learn JHipster quickly
Apache License 2.0
186 stars 65 forks source link

Online Guide: ERR_ABORTED 404 in API menu. #11

Open Rouche opened 5 years ago

Rouche commented 5 years ago

When navigating to API in part 05 of the guide, the page doesn't load, i get this in the console.

Every other menu are working ok. Any idea what could cause this?

It really seems like nothing from swagger-ui is deployed. (Or not at the right place?) Applcation tries to fetch them from /swagger-ui/dist/ that directory is empty in target/classes/static/

GET https://8080-dot-3855032-dot-devshell.appspot.com/swagger-ui/dist/lib/marked.js net::ERR_ABORTED 404 index.html:22 GET https://8080-dot-3855032-dot-devshell.appspot.com/swagger-ui/dist/lib/highlight.9.1.0.pack.js net::ERR_ABORTED 404 index.html:21 GET https://8080-dot-3855032-dot-devshell.appspot.com/swagger-ui/dist/swagger-ui.min.js net::ERR_ABORTED 404 index.html:20 GET https://8080-dot-3855032-dot-devshell.appspot.com/swagger-ui/dist/lib/backbone-min.js net::ERR_ABORTED 404 ..... and a lot more

Rouche commented 5 years ago

Duplicate https://github.com/jhipster/generator-jhipster/issues/8842

Not really duplicate since this one comes from online guide, configuration should be working.

Rouche commented 5 years ago

Well, i had to download Swagger release 2.2.10, extract dist forlder in BugTrackerJHipster\src\main\webapp\swagger-ui Change url in index.html for url = "/v2/api-docs";

Now i dont know why the files are not there when creating the monolitic application. Maybe some repo dont have the swagger files anymore.

Repo: https://github.com/Rouche/BugTrackerJHipster/tree/master/src/main/webapp/swagger-ui

I see the API but "Try it out" ends up with curl -X GET --header 'Accept: /' 'https://127.0.0.1/api/tickets/self?eagerload=false'

And

{
  "error": "no response from server"
}
Hawkurane commented 5 years ago

Hello, thanks for posting an issue. Let me get back to you asap :)

Hawkurane commented 5 years ago

@Rouche I could not reproduce your error :/ On my machine (ubuntu 18.04) everything works fine and I can access swagger properly, and still see newly added API

Rouche commented 5 years ago

Im on windows. Ill try when i get time to mount a Virtual box.