question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

  • version: 1.21
  • node version: v14.14.0
  • npm (or yarn) version: 6.14.8

Do you want to request a feature or report a bug?: Bug

What is the current behavior?: Currently authenticating to Pixiv’s API is throwing a 403 due to a Cloudflare ratelimit page requesting me to complete a captcha to continue

What is the expected behavior?: Authentication should succeed.

Suggested solution: It appears the Pixiv.py team are working through the same issue here: https://github.com/upbit/pixivpy/issues/140

I personally edited my local dependency for testing and simply adding a ‘User-Agent’ header with the following value seems to have fixed the issue: PixivAndroidApp/5.0.115 (Android 6.0; PixivBot)

Perhaps adding an option to specify a User-Agent header would allow us to easily bypass this issue for the time being.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:2
  • Comments:13

github_iconTop GitHub Comments

2reactions
cyperdarkcommented, Oct 17, 2020

can i ask you to try something? replace code in your index.js (un module/dist) to this https://github.com/akameco/pixiv-app-api/blob/e84bb2513c3c0fffc4875ac17a0b15c22f90133c/src/index.ts and try again it’s helped me

0reactions
UiharuKazari2008commented, Feb 12, 2021

Nevermind i migrated to pixiv-api-client and just implemented a token refresh and notification system

Read more comments on GitHub >

github_iconTop Results From Across the Web

Forbidden (403), Unauthorized (401), or What Else? - Auth0
403 Forbidden is the status code to return when a client has valid credentials but not enough privileges to perform an action on...
Read more >
HTTP Error 403 Forbidden: What It Means and How to Fix It
The 403 (Forbidden) status code indicates that the server understood the request but refuses to authorize it...If authentication credentials ...
Read more >
403 Forbidden vs 401 Unauthorized HTTP responses
The 403 (Forbidden) status code indicates that the server understood the request but refuses to authorize it. A server that wishes to make ......
Read more >
403 Forbidden - HTTP - MDN Web Docs - Mozilla
The HTTP 403 Forbidden response status code indicates that the server understands the request but refuses to authorize it.
Read more >
How Do I Fix 403 Authorization Error? - Pearl Lemon Web
The status code 403 (Forbidden) indicates that the server understands the request but refuses to allow it. If the server receives authentication ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found