Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

网页版无法进行评论 #53

Closed
OkayPJ opened this issue Aug 28, 2021 · 4 comments
Closed

网页版无法进行评论 #53

OkayPJ opened this issue Aug 28, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@OkayPJ
Copy link

OkayPJ commented Aug 28, 2021

网页版无法进行评论,提示为“undefined”。使用 VPN 后同样不行。浏览器为 Firefox。

@BennyThink
Copy link
Member

刚刚试了下应该没问题呀,你试试退出登录再重新登录。

如果还不行,

按F12打开控制台,network,然后评论之后看看这个请求?

image

@BennyThink BennyThink added the bug Something isn't working label Aug 28, 2021
@OkayPJ
Copy link
Author

OkayPJ commented Aug 29, 2021

刚刚试了下应该没问题呀,你试试退出登录再重新登录。

如果还不行,

按F12打开控制台,network,然后评论之后看看这个请求?

image

退出重新登陆后评论正常,谢谢!

@OkayPJ OkayPJ closed this as completed Aug 29, 2021
@OkayPJ
Copy link
Author

OkayPJ commented Aug 30, 2021

另一台设备没有重新登录,问题仍然存在。
控制台中,https://yyets.dmesg.app/api/user 显示 401。

HTTP/2 401 Unauthorized
date: Mon, 30 Aug 2021 08:17:10 GMT
content-type: application/json; charset=UTF-8
content-length: 34
x-frame-options: SAMEORIGIN
x-xss-protection: 1; mode=block
x-content-type-options: nosniff
cf-cache-status: DYNAMIC
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=V72sktwFSDwtfwoVdih%2BQZmyhdNHZjv3mjM4Sm%2F9L62913UrFHKJs5qffo7hAPCRls4bVyJBRwtyvxGEv2U0Xx%2FTxsqy4QTXEXcRW0co14LDX%2Bu5DIF%2B9Np1AHOx4IE33EM%3D"}],"group":"cf-nel","max_age":604800}
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
strict-transport-security: max-age=15552000; includeSubDomains; preload
server: cloudflare
cf-ray: 686c94c639010ccb-LAX
alt-svc: h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400, h3=":443"; ma=86400
X-Firefox-Spdy: h2
GET /api/user HTTP/2
Host: yyets.dmesg.app
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Firefox/91.0
Accept: application/json, text/plain, */*
Accept-Language: zh-CN
Accept-Encoding: gzip, deflate, br
Referer: https://yyets.dmesg.app/resource?id=26326
Connection: keep-alive
Cookie: username=2|1:0|10:1624061704|8:username|8:T2theVBK|a0f0758408aeaaa5285daef01f4210d6e2abefd29441dbb34877260249c1f58a; _ga_K76PSKSSGX=GS1.1.1630311353.1.1.1630311429.0; _ga=GA1.1.345617587.1630311353
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
Cache-Control: max-age=0
TE: trailers

https://yyets.dmesg.app/api/comment 显示 403。

HTTP/2 403 Forbidden
date: Mon, 30 Aug 2021 08:17:33 GMT
content-type: text/html; charset=UTF-8
x-frame-options: SAMEORIGIN
x-xss-protection: 1; mode=block
x-content-type-options: nosniff
cf-cache-status: DYNAMIC
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=MihjmxTNIybkI1mJ%2FsDqZ30L1xlbGcRAa1ZQOpZDWXOlRQZRJqCAztRkgpsK4pd5uPDJPxLkFSwVS85uxXbQ11zdJ2chuMms3WwhXHBralzKkoNqYnjOTfuEehT6M2TxmIQ%3D"}],"group":"cf-nel","max_age":604800}
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
strict-transport-security: max-age=15552000; includeSubDomains; preload
server: cloudflare
cf-ray: 686c95585ead0ccb-LAX
content-encoding: br
alt-svc: h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400, h3=":443"; ma=86400
X-Firefox-Spdy: h2
POST /api/comment HTTP/2
Host: yyets.dmesg.app
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Firefox/91.0
Accept: application/json, text/plain, */*
Accept-Language: zh-CN
Accept-Encoding: gzip, deflate, br
Referer: https://yyets.dmesg.app/resource?id=26326
Content-Type: application/json;charset=utf-8
Content-Length: 81
Origin: https://yyets.dmesg.app
Connection: keep-alive
Cookie: username=2|1:0|10:1624061704|8:username|8:T2theVBK|a0f0758408aeaaa5285daef01f4210d6e2abefd29441dbb34877260249c1f58a; _ga_K76PSKSSGX=GS1.1.1630311353.1.1.1630311453.0; _ga=GA1.1.345617587.1630311353
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
TE: trailers

也不知道有没有什么用……谢谢!

@BennyThink
Copy link
Member

嗯,重新登录就好了。401就是表示你没登录

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants