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.

Script now failing to fetch JWT token or download, change to website?

See original GitHub issue

Starting Nov 18, for packt-cli -gd the script has started producing:

[ERROR] - Fetching JWT token failed!
[INFO] - Start grabbing ebook...
[ERROR] - Exception occurred 'NoneType' object is not iterable

Nothing has changed with login credentials or any other config, and it was working fine prior to 11/18. Using version 1.4.3.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:19 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
mjenczmykcommented, Nov 20, 2019

I’m still not convinced that it works, and I’ve got a single shot a day (ReCaptcha solution seems to be mandatory iff user tries to claim a book he doesn’t already have) - today I got 400 response when claiming book.

{'message': 'The recaptcha solution is missing.', 'errorCode': 3000043, 'errorId': '85cbbf1e-e636-4cfb-afee-a057dc138395'}

I’ll update the code afternoon, but I won’t merge it before tomorrow.

2reactions
mjenczmykcommented, Nov 19, 2019

It seems that I’ve got a solution. Try installing script with pip install git+https://github.com/luk6xff/Packt-Publishing-Free-Learning.git@recaptcha-on-login, see if that works.

I’ll have to clean up this code further (than I’ll make a pull request), I currently solve ReCaptcha twice - I think we can do this only once.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to handle file downloads with JWT based authentication?
Here's a way to download it on the client using the download attribute, the fetch API, and URL.createObjectURL. You would fetch the file ......
Read more >
How to get an access token with JWT Grant
Demonstrates how to get an access token using JSON Web Token (JWT) Grant authentication.
Read more >
The Ultimate Guide to handling JWTs on frontend clients ...
The idea is to get the token from the variable we set, and if it's there, we pass it to our GraphQL client....
Read more >
JSON Web Tokens (JWT) Generator? - ServiceNow Community
What is the best way to generate a JSON Web Token (JWT) in ServiceNow? There are heaps of implementations in different languages out...
Read more >
JWT: The Complete Guide to JSON Web Tokens
A Step-by-Step Guide for learning JSON Web Tokens, including signatures, single page web application User Authentication and Session ...
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