Skip to content
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

overcoming UnicodeTable.txt download #19

Open
mcharytoniuk opened this issue Jun 24, 2015 · 8 comments
Open

overcoming UnicodeTable.txt download #19

mcharytoniuk opened this issue Jun 24, 2015 · 8 comments

Comments

@mcharytoniuk
Copy link

mcharytoniuk commented Jun 24, 2015

I am not the package maintainer but I'll leave this info here because it may be useful:

The other way to overcome UnicodeTable.txt download problems under corporate networks, weird proxies, etc is to download everyting manually and distribute "unicode" under "bundledDependencies" in package.json:

{
  "bundledDependencies": [
    "unicode"
  ]
}

Then just place unicode package with downloaded UnicodeTable.txt and generated category dir under your project's node_modules and keep it versioned (actually package.json file and category directory is enough for unicode to work).

I hope it helps someone. I think it can be also mentioned in a README.

@ltanme
Copy link

ltanme commented Mar 10, 2016

try to read file /usr/share/unicode/UnicodeData.txt …
/usr/share/unicode/UnicodeData.txt not found.
try to read file /usr/share/unicode-data/UnicodeData.txt …
/usr/share/unicode-data/UnicodeData.txt not found.
try to read file UnicodeData.txt …
UnicodeData.txt not found.
try to download …
GET unicode.org:80/Public/UNIDATA/UnicodeData.txt
request timed out.

mac pro os x node install.js not work

@sjanecki
Copy link

sjanecki commented Aug 4, 2016

same thing again
could you do something with this?

curl -vvv -s -i 'http://unicode.org:80/Public/UNIDATA/UnicodeData.txt'
* About to connect() to unicode.org port 80 (#0)
*   Trying 216.97.88.9... Connection timed out
* couldn't connect to host
* Closing connection #0

@leinonen
Copy link

Why not bundle the file with the lib? This is really annoying..

@mrj04
Copy link

mrj04 commented Aug 29, 2016

update the install.js by replacing this code :

unicodedatafile = {
host: "unicode.org",

By this code :
unicodedatafile = {
host: "http://unicode.org",

@xusai2014
Copy link

Finally, how to solve the questions on MacOs?

@guyellis
Copy link

I've started hitting this timeout issue a lot on a Travis build:

> [email protected] postinstall /home/travis/build/guyellis/plant/node_modules/unicode
> node install.js
try to read file /usr/share/unicode/UnicodeData.txt …
/usr/share/unicode/UnicodeData.txt not found.
try to read file /usr/share/unicode-data/UnicodeData.txt …
/usr/share/unicode-data/UnicodeData.txt not found.
try to read file UnicodeData.txt …
UnicodeData.txt not found.
try to download …
GET unicode.org:80/Public/UNIDATA/UnicodeData.txt
request timed out.

Any ideas why Travis would be timing out?

@mwj8410
Copy link

mwj8410 commented Mar 27, 2017

I doubt that it is limited to your Travis environment. When it happens, try getting the file in your web browser. The file is simply not reliably available at that location.

You have two option:

  1. remove the dependency (considering how stale this lib is, I recommend that)
  2. Implement some hack to bypass the flaw

@srl295
Copy link

srl295 commented Apr 4, 2017

^ cause above is your host being blacklisted for excess downloads, see #16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants