chavyleung / chavyleung/scripts

叮咚买菜签到报错

Open
#261 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
5.5k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

iOS 14.3 NE v1.0.16-build429

Logs:

🔔 叮咚买菜 开始签到
❌ 叮咚买菜 signapp - 签到失败: SyntaxError: JSON Parse error: Unrecognized token '<'
❌ 叮咚买菜 signapp - response: {"headers":{"Transfer-Encoding":"chunked","Content-Type":"text/html; charset=utf-8","Connection":"close","Server":"nginx","Date":"Wed, 18 Nov 2020 01:47:16 GMT"},"statusCode":400,"body":"\r\n<title>400 Bad Request</title>\r\n<body bgcolor="white">\r\n

400 Bad Request

\r\n
nginx\r\n\r\n\r\n"}
❌ 叮咚买菜 browseapp - 浏览商品失败: SyntaxError: JSON Parse error: Unrecognized token '<'
❌ 叮咚买菜 browseapp - response: {"headers":{"Date":"Wed, 18 Nov 2020 01:47:16 GMT","Content-Length":"166","Content-Type":"text/html","Connection":"close","Server":"nginx"},"statusCode":400,"body":"\r\n<title>400 Bad Request</title>\r\n<body bgcolor="white">\r\n

400 Bad Request

\r\n
nginx\r\n\r\n\r\n"}
❌ 叮咚买菜 签到失败: TypeError: undefined is not an object (evaluating 'signinfo.signapp.code')

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the JavaScript implementation of the 叮咚买菜 signapp and browseapp entry points. Reproduce the requests using the reported iOS 14.3 and NE v1.0.16-build429 context, then investigate why both return an Nginx 400 HTML response instead of JSON. Done means the relevant requests no longer produce JSON parse errors and sign-in completes successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.