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

Fix error response when a person POSTs to API root #3005

Closed
rebeccacremona opened this issue Jan 4, 2022 · 1 comment
Closed

Fix error response when a person POSTs to API root #3005

rebeccacremona opened this issue Jan 4, 2022 · 1 comment
Labels
api Subcategory bug Issue type priority-low Priority hint should-be-small Effort hint

Comments

@rebeccacremona
Copy link
Contributor

rebeccacremona commented Jan 4, 2022

If you POST to the API root at https://api.perma.cc/, whatever we serve wants to reverse the landing route, which, in that context, evidently can't be reversed with out further supplying the perma app namespace.

Probably, this only happens via code/the command line, and so it wants to return 405 and JSON, DRF style, not an HTML page.

When fixing, check that it works for both https://api.perma.cc/, and https://perma.cc/api; we use provide the api in both locations.

@rebeccacremona rebeccacremona added the should-be-small Effort hint label Jan 4, 2022
@matteocargnelutti matteocargnelutti added bug Issue type api Subcategory priority-low Priority hint labels Aug 9, 2022
@rebeccacremona
Copy link
Contributor Author

Closed by #3174

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Subcategory bug Issue type priority-low Priority hint should-be-small Effort hint
Projects
None yet
Development

No branches or pull requests

2 participants