-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Videos: ArgumentError: string contains null byte #69
Comments
Seems to be working fine with |
Unfortunately I'm still having the same problem:
|
I started looking into this, and I'm getting an SSL dependency error (I've also tried it with
Note: I can use OpenSLL and it's already required in irb where I'm running link_thumbnailer |
Yeah, you are not the only one with this issue #67. I should really dig dipper into that SSL issue. Thanks for looking at it |
Sorry, didn't see that issue open. I'll try to help with SSL problem during this week. |
gottfrois, do you need any additional feedback regarding the problem with youtube videos? Just asking because the issue still has the "needs feedback" label. |
no thanks @maia I should be able to find what's going on :) |
I am getting the following error.
|
@aryalsan you can use my PR as a workaround while waiting for a fix in video_info gem or maybe even Kernel.open method. |
Any updates coming recently! |
I'm waiting for video_info gem to release their master into a new version :) |
We are having the same problems and not of the links to you tube videos are able to generate images. The weird part is that your thumbnailer demo works fine for your tube, but it is no longer working for us. |
The demo is using this version of LinkThumbnailer https://github.com/gottfrois/link_thumbnailer_api/blob/master/Gemfile.lock#L59 |
@gottfrois Thanks, is it running on heroku on a Cedar 14 standard build as well? Just wanted to check as to know if it is the heroku base version of imagemagick being used as well. |
yes it's a standard heroku, nothing fancy. However there are no imagemagick dependency. Where do you see it? |
Still waiting for the updates! Any news yet!!! |
@aryalsan this won't be done until this issue is solved so you are welcome to help. |
Newbie here, with the same error as above. Is there a simple way to make this to work? I see the demo version is working and it's using v3.0.2? Should I downgrade? @0mega, you mentioned a workaround, can you provide more details about this? I changed the dependency to 'video_info', '~> 2.5', but it's still not solving my problem? |
Still testing, but adding this to the Gemfile works so far for me.
Found here: thibaudgg/video_info#100 |
Hi @idjuradj, you can use my workaround 0mega@592309c, or just rebuild link_thumbnailer locally, pointing to video_info gem master as @aaronsakowski mentioned. |
I'll create a branch that have gemfile points to video_info master branch for you guys |
Use this branch guys, until they release master in a new video_info version https://github.com/gottfrois/link_thumbnailer/tree/tmp-video-info-fix |
Cool, it works for the Youtube video but for Vimeo video, its generates unexpected network error while fetching information about the video. I think its the problem of the Video_info gem |
@aryalsan I didn't look into it but it's probably because of the API token that is required to fetch information about the video from vimeo. In version 2.6 of video_info, there will be a vimeo scraper so you won't need an API key. |
When using the tmp-video-info-fix branch (and adding gem 'video_info', github: 'thibaudgg/video_info' to Gemfile) parsing youtube videos works. Parsing a vimeo.com video generates a "VideoInfo::HttpError: unexpected network error while fetching information about the video" and a "OpenURI::HTTPError: 401 Authorization Required". I assume we need to wait for video_info 2.6, @0mega do you have a time frame? Thanks! |
@maia There's just one thing left before the 2.6 release. Should be done within 1-2 weeks. |
👍 |
1 similar comment
👍 |
@vheuken is there any possible dates of the release of Video info gem 2.6 |
@aryalsan Sorry for the delay. I've been busier than I've expected so I haven't been able to work on it. I'll make some time for it tonight and I should be able to finish it up. |
@vheuken, cool, and we are eagerly waiting for the 2.6 update release. And also would you please check for the Facebook videos, i think its generating the wrong thumbnail URL. |
Just implemented most of the last task before 2.6 release. Here's what's left: thibaudgg/video_info#95 (comment) Should be done within a few days.
video_info doesn't handle Facebook videos |
What's up on this @vheuken ? And happy new year man :) |
Sorry, I still have to finish the Vimeo Playlist scraper. If you want, you can try using the branch with the scraper implemented in your project.
|
Can you guys try the master branch now? Vimeo scraper should be in and we'll push a new version shortly. Sorry for the wait! |
video_info 2.6 has been released with the Vimeo scraper. Hopefully this resolves your issue! |
👍 I will try that when I have a moment :) Thanks for the notice |
Thanks for the release.
|
The issue is fixed with video_info |
Released in |
Please keep in mind that, due to the nature of scrapers, future breakage is a very real possibility. If you ever have an issue I'll be more than happy to release a patch fix. |
Of course, thanks for the reminder. What are our options to limit them? Using each provider APIs directly I imagine? |
I think you should point out to users that they are able to set a Vimeo API key as follows:
(Of course, you are free to make your own interface around that). |
Right, I'll probably include that in the gem config |
Just a heads up, we're getting ready for a 2.7 release in the coming weeks where we significantly reduced our gem dependencies, so it will probably be a good idea to update to that when we release that. I'll try to ping you or send over a PR when it's ready. I'm sure your users will appreciate having to pull in a few fewer gems. |
@vheuken sounds great :) |
LinkThumbnailer throws "ArgumentError: string contains null byte“ where querying the same url via VideoInfo causes no problems. See here:
The text was updated successfully, but these errors were encountered: