Skip to content
This repository has been archived by the owner on Sep 17, 2018. It is now read-only.

asciinema2gif always results in Error 404 #51

Open
garyns opened this issue Jun 21, 2017 · 3 comments
Open

asciinema2gif always results in Error 404 #51

garyns opened this issue Jun 21, 2017 · 3 comments

Comments

@garyns
Copy link

garyns commented Jun 21, 2017

I just cannot get it to work.

$ asciinema2gif 125790
ERROR: https://asciinema.org/api/asciicasts/125790 returns 404

Thanks.

@vitorgalvao
Copy link
Contributor

vitorgalvao commented Jun 21, 2017

Try to open that link in the browser; it’s indeed a 404. You cannot convert a page that does not exist. Looks like the asciinema website changed something.

@DudeWhoCode
Copy link

I think they removed /api/asciicasts, even the sample url given in README results in 404

@aaronjwood
Copy link

aaronjwood commented Aug 28, 2017

I haven't really dug into this code much but here's a start at getting it partially working. Edit the asciinema2gif script and take out

# Show warning if a URL not containing '/api/asciicasts/' is given
if [[ $asciinema_url != *'/api/asciicasts/'* ]]; then
  echo -e "\n$(tput setaf 1)Wrong URL format. See https://github.com/tav/asciinema2gif#url-format.$(tput sgr0)\n"
  exit 1
fi

then run it like asciinema2gif https://asciinema.org/a/111474. You'll see it prepare

>> Dimensions: 1542.9375x896
>> Preparing window ...

and get stuck here.

The code that triggers the playback does still work. If you go to any public cast and run https://github.com/tav/asciinema2gif/blob/master/render.js#L156-L160 in the console you'll see it start playing. I'm guessing there's not a whole lot left to get it all working again...

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

No branches or pull requests

4 participants