gitea: Error 500 in package view after uploading pypi package

Description

Error 500 is shown when trying to get list of package for an organization. This occurred after uploading some python packages (wheels) with twine. Logs show this error: 2022/10/18 08:27:00 .../web/user/package.go:58:ListPackages() [E] [634e4734-29] GetPackageDescriptors: pypi.Metadata.Description: readStringSlowPath: unexpected end of input, error found in #10 byte of ...|coon:\")\n|..., bigger context ...|:vampire: :pile_of_poo: :thumbs_up: :raccoon:\")\n|... I created this ticket to not forget but I’m still checking what could have been happened, I will update the ticket accordingly. First feeling is that a user tried to upload a corrupted package.

Gitea Version

1.17.1

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

2.27

Operating System

RHEL7

How are you running Gitea?

executable from GitHub delivery

Database

MySQL

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Comments: 17 (6 by maintainers)

Most upvoted comments

You could manually navigate to /<owner>/-/packages/<type>/<name>/<version>/settings to delete the package.

As far as I can see, there is no API for deleting a package, meaning that we should do it manually in database.

There is an API call for that: https://gitea.com/api/swagger#/package/deletePackage

And as a third way, you can delete a package from the admin dashboard /admin/packages.