mattpopovich / mattpopovich.com

Source code for https://mattpopovich.com
https://mattpopovich.com
MIT License
0 stars 0 forks source link

Future exception can occur occasionally in make-new-post.py? #18

Open mattpopovich opened 2 years ago

mattpopovich commented 2 years ago

Example error that sometimes happens:

user@Mac ~/jekyll-theme-chirpy/tools % python3 make-new-post.py -y 'https://www.youtube.com/watch?v=L2Pp3c7fN3E'
Received YouTube video link: https://www.youtube.com/watch?v=L2Pp3c7fN3E
Identified the YouTube video ID as: L2Pp3c7fN3E
Future exception was never retrieved
future: <Future finished exception=NetworkError('Protocol error Target.detachFromTarget: Target closed.')>
pyppeteer.errors.NetworkError: Protocol error Target.detachFromTarget: Target closed.
Created folder: ../assets/img/posts/2022-01-03-16-inch-macbook-air--2022-qa
Creating text post: ../_posts/2022-01-03-16-inch-macbook-air--2022-qa.md
Finished successfully!
Future exception was never retrieved
future: <Future finished exception=NetworkError('Protocol error (Target.sendMessageToTarget): No session with given id')>
pyppeteer.errors.NetworkError: Protocol error (Target.sendMessageToTarget): No session with given id