nekoshita / obsidian-auto-card-link

MIT License
192 stars 14 forks source link

[Bug] Youtube links not fetching information #72

Open albertoloscerritos opened 1 week ago

albertoloscerritos commented 1 week ago

Hi. Thanks for the awesome plugin. Lately trying to use this plugin for YouTube link have become very unstable. Many times, it does not fetch the information correctly and I am left with no image and no title. It may work once, and then it fails using the exact same link:

Edit (last 2 use the same link) image Source image

I am using obsidian sandbox 1.7.4 and windows 11 Thanks. Have a great day

ormai commented 1 week ago

I tried both with https://www.youtube.com/watch?v=wHPNlgCMgVY and with https://youtu.be/wHPNlgCMgVY several times and there is no problem.

I am using Obsidian 1.6.7, but I don't see how that my be the reason for the issue.

albertoloscerritos commented 1 week ago

Hi, thanks for your answer. I tried to replicate it but now I can't 🙃 I don't know if maybe it was an issue with the youtube API or with my pc, because curiously I was having the exact same issue with the https://github.com/zolrath/obsidian-auto-link-title plugin, where it would only show the title as - Youtube. And now I also can't replicate that issue. I was having both of these issues all morning. But in the GitHub repo for the Auto link title, users have reported this "bug" since august. I am not sure, but maybe they are related issues. Anyway, thanks for your answer, hopefully this doesn't happen in the future.

albertoloscerritos commented 1 week ago

Update: It keeps happening from time to time. In both obsidian sandbox and my regular vault. Both in v1.7.4 image image

The console doesn't seem to show any error: image

Also, I use the following plugin called obsidian thumbnails why has a similiar functionality i.e. fetch info from youtube videos, and I don't seem to have any problems with the same link as in the previous images:

image

One difference (I am not sure if it is relevant) is that the other plugin allows to input my youtube API key.

Also, the issue of info not being fetched only occurs with youtube videos. Any other webpages don't seem to have any issues.

ormai commented 1 week ago

Try to audit the network traffic from the dev tools' Network tab. Some requests are failing, you should look for 4xx status codes.

albertoloscerritos commented 1 week ago

Hi, thanks for the reply. As soon as the plugin starts to have problems fetching in the info again, I will audit the network traffic and come back with the results 👍