Try 30 days of free premium.

Potential issue with maintenance update???

DickKluis wrote 6 days ago: 1

I use the below API and normally get a JSON response back but now I get JSON decoding errors (using Python)

Below are the API and response back (1st couple of episodes only).  It seems that there is now a NULL text string inserted in the response.

API used: https://api.tvmaze.com/v1/user/episodes
b'null[{"episode_id":40978,"type":0,"marked_at":0},{"episode_id":54913,"type":0,"marked_at":0},{"episode_id":44377,"type":0,"marked_at":0},

 

DickKluis wrote 6 days ago: 1

I changed my python script to detect the inserted 'null' and convert the response to json from there, so I have a work-around at this point.   All other APIs that I use still seem to work.

DickKluis wrote 6 days ago: 1

For anybody interested, here is the code change:

Commented out the original 1 line code and replaced with the 3 lines above it

epis = str(episodes.content, encoding='utf-8').replace('null', '')
eps_updated = epis.replace('[', '').replace(']', '')
eps_updated = ast.literal_eval(eps_updated)
# eps_updated = episodes.json()

DickKluis wrote 6 days ago: 1

Yes, it is fixed.   Thx

Try 30 days of free premium.