gitea icon indicating copy to clipboard operation
gitea copied to clipboard

Network Error when opening a closed project

Open kerem0comert opened this issue 9 months ago • 3 comments

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

kerem0comert avatar May 08 '24 13:05 kerem0comert

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 avatar May 08 '24 13:05 wxiaoguang

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 avatar May 08 '24 23:05 yp05327

only org/individual project will got this error.

Good catch, it is.

wxiaoguang avatar May 09 '24 00:05 wxiaoguang