An invalid URI problem while rendering
See original GitHub issueI received such problem while rendering, that the program keeps trying to download one gif file but got an “invalid URI” error, so it stays at the download status :
⠋ Download media file unnamed-348904-0.gif2019-01-17T22:39:15.528Z [error]: ERROR: Invalid URI "https:///%3Ca%20href="
STACK: Error: Invalid URI "https:///%3Ca%20href="
at Request.init (/usr/local/lib/node_modules/udacimak/node_modules/request/request.js:273:31)
at new Request (/usr/local/lib/node_modules/udacimak/node_modules/request/request.js:127:8)
at request (/usr/local/lib/node_modules/udacimak/node_modules/request/index.js:53:10)
at Promise (/usr/local/lib/node_modules/udacimak/lib/commands/utils/downloadImage.js:84:56)
at new Promise (<anonymous>)
at downloadImage (/usr/local/lib/node_modules/udacimak/lib/commands/utils/downloadImage.js:36:10)
at downloadMediaInHtml (/usr/local/lib/node_modules/udacimak/lib/commands/utils/downloadMediaInHtml.js:77:53)
at createHtmlText (/usr/local/lib/node_modules/udacimak/lib/commands/render/functions/utils/createHtmlText.js:19:47)
at createHtmlTextAtom (/usr/local/lib/node_modules/udacimak/lib/commands/render/functions/atoms/createHtmlTextAtom.js:23:48)
at writeHtmlConcept (/usr/local/lib/node_modules/udacimak/lib/commands/render/functions/writeHtmlConcept.js:51:53)
⠴ Download media file unnamed-348904-0.gif
⠙ Download media file unnamed-348904-0.gif
⠸ Download media file unnamed-348904-0.gif
⠸ Download media file unnamed-348904-0.gif
I am using macOS and trying to download my materials which are in Chinese. Other contents before were well downloaded but it stops at this gif file and keeps trying.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:5 (3 by maintainers)
Top Results From Across the Web
"Invalid URI: The Uri string is too long" error when you render ...
Fixes an issue in which an "Invalid URI: The Uri string is too long" error message is received when you render an SSRS...
Read more >The format of the URI could not be determined" using .Net ...
Getting error as soon as app starts "UriFormatException: Invalid URI: The format of the URI could not be determined" using .Net core 3.1...
Read more >Invalid URI: There is an invalid sequence in the string. Error!!
Hi guys, I just moved a project from my pc to a server production (to an. ISP). on my pc it all works...
Read more >SSRS 2012 Error: Invalid URI: The Uri string is too long
An error occurred during rendering of the report. Invalid URI: The Uri string is too long.
Read more >Error when trying to render field 'source' as uri - Drupal
I get an error when adding a new CSV file for import. In the error log is show: InvalidArgumentException: The URI ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks @AlainOUYANG
So the issue comes from this JSON entry:
The
<img>
intext
key contains URL with space characters, causing the markdown parser and image downloader to fail. I’ll need to debug and update the CLI to be able to handle that. It’ll take some time because my markdown parser has been too hacky due to inconsistency in Udacity’s json data.For now, you can temporary fix it on your end by changing the
text
key to this:or this:
This will be the result for this atom (in
15. 多类别分类与Softmax 函数.html
)Thanks for reporting the bug!
Yeah, it works! Thanks for your reply! I really appreciate that and will recommend this awesome tool to my Chinese classmates cos we are informed yesterday that the term has changed. Btw, the Chinese Udacity Team announced that they will provide a tool for downloading the course “on one click”, but didn’t mention whether it will be only the videos or all other materials as well.