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

TypeError: t is undefined & SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data #50

Open
appel opened this issue Jul 31, 2023 · 6 comments

Comments

@appel
Copy link

appel commented Jul 31, 2023

Hey there, thank you for this extension! I'm running into a few errors when I try to download an audio book. The errors thrown are:

TypeError: t is undefined

image

and

SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data

The first error happens every time with this book. The second one is more intermittently.

It appears to be happening with a specific book (which I was only trying to download to test if and how the extension works). Unfortunately I could not find a more specific error in the console. I tried downloading a different book, which worked fine.

@bookbonobo
Copy link
Owner

This seems to happen sometimes when Libby doesn't have valid login state for all the servers it's talking to. Can you try logging out and back in and re-downloading? That has fixed it for me.

@appel
Copy link
Author

appel commented Jul 31, 2023

Thanks for the quick response! It was a fresh login, but I cleared my cookies and logged in again, just in case. Did not fix the error, unfortunately. No big deal for me personally as this was just a test book, but I figured I'd document it here in case it's helpful.

@Dunamis8
Copy link

Dunamis8 commented Aug 10, 2023

I just started having the same issue. I removed the library card in question and added it back. Still same error.
SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data

@SoAboutThat
Copy link

SoAboutThat commented Aug 30, 2023

Same problem here.

"SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data"

Edit: I have tried with three different books and it happens with all of them.

@RNdude
Copy link

RNdude commented Oct 5, 2023

I had the same error: "SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data | Failed". This error persisted among every title I attempted to run the extension on today. It had been working very well before, with just one recurring error associated with a single title a while back that I was never able to get past, despite it working on other titles. I don't recall if the error on that one book was the same as this one.

But today, I was getting the error above on every book I tried. I rebooted the computer and got the same result. I then removed all my library cards from the web app (which LIbby documentation states is the closest thing to logging out) and also reset cookies for Libby. I re-added the library card and tried again and proceeded well past the error above, but 51 lines along in the task list I was getting "Loading State | Failed". I tried again with the same title, and got the same result. Then I tried a different book, and the extension made it through to the end. I then went back to the previous title ("Foreign Influence" by Brad Thor) and got the same error on that title. A couple subsequent titles worked, though, so I think this is just a problem with this one other title.

I hope this information helps others in either getting past the problem, or maybe even in leading to extension updates that can get past these problems on its own.

Thanks for this great extension!

@LabGirl14
Copy link

LabGirl14 commented Nov 23, 2023

Hi, just reporting that I've had a similar issue with one specific title ("Lioness Rampant" by Tamora Pierce). Gets past part01 then gives a 'Loading State Failed' result every time for this one specific book. Any other books with issues have been resolved by previously mentioned tips and tricks.

Overall loving the extension! Thanks
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants