Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR index.html & facicon.ico #6510

Closed
KoalaGeo opened this issue Oct 12, 2020 · 1 comment
Closed

ERROR index.html & facicon.ico #6510

KoalaGeo opened this issue Oct 12, 2020 · 1 comment

Comments

@KoalaGeo
Copy link

KoalaGeo commented Oct 12, 2020

#5095 # Q&A (please complete the following information)

  • OS: Unix
  • Browser: Firefox/Chrome
  • Version: 81
  • Method of installation: docker
  • Swagger-UI version: 3.35.1
  • Swagger/OpenAPI version: Swagger 1.0, OpenAPI 3.0]

Content & configuration

Clicking GET only gets churning circle.

Logs:
[error] 38#38: *6 open() "/etc/nginx/html/favicon.ico" failed (2: No such file or directory), client: 10.233.70.4, server: localhost, request: "GET /favicon.ico HTTP/1.1",
[error] 38#38: *7 "/etc/nginx/html/index.html" is not found (2: No such file or directory), client: 10.233.70.4, server: localhost, request: "GET / HTTP/1.1"

Example Swagger/OpenAPI definition:

# your YAML here

Swagger-UI configuration options:

FROM swaggerapi/swagger-ui:v3.35.1

EXPOSE 8080

COPY content/openapi.json /app/swagger.json
ENV SWAGGER_JSON=/app/swagger.json
ENV BASE_URL=/sensors
#/default/get_v1_0_Actuators

Describe the bug you're encountering

Clicking GET only gets churning circle.

To reproduce...

Steps to reproduce the behavior:
Click GET

Expected behavior

Should GET the response

@tim-lai
Copy link
Contributor

tim-lai commented Oct 19, 2020

Looks like you might need to configure nginx with permissions to all files in swagger-ui/dist?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants