Skip to content

  • 体验新版
    • 正在加载...
  • 登录
  • GitCode
  • 帮助文档
  • Issue
  • #174

帮
帮助文档
  • 项目概览

GitCode / 帮助文档

通知 1628
Star 125
Fork 140
  • 代码
    • 文件
    • 提交
    • 分支
    • Tags
    • 贡献者
    • 分支图
    • Diff
  • Issue 166
    • 列表
    • 看板
    • 标记
    • 里程碑
  • 合并请求 23
  • DevOps
    • 流水线
    • 流水线任务
    • 计划
  • Wiki 89
    • Wiki
  • 分析
    • 仓库
    • DevOps
  • 项目成员
  • Pages
帮
帮助文档
  • 项目概览
    • 项目概览
    • 详情
    • 发布
  • 仓库
    • 仓库
    • 文件
    • 提交
    • 分支
    • 标签
    • 贡献者
    • 分支图
    • 比较
  • Issue 166
    • Issue 166
    • 列表
    • 看板
    • 标记
    • 里程碑
  • 合并请求 23
    • 合并请求 23
  • Pages
  • DevOps
    • DevOps
    • 流水线
    • 流水线任务
    • 计划
  • 分析
    • 分析
    • 仓库分析
    • DevOps
  • Wiki 89
    • Wiki
  • 成员
    • 成员
  • 收起侧边栏
  • 动态
  • 分支图
  • 创建新Issue
  • 流水线任务
  • 提交
  • Issue看板
已关闭
开放中
Opened 10月 09, 2023 by swatchion@swatchion

服务器web界面仓库详情页面 500 错误

几天前遇到这个问题。

在个人的概览界面(登录后的首页)

报了一堆跨域的错


14:12:35.152 Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). g.csdnimg.cn:3:8118
14:12:35.193 LTSSDK:init success 4 report.js:61:1444
14:12:35.193
Some cookies are misusing the recommended “SameSite“ attribute 38
14:12:35.242 Content-Security-Policy: The page’s settings blocked the loading of a resource at https://eva2.csdn.net/v3/06981375190026432f77c01bfca33e32/lts/groups/dadde766-b087-42da-8e67-d2499a520ee7/streams/5da0dae3-481b-478b-92ca-3caa293e4a29/logs (“connect-src”). report.js:76:7837
14:12:35.243
LTSSDK:LTS.0300|Request failed,response code=--,error=send fail. report.js:61:1643
14:12:35.243 Content-Security-Policy: The page’s settings blocked the loading of a resource at https://eva2.csdn.net/v3/06981375190026432f77c01bfca33e32/lts/groups/dadde766-b087-42da-8e67-d2499a520ee7/streams/a0119567-bf91-4314-ab75-f683ba6c0c0a/logs (“connect-src”). report.js:76:7837
14:12:35.243
LTSSDK:LTS.0300|Request failed,response code=--,error=send fail. report.js:61:1643
14:12:35.462 Content-Security-Policy: The page’s settings blocked the loading of a resource at data:application/font-woff;charset=utf-8… (“font-src”). swatchion
14:12:35.486
Request to access cookie or storage on “<URL>” was blocked because it came from a tracker and content blocking is enabled. 4
14:12:35.612 Loading failed for the <script> with source “https://hmcdn.baidu.com/static/tongji/plugins/UrlChangeTracker.js”. swatchion:1:1
14:12:35.612 Content-Security-Policy: The page’s settings blocked the loading of a resource at https://hmcdn.baidu.com/static/tongji/plugins/UrlChangeTracker.js (“script-src”). hm.js:35:317
14:12:37.195 Content-Security-Policy: The page’s settings blocked the loading of a resource at https://eva2.csdn.net/v3/06981375190026432f77c01bfca33e32/lts/groups/dadde766-b087-42da-8e67-d2499a520ee7/streams/5da0dae3-481b-478b-92ca-3caa293e4a29/logs (“connect-src”). report.js:76:7837
14:12:37.195
LTSSDK:LTS.0300|Request failed,response code=--,error=send fail. report.js:61:1643
14:12:37.196 Content-Security-Policy: The page’s settings blocked the loading of a resource at https://eva2.csdn.net/v3/06981375190026432f77c01bfca33e32/lts/groups/dadde766-b087-42da-8e67-d2499a520ee7/streams/ea448b34-0491-4546-87aa-059120b54c53/logs (“connect-src”). report.js:76:7837
14:12:37.196
LTSSDK:LTS.0300|Request failed,response code=--,error=send fail. report.js:61:1643
14:12:37.196 Content-Security-Policy: The page’s settings blocked the loading of a resource at https://eva2.csdn.net/v3/06981375190026432f77c01bfca33e32/lts/groups/dadde766-b087-42da-8e67-d2499a520ee7/streams/a0119567-bf91-4314-ab75-f683ba6c0c0a/logs (“connect-src”). report.js:76:7837
14:12:37.196
LTSSDK:LTS.0300|Request failed,response code=--,error=send fail. report.js:61:1643
14:12:39.201 Content-Security-Policy: The page’s settings blocked the loading of a resource at https://eva2.csdn.net/v3/06981375190026432f77c01bfca33e32/lts/groups/dadde766-b087-42da-8e67-d2499a520ee7/streams/5da0dae3-481b-478b-92ca-3caa293e4a29/logs (“connect-src”). report.js:76:7837
14:12:39.201
LTSSDK:LTS.0300|Request failed,response code=--,error=send fail. report.js:61:1643
14:12:39.201 Content-Security-Policy: The page’s settings blocked the loading of a resource at https://eva2.csdn.net/v3/06981375190026432f77c01bfca33e32/lts/groups/dadde766-b087-42da-8e67-d2499a520ee7/streams/ea448b34-0491-4546-87aa-059120b54c53/logs (“connect-src”). report.js:76:7837
14:12:39.201
LTSSDK:LTS.0300|Request failed,response code=--,error=send fail. report.js:61:1643
14:12:39.201 Content-Security-Policy: The page’s settings blocked the loading of a resource at https://eva2.csdn.net/v3/06981375190026432f77c01bfca33e32/lts/groups/dadde766-b087-42da-8e67-d2499a520ee7/streams/a0119567-bf91-4314-ab75-f683ba6c0c0a/logs (“connect-src”). report.js:76:7837
14:12:39.201
LTSSDK:LTS.0300|Request failed,response code=--,error=send fail. report.js:61:1643
14:12:41.205 Content-Security-Policy: The page’s settings blocked the loading of a resource at https://eva2.csdn.net/v3/06981375190026432f77c01bfca33e32/lts/groups/dadde766-b087-42da-8e67-d2499a520ee7/streams/5da0dae3-481b-478b-92ca-3caa293e4a29/logs (“connect-src”). report.js:76:7837
14:12:41.205
LTSSDK:LTS.0300|Request failed,response code=--,error=send fail. report.js:61:1643
14:12:41.206 Content-Security-Policy: The page’s settings blocked the loading of a resource at https://eva2.csdn.net/v3/06981375190026432f77c01bfca33e32/lts/groups/dadde766-b087-42da-8e67-d2499a520ee7/streams/ea448b34-0491-4546-87aa-059120b54c53/logs (“connect-src”). report.js:76:7837
14:12:41.206
LTSSDK:LTS.0300|Request failed,response code=--,error=send fail. report.js:61:1643
14:12:41.206 Content-Security-Policy: The page’s settings blocked the loading of a resource at https://eva2.csdn.net/v3/06981375190026432f77c01bfca33e32/lts/groups/dadde766-b087-42da-8e67-d2499a520ee7/streams/a0119567-bf91-4314-ab75-f683ba6c0c0a/logs (“connect-src”). report.js:76:7837
14:12:41.206
LTSSDK:LTS.0300|Request failed,response code=--,error=send fail. report.js:61:1643

查看自己的仓库或者是其他的人的第三方仓库,服务端都会报 500 错误。

Status
500
Internal Server Error
VersionHTTP/1.1
Transferred2.88 kB (2.46 kB size)
Referrer Policystrict-origin-when-cross-origin
Request PriorityHighest
DNS ResolutionSystem

https://codechina-uploads.obs.cn-north-4.myhuaweicloud.com/%40hashed/6b/0f/6b0f184f14930ed2aab00d963792fac1cf7c8439503cb58ac06dde647c456940/89f20e3a1f4cf9c6ebe15e981ff5e338/80e1cf1d22447e83ad868b76ace2ecc2.png?response-content-disposition=inline; filename="80e1cf1d22447e83ad868b76ace2ecc2.png"; filename*=UTF-8''80e1cf1d22447e83ad868b76ace2ecc2.png&response-content-type=image/png&X-Amz-Expires=600&X-Amz-Date=20220117T100658Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=QK3ORGAKW2CFPLGKCDJI/20220117/cn-north-4/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=8fe8a5960536fbedaed05e90c9cdc58eb4532d7a2464b61541a34dd700d6f8d4

另外web界面的仓库详情,还会请求以上图片,但是会报 400 错误

Status
400
Bad Request
VersionHTTP/1.1
Transferred702 B (0 B size)
Referrer Policystrict-origin-when-cross-origin
Request PriorityLow
DNS ResolutionSystem

我尝试重新注册了一个账户,发现新账户没有这个问题。

gitcode 的服务端最近改了什么新功能吗?老用户受影响?

Edited 10月 09, 2023 by swatchion
指派人
分配到
无
里程碑
无
分配里程碑
工时统计
无
截止日期
无
标识: gitcode/help-docs#174
渝ICP备2023009037号

京公网安备11010502055752号

网络110报警服务 Powered by GitLab CE v13.7
开源知识
Git 入门 Pro Git 电子书 在线学 Git
Markdown 基础入门 IT 技术知识开源图谱
帮助
使用手册 反馈建议 博客
《GitCode 隐私声明》 《GitCode 服务条款》 关于GitCode
Powered by GitLab CE v13.7