amazon-kindle-bulk-downloader: Amazon Fire Tablets get the error: Did not find a KINDLE device

Here’s my code. Running on Linux 24.04 LTS

Any help appreciated!

`bun run start --baseUrl https://www.amazon.com $ bun run src/index.ts --baseUrl https://www.amazon.com Getting credentials Got credentials Filling username Filling password Filling OTP Got auth 107 | } 108 | const kindleDevice = data.GetDevicesOverview.deviceList.find( 109 | (d) => d.deviceFamily === “KINDLE” 110 | ); 111 | if (!kindleDevice) { 112 | throw new Error(“Did not find a KINDLE device”); ^ error: Did not find a KINDLE device at <anonymous> (/home/tarre-vizsla/Downloads/amazon-kindle-bulk-downloader/src/index.ts:112:11)

Bun v1.2.2 (Linux x64) error: script “start” exited with code 1 `

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 16 (10 by maintainers)

Most upvoted comments

confirmed as well!!! thanks @akaustav and @treetrum

Works as advertised…

@akaustav Awesome, yep — open a PR 🙂 Note that I just merged in some changes related to that code, so you might get a merge conflict.

@treetrum - Yep. It works. I can try opening a PR right now if you’d like.

@treetrum - I see the deviceFamily for Fire Tablets is FIRE_TABLET. Let me try adding that to the checks around the following lines and verify if the download is successful: https://github.com/treetrum/amazon-kindle-bulk-downloader/blob/434efe468fbbaf2928bc1bb7553bdd5f68319c4f/src/index.ts#L108-L113

@treetrum - I have a Fire tablet with me and I am running into this same issue. I might be able to debug your code.