ocdownloader icon indicating copy to clipboard operation
ocdownloader copied to clipboard

Invalid URL. Please check the address of the file ...

Open kille250 opened this issue 7 years ago • 20 comments

On some urls, i get:

Invalid URL. Please check the address of the file ...

I don't know why.

kille250 avatar Sep 05 '17 20:09 kille250

Can you sent some example?` Maybe it is the preg_match for checking if the submitted string is an URL for real. Maybe it has something to do with encoding or multibyte.

Do the URLs work if you urlencode the request part?

Nibbels avatar Sep 05 '17 20:09 Nibbels

sure, i think he can't handle the %.

https://3.bp.blogspot.com/JwcR9qhTJzsh8dy5R5DbMTWqGVG6XXWFNl_Awq3L10i02obM4BYFbld4GlKBGUzmvvrzH3nu=m37?s=ZAnbzYVWQutD686J0w==&type=video/mp4&title=[9anime.to]%20Bakemonogatari%20-%2007%20-%201080p

kille250 avatar Sep 05 '17 20:09 kille250

I download it without any troubles through aria2.

Loki3000 avatar Sep 05 '17 21:09 Loki3000

i use aria2 too, i get this error everytime

kille250 avatar Sep 05 '17 21:09 kille250

I use ubuntu 14.04

kille250 avatar Sep 05 '17 21:09 kille250

I was able to add it, but it sais "Waiting" at 0 Byte/s using ARIA2

What comes clear: It uses type=video/mp4 -> / as Folder so the file is named mp4blabla... Some Servers like such as "type%3Dvideo%2Fmp4"

But after all testing and trying out HTTP ... still waiting.

screenshot_2 Edit: I removed them and had GID NOT FOUND screenshot_3 And removed them again, then they vanished.

Nibbels avatar Sep 05 '17 21:09 Nibbels

You link contains unquoted square brackets. As i see, it's a reason:

//working link
https://3.bp.blogspot.com/JwcR9qhTJzsh8dy5R5DbMTWqGVG6XXWFNl_Awq3L10i02obM4BYFbld4GlKBGUzmvvrzH3nu=m37?s=ZAnbzYVWQutD686J0w==&type=video/mp4&title=%5B9anime.to%5D%20Bakemonogatari%20-%2007%20-%201080p
//not working
https://3.bp.blogspot.com/JwcR9qhTJzsh8dy5R5DbMTWqGVG6XXWFNl_Awq3L10i02obM4BYFbld4GlKBGUzmvvrzH3nu=m37?s=ZAnbzYVWQutD686J0w==&type=video/mp4&title=[9anime.to]%20Bakemonogatari%20-%2007%20-%201080p

Loki3000 avatar Sep 05 '17 21:09 Loki3000

yep, the brackets are fault.

kille250 avatar Sep 05 '17 21:09 kille250

Should ocDownloader do the escaping of such URLs? I think it would be the right way instead of allowing such downloads and then letting them stall.

e-alfred avatar Sep 05 '17 22:09 e-alfred

Btw, could you send me an torrent, to test it. I can't also download any torrents because i get Returned GID is null ! Is Aria2c running as a daemon ?

kille250 avatar Sep 05 '17 22:09 kille250

Does Aria2c work at all? Is it running? Which options did you use to start it on the CLI? What does the log of Aria2c say?

e-alfred avatar Sep 05 '17 23:09 e-alfred

sudo aria2c --enable-rpc --rpc-allow-origin-all -c -D --log=/var/log/aria2.log --check-certificate=false --save-session=/var/www/aria2c.sess --save-session-interval=2 --continue=true --input-file=/var/www/aria2c.sess --rpc-save-upload-metadata=true --force-save=true --log-level=warn

I used this, will look for the log.

kille250 avatar Sep 05 '17 23:09 kille250

nothing in the log file. Strange..

kille250 avatar Sep 05 '17 23:09 kille250

It was because the excryption, nvm.

kille250 avatar Sep 06 '17 10:09 kille250

btw, it can't access the domain https://r2---sn-4g5e6nlk.c.docs.google.com

kille250 avatar Sep 12 '17 17:09 kille250

screenshot_1

Nibbels avatar Sep 13 '17 10:09 Nibbels

@Nibbels You don't understand. It should download than an html page with this contant. I only get, that the page is invalid.

kille250 avatar Sep 13 '17 11:09 kille250

opera_2017-09-13_13-37-34

kille250 avatar Sep 13 '17 11:09 kille250

Ok, you might be right. I saw that there is 404 sent (with header 404 instead of 200) and thatwhy I thought that aria or curl might give back the error instead of downloading the errorpages html text.

I didnt look at the parser / URL checker... (Still I didn't check it further because rightnow I cannot.)

Nibbels avatar Sep 13 '17 14:09 Nibbels

any fix for it?

p6002 avatar Nov 18 '20 19:11 p6002