Skip to content
New issue

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

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

Already on GitHub? # to your account

Ensure datatracker API calls have trailing / when needed #239

Open
jennifer-richards opened this issue Oct 24, 2024 · 0 comments
Open

Ensure datatracker API calls have trailing / when needed #239

jennifer-richards opened this issue Oct 24, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@jennifer-richards
Copy link
Member

In some testing, I happened to notice that many or most calls to the datatracker API are resulting in a 301 response before hitting the correct endpoint due to a missing trailing slash:

[24/Oct/2024 08:14:19] "GET /api/rpc/doc/submitted_to_rpc HTTP/1.0" 301 0
[24/Oct/2024 08:14:19] "GET /api/rpc/doc/submitted_to_rpc/ HTTP/1.0" 200 735
[24/Oct/2024 08:14:20] "GET /api/rpc/doc/drafts/57991 HTTP/1.0" 200 459
[24/Oct/2024 08:14:23] "GET /api/rpc/doc/drafts/57991 HTTP/1.0" 200 459
[24/Oct/2024 08:14:23] "GET /api/rpc/subject/14733/person HTTP/1.0" 301 0
[24/Oct/2024 08:14:23] "GET /api/rpc/subject/14733/person/ HTTP/1.0" 200 49
[24/Oct/2024 08:14:23] "GET /api/rpc/subject/14733/person HTTP/1.0" 301 0
[24/Oct/2024 08:14:23] "GET /api/rpc/subject/14733/person/ HTTP/1.0" 200 49
[24/Oct/2024 08:14:23] "GET /api/rpc/subject/14733/person HTTP/1.0" 301 0
[24/Oct/2024 08:14:23] "GET /api/rpc/subject/14733/person/ HTTP/1.0" 200 49
[24/Oct/2024 08:14:23] "GET /api/rpc/subject/14733/person HTTP/1.0" 301 0
[24/Oct/2024 08:14:23] "GET /api/rpc/subject/14733/person/ HTTP/1.0" 200 49

This may be due to some funny network settings I have to run a k8s-deployed copy of the system on my dev machine, so check that this happens in production (or even normal dev) before spending time chasing it.

@jennifer-richards jennifer-richards added the bug Something isn't working label Oct 24, 2024
@jennifer-richards jennifer-richards self-assigned this Oct 24, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant