Network Error when opening a closed project #12966

Closed
opened 2025-11-02 10:26:33 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @kerem0comert on GitHub (May 8, 2024).

Description

Hi,

I have a closed project that I want to open - however when I click on the Open button I get a Network Error message as seen in the screenshot and the project does not open. When I look at the error logs from the browser console I see:

error when doRequest SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON

Any ideas why this could be the case?

Gitea Version

1.21.5

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

networkerror

Git Version

No response

Operating System

Linux

How are you running Gitea?

Using one of the downloads

Database

None

Originally created by @kerem0comert on GitHub (May 8, 2024). ### Description Hi, I have a closed project that I want to open - however when I click on the ```Open``` button I get a ```Network Error``` message as seen in the screenshot and the project does not open. When I look at the error logs from the browser console I see: ``` error when doRequest SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON ``` Any ideas why this could be the case? ### Gitea Version 1.21.5 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots ![networkerror](https://github.com/go-gitea/gitea/assets/42437138/ac758f95-c6e1-4d96-83cc-340b5ea3a449) ### Git Version _No response_ ### Operating System Linux ### How are you running Gitea? Using one of the downloads ### Database None
GiteaMirror added the type/bug label 2025-11-02 10:26:33 -06:00
Author
Owner

@wxiaoguang commented on GitHub (May 8, 2024):

I did a quick test with docker, I can not reproduce the problem.

Do you see any related error logs in gitea's log and reverse proxy's log?

version: "3"

services:
  server:
    image: gitea/gitea:1.21.5
    container_name: gitea-1.21
    volumes:
      - ./gitea:/data
    ports:
      - "3001:3000"
      - "3021:22"
@wxiaoguang commented on GitHub (May 8, 2024): I did a quick test with docker, I can not reproduce the problem. Do you see any related error logs in gitea's log and reverse proxy's log? ``` version: "3" services: server: image: gitea/gitea:1.21.5 container_name: gitea-1.21 volumes: - ./gitea:/data ports: - "3001:3000" - "3021:22" ```
Author
Owner

@yp05327 commented on GitHub (May 8, 2024):

I think this is fixed by #30387, only org/individual project will got this error.
maybe we need to backport it to 1.21

@yp05327 commented on GitHub (May 8, 2024): I think this is fixed by #30387, only org/individual project will got this error. maybe we need to backport it to 1.21
Author
Owner

@wxiaoguang commented on GitHub (May 9, 2024):

only org/individual project will got this error.

Good catch, it is.

@wxiaoguang commented on GitHub (May 9, 2024): > only org/individual project will got this error. Good catch, it is.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12966