Skip to content

/docs leads to 404 #356

@davidtorosyan

Description

@davidtorosyan

Describe the bug
The docs link leads to a 404: https://batch.openaddresses.io/docs

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://batch.openaddresses.io/data
  2. Click on the question mark icon
  3. Observe 404 page

Expected behavior
Expected a docs page.

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Chrome
  • Version: Version 116.0.5845.142 (Official Build) (64-bit)

Additional context
This was previously filed in a different repo (openaddresses/openaddresses#6669), opening here since this is more applicable.

From my investigation I found that the nginx config specifies that the link should be /docs/

location /docs/ {

And if we go to the route (https://batch.openaddresses.io/docs/) we see a different 404 page, which indicates the nginx filter gets hit:
image

But I also see that there's a route to /docs, without the slash.

app.use('/docs', SwaggerUI.serve, SwaggerUI.setup(schema.docs.base));

My guess is that the nginx override is messing with the proper path.

Also, I'm thinking this broke with 1967934, which switched to Swagger. cc @ingalls

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions