PKUHoleCommunity icon indicating copy to clipboard operation
PKUHoleCommunity copied to clipboard

后端错误返回,无法显示帖子:Cannot read property of undefined

Open jdyhello opened this issue 2 years ago • 11 comments

屏幕截图 2022-11-21 163217

jdyhello avatar Nov 21 '22 08:11 jdyhello

我也出现了这种情况,在原来的网页https://pkuhelper.pku.edu.cn/hole/ 也上不去,不知道是不是请求太频繁被封了

Hovennnnn avatar Nov 21 '22 08:11 Hovennnnn

但是成绩和教室等功能都是正常的

Hovennnnn avatar Nov 21 '22 08:11 Hovennnnn

我和你的情况一样,而且这个问题有一段时间了

jdyhello avatar Nov 21 '22 08:11 jdyhello

原来的网页也上不去

所以这应该是服务器方面的问题,不是前端的问题。但作为前端我们也可以优化一下错误提示,如果能找到原因的话。

我也乐意帮助遇到问题的大家进行调试,但我能做的事情很有限,要真正解决问题还需要和学校方面沟通。很可惜我看之前 BBS 上有人和青年研究中心沟通了,但他们选择了甩锅。

  • https://bbs.pku.edu.cn/v2/post-read.php?bid=35&threadid=17851519
  • https://bbs.pku.edu.cn/v2/post-read.php?bid=668&threadid=18415928
  • https://bbs.pku.edu.cn/v2/post-read.php?bid=410&threadid=18426314

如果方便的话可以打开浏览器开发者工具看看是怎么样一个错误栈,我好 catch 这个错误优化一下提示。

AllanChain avatar Nov 21 '22 09:11 AllanChain

很感谢同学的帮忙!我对前端不是很熟悉,就截了console和network的截图,如果还需要其它信息的话,我可以接着提供。

console no_return_data

By the way,从第二张图这个请求结果来看,服务器应该是收到了请求,返回code: 0但是没给数据?这就很郁闷了……

Hovennnnn avatar Nov 21 '22 10:11 Hovennnnn

@jdyhello 哥们问题解决了吗,我给青研发了两回邮件,都是“对方已阅读”然后就石沉大海。。

Hovennnnn avatar Jan 05 '23 15:01 Hovennnnn

还没有😭

jdyhello avatar Jan 06 '23 02:01 jdyhello

@jdyhello 哥们问题解决了吗,我给青研发了两回邮件,都是“对方已阅读”然后就石沉大海。。 树洞改版后可以了

jdyhello avatar Jan 07 '23 01:01 jdyhello

哇塞我也好了,太感谢了!-------- 原始邮件 --------发件人: jdyhello @.>日期: 2023年1月7日周六 上午9:55收件人: AllanChain/PKUHoleCommunity @.>抄送: HovenChan @.>, Comment @.>主 题: Re: [AllanChain/PKUHoleCommunity] 后端错误返回,无法显示帖子:Cannot read property of undefined (Issue #74)

@jdyhello 哥们问题解决了吗,我给青研发了两回邮件,都是“对方已阅读”然后就石沉大海。。

树洞改版后可以了

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

Hovennnnn avatar Jan 07 '23 02:01 Hovennnnn

乐乐乐,开心仅限上午,我又变成黑名单用户禁止访问了😵

Hovennnnn avatar Jan 07 '23 05:01 Hovennnnn

乐乐乐,开心仅限上午,我又变成黑名单用户禁止访问了😵

我也是,麻了🥵

jdyhello avatar Jan 07 '23 05:01 jdyhello