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

fix: Fix X-IG-WWW-Claim header in getUserInfo function #13950

Merged
merged 1 commit into from
Dec 4, 2023

Conversation

TonyRL
Copy link
Collaborator

@TonyRL TonyRL commented Dec 4, 2023

Involved Issue / 该 PR 相关 Issue

Close #

Example for the Proposed Route(s) / 路由地址示例

/instagram/2/user/stefaniejoosten

New RSS Route Checklist / 新 RSS 路由检查表

  • New Route / 新的路由
  • Documentation / 文档说明
  • Full text / 全文获取
    • Use cache / 使用缓存
  • Anti-bot or rate limit / 反爬/频率限制
    • If yes, do your code reflect this sign? / 如果有, 是否有对应的措施?
  • Date and time / 日期和时间
    • Parsed / 可以解析
    • Correct time zone / 时区正确
  • New package added / 添加了新的包
  • Puppeteer

Note / 说明

fix: Use undefined instead of null to delete the x-ig-www-claim header
cache.get() return null in redis

@github-actions github-actions bot added Route: v2 v2 route related Auto: Route Test Complete Auto route test has finished on given PR labels Dec 4, 2023
Copy link
Contributor

github-actions bot commented Dec 4, 2023

Successfully generated as following:

http://localhost:1200/instagram/2/user/stefaniejoosten - Failed ❌
HTTPError: Response code 404 (Not Found)

Route requested: /2/user/stefaniejoosten
Error message: Error: Invalid cookie
    at getUserInfo (/app/lib/v2/instagram/web-api/utils.js:59:23)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async module.exports (/app/lib/v2/instagram/web-api/index.js:42:30)
    at async /app/node_modules/.pnpm/koa-mount@4.0.0/node_modules/koa-mount/index.js:58:5
    at async /app/node_modules/.pnpm/koa-mount@4.0.0/node_modules/koa-mount/index.js:52:26
    at async /app/lib/middleware/load-on-demand.js:29:9
    at async /app/lib/middleware/cache/index.js:122:13
    at async /app/node_modules/.pnpm/koa-mount@4.0.0/node_modules/koa-mount/index.js:52:26
    at async module.exports (/app/lib/middleware/parameter.js:51:5)
    at async module.exports (/app/lib/middleware/anti-hotlink.js:99:5)
    at async module.exports (/app/lib/middleware/template.js:15:5)
    at async /app/lib/middleware/api-response-handler.js:143:9
    at async module.exports (/app/lib/middleware/api-template.js:2:5)
    at async module.exports (/app/lib/middleware/utf8.js:4:5)
    at async module.exports (/app/lib/middleware/header.js:21:5)
    at async module.exports (/app/lib/middleware/debug.js:9:5)
    at async grant (/app/lib/middleware/access-control.js:24:13)
    at async module.exports (/app/lib/middleware/onerror.js:32:9)
    at async serve (/app/node_modules/.pnpm/koa-static@5.0.0/node_modules/koa-static/index.js:53:9)
Helpful Information to provide when opening issue:
Path: /2/user/stefaniejoosten
Node version: v20.10.0
Git Hash: d84f01e

@TonyRL TonyRL merged commit 242083e into DIYgod:master Dec 4, 2023
35 checks passed
@TonyRL TonyRL deleted the fix/instagram/header branch December 4, 2023 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto: Route Test Complete Auto route test has finished on given PR Route: v2 v2 route related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant