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

uploads.json endpoint returns 500 internal server error for some courses #6046

Open
gabina opened this issue Nov 26, 2024 · 0 comments
Open
Labels

Comments

@gabina
Copy link
Member

gabina commented Nov 26, 2024

What is happening?

We're unable to see the uploads for Wikimedia_Nigeria/Monthly_Outstanding_Editor_Recognition_(April_2024_-_March_2025) course. Apparently, the uploads.json endpoint returns 500 internal server error, and the site keeps loading for ever.

To Reproduce

Steps to reproduce the behavior:

  1. Go to uploads tab for course Wikimedia_Nigeria/Monthly_Outstanding_Editor_Recognition_(April_2024_-_March_2025)

Expected behavior

Files uploaded to Wikimedia Commons should appear.

Screenshots

image

Additional context

I found this by chance and created the issue so it doesn't get lost, but I didn't investigate what's going on. But it's related to uploads whose file_name does not begin with “File:" and make pretty_filename fail.
For example: File%3AA+sunflower+%F0%9F%8C%BB%F0%9F%8C%BB+in+Kaduna+Polytechnic%2CSabo+Campus.jpg

@gabina gabina added the bug label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant