LibriVox API Discussion Thread

Comments about LibriVox? Suggestions to improve things? News?
williamjones
Posts: 1407
Joined: April 26th, 2016, 7:47 pm

Post by williamjones » April 5th, 2021, 6:22 pm

QUASI-DISASTER: THE API SEEMS TO BE SHOT TO HELL!!

Most API calls which I was using as recently as YESTERDAY without encountering errors, are now failing:

Example 1: Detecting what the End Of Book Data will look like:
https://librivox.org/api/feed/audiobooks/?offset=15500&limit=1000&fields={id}
Example 2: simple call
https://librivox.org/api/feed/audiobooks/?&offset=49

Both of these calls and a significant number of others yield:
=============================
A PHP Error was encountered

Severity: Notice

Message: Undefined index: url_other

Filename: libraries/Librivox_API.php

Line Number: 142
=============================
A PHP Error was encountered

Severity: Notice

Message: Undefined index: url_other

Filename: libraries/Librivox_API.php

Line Number: 142
=============================
A PHP Error was encountered
. . . . . . . . . . . . . . . . . . . . . .

I don't mean to brag, but I finished my 14-day diet in 3 hours and 12 minutes.

annise
LibriVox Admin Team
Posts: 34227
Joined: April 3rd, 2008, 3:55 am
Location: Melbourne,Australia

Post by annise » April 5th, 2021, 7:29 pm

Just before we panic - were you trying during the "shut down" when only the forums were running ? the global announcement is taken down now, but it started about 12:33 hours from the date on this post and ran about 3 hours

Anne

williamjones
Posts: 1407
Joined: April 26th, 2016, 7:47 pm

Post by williamjones » April 5th, 2021, 7:32 pm

Nope, I tried to do some testing about 30 minutes before I posted my Quasi-Disaster message.
. . . . . . . . . . . . . . . . . . . . . .

I don't mean to brag, but I finished my 14-day diet in 3 hours and 12 minutes.

TriciaG
LibriVox Admin Team
Posts: 50234
Joined: June 15th, 2008, 10:30 pm
Location: Toronto, ON (but Minnesotan to age 32)

Post by TriciaG » April 6th, 2021, 5:40 am

This is related to the updates yesterday. I'll report the error.

Since both guys who know anything about it have full time jobs, it won't be fixed until this evening at the earliest. :)
Bulwer-Lytton novel: The Caxtons
Boring works 30-70 minutes long: Insomnia Collection 5

williamjones
Posts: 1407
Joined: April 26th, 2016, 7:47 pm

Post by williamjones » April 6th, 2021, 6:05 am

TriciaG wrote:
April 6th, 2021, 5:40 am
This is related to the updates yesterday. I'll report the error.

Since both guys who know anything about it have full time jobs, it won't be fixed until this evening at the earliest. :)
Thanks for the update, Tricia. I'm in contact with Anne, too.

This "upgrade" seems like a downgrade for the API.

Everything else seems to be fine, tho.
. . . . . . . . . . . . . . . . . . . . . .

I don't mean to brag, but I finished my 14-day diet in 3 hours and 12 minutes.

TriciaG
LibriVox Admin Team
Posts: 50234
Joined: June 15th, 2008, 10:30 pm
Location: Toronto, ON (but Minnesotan to age 32)

Post by TriciaG » April 6th, 2021, 6:09 am

This "upgrade" seems like a downgrade for the API.
It's just a bug that will get squished. The newer software version has more constraints, so it generates more errors. We squished two bugs already (one during the outage, which was why it took longer than scheduled, and one shortly after it went live dealing with authors in collections) - bugs that if we had had a more robust or formal testing than we did, we may have caught beforehand. This was simply another one that snuck through. :)
Bulwer-Lytton novel: The Caxtons
Boring works 30-70 minutes long: Insomnia Collection 5

williamjones
Posts: 1407
Joined: April 26th, 2016, 7:47 pm

Post by williamjones » April 6th, 2021, 7:26 am

TriciaG wrote:
April 6th, 2021, 6:09 am
This "upgrade" seems like a downgrade for the API.
It's just a bug that will get squished. The newer software version has more constraints, so it generates more errors. We squished two bugs already (one during the outage, which was why it took longer than scheduled, and one shortly after it went live dealing with authors in collections) - bugs that if we had had a more robust or formal testing than we did, we may have caught beforehand. This was simply another one that snuck through. :)
Sadly, I have to live with the reality that the API doesn't bother a lot of people, nor, as Anne would say over and over: it's not our prime directive.

Alas, this outage means I'll have to go back to a steady regimen of recording and PLing.

If you happen to think of it, when the fixes have been made, drop me a line, please.
. . . . . . . . . . . . . . . . . . . . . .

I don't mean to brag, but I finished my 14-day diet in 3 hours and 12 minutes.

CSCO
Posts: 245
Joined: April 6th, 2010, 10:48 am
Location: Toyokawa, Japan

Post by CSCO » April 6th, 2021, 11:29 am

I'm not CodeMaster, but (ex-)CSCO. I've been a non-tech worker for 12 years. So I would say to myself...
Has_Wiki_Page_But_No_LV_url.xlsx - list of books which have a wikipedia page but no LV_URL page (157 books)
A good PHP script retrieved a bad data, an inconsistent URL record, from a good DB?

If someone didn't define the error's severity as Notice in the script, the error's real severity is Notice as it was output. (Notice is a notice. The error is not a severe one. Although PHP built a catastrophic page, server down couldn't be occurred. Charlie Brown sighs. The server sighed at that moment: It's not a handsome page. *SIGH*)

Oh, I must go to bed.
Last edited by CSCO on April 6th, 2021, 11:41 am, edited 1 time in total.
!!!!!!.!!!!!!.!!!!.!!!!!!!!!..!!!.!!!!!!!!!!!...!!!!!!!!!.!!!!!!.!!!!.!!!!!!.!!!!
No way. He stole away a pretty thing, you know.
That's your heart.
!!!!.!!!!!!.!!!!.!!!!!!!!!..!!!.!!!!!!!!!!!...!!!!!.!!!!!!.!!!!!!!!.!!!!!!.!!!!!!

TriciaG
LibriVox Admin Team
Posts: 50234
Joined: June 15th, 2008, 10:30 pm
Location: Toronto, ON (but Minnesotan to age 32)

Post by TriciaG » April 6th, 2021, 11:36 am

The error is severe enough that no data gets through. :)
Bulwer-Lytton novel: The Caxtons
Boring works 30-70 minutes long: Insomnia Collection 5

TriciaG
LibriVox Admin Team
Posts: 50234
Joined: June 15th, 2008, 10:30 pm
Location: Toronto, ON (but Minnesotan to age 32)

Post by TriciaG » April 6th, 2021, 5:17 pm

williamjones wrote:
April 5th, 2021, 6:22 pm
Most API calls which I was using as recently as YESTERDAY without encountering errors, are now failing:

Example 1: Detecting what the End Of Book Data will look like:
https://librivox.org/api/feed/audiobooks/?offset=15500&limit=1000&fields={id}
Example 2: simple call
https://librivox.org/api/feed/audiobooks/?&offset=49

Both of these calls and a significant number of others yield:
=============================
A PHP Error was encountered

Severity: Notice

Message: Undefined index: url_other

Filename: libraries/Librivox_API.php

Line Number: 142
=============================
A PHP Error was encountered

Severity: Notice

Message: Undefined index: url_other

Filename: libraries/Librivox_API.php

Line Number: 142
=============================
A PHP Error was encountered
I think this is fixed.
Bulwer-Lytton novel: The Caxtons
Boring works 30-70 minutes long: Insomnia Collection 5

williamjones
Posts: 1407
Joined: April 26th, 2016, 7:47 pm

Post by williamjones » April 6th, 2021, 5:41 pm

TriciaG wrote:
April 6th, 2021, 5:17 pm

I think this is fixed.
Yaaaaay! it appears so!
Hats off to the backroom boys!
. . . . . . . . . . . . . . . . . . . . . .

I don't mean to brag, but I finished my 14-day diet in 3 hours and 12 minutes.

knotyouraveragejo
LibriVox Admin Team
Posts: 17609
Joined: November 18th, 2006, 4:37 pm

Post by knotyouraveragejo » April 6th, 2021, 6:29 pm

and girls! :wink:
Jo
My Librivox Solos
Books are the carriers of civilization. Without books, history is silent, literature dumb, science crippled, thought and speculation at a standstill. - Barbara Tuchman

williamjones
Posts: 1407
Joined: April 26th, 2016, 7:47 pm

Post by williamjones » April 6th, 2021, 7:07 pm

knotyouraveragejo wrote:
April 6th, 2021, 6:29 pm
and girls! :wink:
OH, yes! Mustn't forget them. Hell, who COULD forget them?!?!? Grace Hopper, Ada Lovelace, Adele Goldberg, Mary Lou Jepsen, etc. etc. I might add to this list a stunning blonde working with me in the sub-basement under the Louisiana State Capitol building. Barbara Something. She was so darned smart!

AND, in almost every corporation that I've worked in, there was one secretary or keypuncher or aide who could have run the whole company as well as or better than the guys in the big offices.

My recipe for World Peace: put a woman in charge of all the big countries for 10 years and Voila! No war, no strife. But, we'd have to learn to put the toilet seat down.

OK, that's enough pro-woman stuff. I mean every bit of it, too.
. . . . . . . . . . . . . . . . . . . . . .

I don't mean to brag, but I finished my 14-day diet in 3 hours and 12 minutes.

Post Reply