Internal server errors on certain API requests #5364

Closed
opened 2025-11-02 06:22:40 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @fornwall on GitHub (May 8, 2020).

  • Gitea version (or commit ref): 791353c03b
  • Git version: 2.26.2
  • Operating system: Linux
  • Database (use [x]):
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)

Description

Certain API requests causes 500 Internal Server Error responses:

curl -D- https://try.gitea.io/api/v1/teams/0
curl -D- -X DELETE https://try.gitea.io/api/v1/teams/0
curl -D- -X PATCH -H "Content-Type: application/json" --data '{"name": ""}' https://try.gitea.io/api/v1/teams/0
curl -D- https://try.gitea.io/api/v1/teams/0/members
curl -D- https://try.gitea.io/api/v1/teams/0/members/0
curl -D- https://try.gitea.io/api/v1/teams/0/repos

Replace try.gitea.io with localhost to try it out locally.

These errors were found when trying out https://meeshkan.com, a system for automatically testing API behaviour, on open source repositories. Feel free to sign this repository up for that GitHub app if you are interested in getting more scan reports continuously in the future!

Originally created by @fornwall on GitHub (May 8, 2020). - Gitea version (or commit ref): 791353c03ba81d1c67393a04256a77293307ecad - Git version: 2.26.2 - Operating system: Linux - Database (use `[x]`): - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [x] Yes (provide example URL) ## Description Certain API requests causes 500 Internal Server Error responses: ``` curl -D- https://try.gitea.io/api/v1/teams/0 curl -D- -X DELETE https://try.gitea.io/api/v1/teams/0 curl -D- -X PATCH -H "Content-Type: application/json" --data '{"name": ""}' https://try.gitea.io/api/v1/teams/0 curl -D- https://try.gitea.io/api/v1/teams/0/members curl -D- https://try.gitea.io/api/v1/teams/0/members/0 curl -D- https://try.gitea.io/api/v1/teams/0/repos ``` Replace try.gitea.io with localhost to try it out locally. These errors were found when trying out https://meeshkan.com, a system for automatically testing API behaviour, on open source repositories. Feel free to sign this repository up for that GitHub app if you are interested in getting more scan reports continuously in the future!
GiteaMirror added the type/enhancement label 2025-11-02 06:22:40 -06:00
Author
Owner

@stale[bot] commented on GitHub (Jul 11, 2020):

This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.

@stale[bot] commented on GitHub (Jul 11, 2020): This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.
Author
Owner

@stale[bot] commented on GitHub (Jul 25, 2020):

This issue has been automatically closed because of inactivity. You can re-open it if needed.

@stale[bot] commented on GitHub (Jul 25, 2020): This issue has been automatically closed because of inactivity. You can re-open it if needed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#5364