i just create new hello_world_fibonacci
$ stack new haskellfib simple
and get next message
Downloading template "simple" to create project "haskellfib" in haskellfib/ ...
The following parameters were needed by the template but not provided: author-name
You can provide them in /home/user/.stack/config.yaml, like this:
templates:
params:
author-name: value
Or you can pass each one as parameters like this:
stack new haskellfib simple -p "author-name:value"
The following parameters were needed by the template but not provided: author-email, author-name, category, copyright, github-username
You can provide them in /home/user/.stack/config.yaml, like this:
templates:
params:
author-email: value
author-name: value
category: value
copyright: value
github-username: value
Or you can pass each one as parameters like this:
stack new haskellfib simple -p "author-email:value" -p "author-name:value" -p "category:value" -p "copyright:value" -p "github-username:value"
Looking for .cabal or package.yaml files to use to init the project.
Using cabal packages:
- haskellfib/
Selecting the best among 16 snapshots...
Downloading lts-14.1 build plan ...
RedownloadInvalidResponse Request {
host = "raw.githubusercontent.com"
port = 443
secure = True
requestHeaders = []
path = "/fpco/lts-haskell/master//lts-14.1.yaml"
queryString = ""
method = "GET"
proxy = Nothing
rawBody = False
redirectCount = 10
responseTimeout = ResponseTimeoutDefault
requestVersion = HTTP/1.1
}
"/home/user/.stack/build-plan/lts-14.1.yaml" (Response {responseStatus = Status {statusCode = 404, statusMessage = "Not Found"}, responseVersion = HTTP/1.1, responseHeaders = [("Content-Security-Policy","default-src 'none'; style-src 'unsafe-inline'; sandbox"),("Strict-Transport-Security","max-age=31536000"),("X-Content-Type-Options","nosniff"),("X-Frame-Options","deny"),("X-XSS-Protection","1; mode=block"),("X-GitHub-Request-Id","8D1A:6A24:D2FA6:11AF88:5D58C6D9"),("Content-Length","15"),("Accept-Ranges","bytes"),("Date","Sun, 18 Aug 2019 03:32:42 GMT"),("Via","1.1 varnish"),("Connection","keep-alive"),("X-Served-By","cache-hhn4053-HHN"),("X-Cache","MISS"),("X-Cache-Hits","0"),("X-Timer","S1566099162.021944,VS0,VE137"),("Vary","Authorization,Accept-Encoding"),("Access-Control-Allow-Origin","*"),("X-Fastly-Request-ID","ec29716cf18bc8d965b29000ecf4622037c6f27c"),("Expires","Sun, 18 Aug 2019 03:37:42 GMT"),("Source-Age","0")], responseBody = (), responseCookieJar = CJ {expose = []}, responseClose' = ResponseClose})
what means this message and what to do?
Stack version
$ stack --version
Version 1.9.3, Git revision 40cf7b37526b86d1676da82167ea8758a854953b (6211 commits) x86_64 hpack-0.31.1
Method of installation
- Official binary, downloaded from stackage.org or fpcomplete’s package repository
wget -qO- https://get.haskellstack.org/ | sh
i just create new hello_world_fibonacci
$ stack new haskellfib simple
and get next message
Downloading template "simple" to create project "haskellfib" in haskellfib/ ...
The following parameters were needed by the template but not provided: author-name
You can provide them in /home/user/.stack/config.yaml, like this:
templates:
params:
author-name: value
Or you can pass each one as parameters like this:
stack new haskellfib simple -p "author-name:value"
The following parameters were needed by the template but not provided: author-email, author-name, category, copyright, github-username
You can provide them in /home/user/.stack/config.yaml, like this:
templates:
params:
author-email: value
author-name: value
category: value
copyright: value
github-username: value
Or you can pass each one as parameters like this:
stack new haskellfib simple -p "author-email:value" -p "author-name:value" -p "category:value" -p "copyright:value" -p "github-username:value"
Looking for .cabal or package.yaml files to use to init the project.
Using cabal packages:
- haskellfib/
Selecting the best among 16 snapshots...
Downloading lts-14.1 build plan ...
RedownloadInvalidResponse Request {
host = "raw.githubusercontent.com"
port = 443
secure = True
requestHeaders = []
path = "/fpco/lts-haskell/master//lts-14.1.yaml"
queryString = ""
method = "GET"
proxy = Nothing
rawBody = False
redirectCount = 10
responseTimeout = ResponseTimeoutDefault
requestVersion = HTTP/1.1
}
"/home/user/.stack/build-plan/lts-14.1.yaml" (Response {responseStatus = Status {statusCode = 404, statusMessage = "Not Found"}, responseVersion = HTTP/1.1, responseHeaders = [("Content-Security-Policy","default-src 'none'; style-src 'unsafe-inline'; sandbox"),("Strict-Transport-Security","max-age=31536000"),("X-Content-Type-Options","nosniff"),("X-Frame-Options","deny"),("X-XSS-Protection","1; mode=block"),("X-GitHub-Request-Id","8D1A:6A24:D2FA6:11AF88:5D58C6D9"),("Content-Length","15"),("Accept-Ranges","bytes"),("Date","Sun, 18 Aug 2019 03:32:42 GMT"),("Via","1.1 varnish"),("Connection","keep-alive"),("X-Served-By","cache-hhn4053-HHN"),("X-Cache","MISS"),("X-Cache-Hits","0"),("X-Timer","S1566099162.021944,VS0,VE137"),("Vary","Authorization,Accept-Encoding"),("Access-Control-Allow-Origin","*"),("X-Fastly-Request-ID","ec29716cf18bc8d965b29000ecf4622037c6f27c"),("Expires","Sun, 18 Aug 2019 03:37:42 GMT"),("Source-Age","0")], responseBody = (), responseCookieJar = CJ {expose = []}, responseClose' = ResponseClose})
what means this message and what to do?
Stack version
$ stack --version
Version 1.9.3, Git revision 40cf7b37526b86d1676da82167ea8758a854953b (6211 commits) x86_64 hpack-0.31.1
Method of installation
- Official binary, downloaded from stackage.org or fpcomplete’s package repository
wget -qO- https://get.haskellstack.org/ | sh
env: FireFox 77.0.1 (64-разрядная версия), Windows 10
Сегодня я заметил, что не могу просматривать файлы изображений ни в одном проекте на github, как и аватарки пользователей. затем я открыл отладчик браузера и обнаружил, что githubusercontent.com ответил 404.
- Я проверяю эту проблему на своем телефоне, телефон работал нормально, поэтому виноват мой компьютер, а не Интернет или прокси.
- Я пробовал сменить браузер с FireFox на Chrome и Edge, но оба они имеют одинаковые ответы, а не ошибку браузера.
- Я изменил конфиденциальность браузера на более низкий уровень, бесполезно.
Теперь, когда мои знания о сети исчерпаны, я попытался найти возможные решения, такие как «получить изображение в github 404 -page -pages -issues», но не нашел такой же ситуации.
Что за проводная проблема, какую рану мне делать дальше? (Ответ 404 указывает на ошибку запроса клиента, это проблема … HTTP-заголовка?)
1 ответ
Лучший ответ
Забыл обычные шаги — ping & tracert. Я обнаружил, что «ping githubusercontent.com» получает ответы от 127.0.0.1, поэтому я сменил хосты, а затем устранил проблему.
0
Boholder
2 Июл 2020 в 08:19
Overview of the issue
The JDL generator fails on simple Cassandra and Postgres apps.
In the console looks like an issue on https://raw.githubusercontent.com site.
Motivation for or Use Case
This is the default JDL execution.
Reproduce the error
Step 1. create an empty cassandra project.
? Which type of application would you like to create? Monolithic application (recommended for simple projects)
? What is the base name of your application? jhipster
? Do you want to make it reactive with Spring WebFlux? No
? What is your default Java package name? com.mycompany.myapp
? Which type of authentication would you like to use? JWT authentication (stateless, with a token)
? Which type of database would you like to use? Cassandra
? Which cache do you want to use? (Spring cache abstraction) No cache — Warning, when using an SQL database, this will disable the Hibernate 2nd level cache!
? Would you like to use Maven or Gradle for building the backend? Maven
? Do you want to use the JHipster Registry to configure, monitor and scale your application? No
? Which other technologies would you like to use?
? Which Framework would you like to use for the client? Angular
? Do you want to generate the admin UI? Yes
? Would you like to use a Bootswatch theme (https://bootswatch.com/)? Default JHipster
? Would you like to enable internationalization support? No
? Please choose the native language of the application English
? Besides JUnit and Jest, which testing frameworks would you like to use? Gatling, Cucumber
? Would you like to install other generators from the JHipster Marketplace? No
Step 2. add the following jhipster-jdl.jdl with this content:
entity Employee {
firstName String,
lastName String,
email String,
phoneNumber String,
hireDate Instant,
salary Long,
commissionPct Long
}
Step 3. Run entity generator
C:Tempjhipster-cassandra>jhipster jdl jhipster-jdl.jh
INFO! Using JHipster version installed locally in current project’s node_modules
INFO! Downloading file: https://raw.githubusercontent.com/jhipster/jdl-samples/v7.1.0/jhipster-jdl.jh
INFO! Error downloading https://raw.githubusercontent.com/jhipster/jdl-samples/v7.1.0/jhipster-jdl.jh: 404 — Not Found
INFO! Downloading file: https://raw.githubusercontent.com/jhipster/jdl-samples/main/jhipster-jdl.jh
ERROR! Error downloading https://raw.githubusercontent.com/jhipster/jdl-samples/main/jhipster-jdl.jh: 404 — Not Found
Error: Error downloading https://raw.githubusercontent.com/jhipster/jdl-samples/main/jhipster-jdl.jh: 404 — Not Found
at ClientRequest. (C:Tempjhipster-cassandranode_modulesgenerator-jhipsterclidownload.js:33:25)
at Object.onceWrapper (events.js:483:26)
at ClientRequest.emit (events.js:376:20)
at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:647:27)
at HTTPParser.parserOnHeadersComplete (_http_common.js:126:17)
at TLSSocket.socketOnData (_http_client.js:515:22)
at TLSSocket.emit (events.js:376:20)
at addChunk (internal/streams/readable.js:309:12)
at readableAddChunk (internal/streams/readable.js:284:9)
at TLSSocket.Readable.push (internal/streams/readable.js:223:10)
Related issues
Suggest a Fix
no idea.
JHipster Version(s)
7.1.0
7.2.0
both on windows laptops.
JHipster configuration
JHipster configuration, a .yo-rc.json
file generated in the root folder
.yo-rc.json file
{ "generator-jhipster": { "applicationType": "monolith", "baseName": "jhipster", "jhipsterVersion": "7.1.0", "skipClient": false, "skipServer": false, "skipUserManagement": false, "skipCheckLengthOfIdentifier": false, "skipFakeData": false, "jhiPrefix": "jhi", "entitySuffix": "", "dtoSuffix": "DTO", "testFrameworks": ["gatling", "cucumber"], "blueprints": [], "otherModules": [], "pages": [], "creationTimestamp": 1632472163474, "serviceDiscoveryType": false, "reactive": false, "authenticationType": "jwt", "packageName": "com.mycompany.myapp", "serverPort": "8080", "cacheProvider": "no", "enableHibernateCache": false, "databaseType": "cassandra", "buildTool": "maven", "serverSideOptions": [], "websocket": false, "searchEngine": false, "messageBroker": false, "enableSwaggerCodegen": false, "clientFramework": "angularX", "withAdminUi": true, "clientTheme": "none", "enableTranslation": false, "nativeLanguage": "en", "packageFolder": "com/mycompany/myapp", "jwtSecretKey": "YourJWTSecretKeyWasReplacedByThisMeaninglessTextByTheJHipsterInfoCommandForObviousSecurityReasons", "devDatabaseType": "cassandra", "prodDatabaseType": "cassandra", "devServerPort": 4200, "clientPackageManager": "npm", "clientThemeVariant": "", "languages": ["en", "fr"] } }
JDL for the Entity configuration(s) entityName.json
files generated in the .jhipster
directory
No files generated in the directory .jhipster
Environment and Tools
java version «11.0.11» 2021-04-20 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.11+9-LTS-194)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.11+9-LTS-194, mixed mode)
git version 2.32.0.windows.2
node: v14.17.0
npm: 6.14.13
Docker version 19.03.12, build 48a66213fe
docker-compose version 1.26.2, build eefe0d31
No change to package.json was detected. No package manager install will be executed.
Entity configuration(s) entityName.json
files generated in the .jhipster
directory
Unfortunatelly the entities are not created.
The .jhipster directory is empty.
Browsers and Operating System
Windows.
Latest Chrome.
- [ x] Checking this box is mandatory (this is just to show you read everything)
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
Comments
Running nodejs LTS: v4.4.3 on windows
C:srcPrg_1_0PrgPrg.Web>npm install node-sass@2 --save-dev
npm WARN package.json Prg.Web.SassWatcher@0.0.1 No repository field.
npm WARN package.json Prg.Web.SassWatcher@0.0.1 No README data
npm WARN package.json Prg.Web.SassWatcher@0.0.1 license should be a valid SPDX license expression
npm WARN deprecated pangyp@2.3.3: use node-gyp@3+ instead
npm WARN deprecated npmconf@2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm
npm WARN deprecated lodash@1.0.2: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.
npm WARN deprecated graceful-fs@1.2.3: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.
npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated graceful-fs@2.0.3: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.
npm WARN deprecated graceful-fs@3.0.8: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.
/
> node-sass@2.1.1 install C:srcPrg_1_0PrgPrg.Webnode_modulesnode-sass
> node scripts/install.js
Can not download file from https://raw.githubusercontent.com/sass/node-sass-binaries/v2.1.1/win32-x64-node-4.4/binding.node
> node-sass@2.1.1 postinstall C:srcPrg_1_0PrgPrg.Webnode_modulesnode-sass
> node scripts/build.js
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: 404 status code downloading 32-bit node.lib
gyp ERR! stack at Request.<anonymous> (C:srcPrg_1_0PrgPrg.Webnode_modulesnode-sassnode_modulespangyplibinstall.js:377:20)
gyp ERR! stack at emitOne (events.js:82:20)
gyp ERR! stack at Request.emit (events.js:169:7)
gyp ERR! stack at Request.onRequestResponse (C:srcPrg_1_0PrgPrg.Webnode_modulesnode-sassnode_modulespangypnode_modulesrequestrequest.js:1255:10)
gyp ERR! stack at emitOne (events.js:77:13)
gyp ERR! stack at ClientRequest.emit (events.js:169:7)
gyp ERR! stack at HTTPParser.parserOnIncomingClient (_http_client.js:419:21)
gyp ERR! stack at HTTPParser.parserOnHeadersComplete (_http_common.js:103:23)
gyp ERR! stack at Socket.socketOnData (_http_client.js:309:20)
gyp ERR! stack at emitOne (events.js:77:13)
gyp ERR! System Windows_NT 10.0.10586
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\src\Prg_1_0\Prg\Prg.Web\node_modules\node-sass\node_modules\pangyp\bin\node-gyp" "rebuild"
gyp ERR! cwd C:srcPrg_1_0PrgPrg.Webnode_modulesnode-sass
gyp ERR! node -v v4.4.3
gyp ERR! pangyp -v v2.3.3
gyp ERR! not ok
Build failed
node-sass@2.1.1 node_modulesnode-sass
├── get-stdin@4.0.1
├── object-assign@2.1.1
├── replace-ext@0.0.1
├── semver@4.3.6
├── chalk@0.5.1 (ansi-styles@1.1.0, escape-string-regexp@1.0.5, supports-color@0.2.0, strip-ansi@0.3.0, has-ansi@0.1.0)
├── shelljs@0.3.0
├── cross-spawn@0.2.9 (lru-cache@2.7.3)
├── mkdirp@0.5.1 (minimist@0.0.8)
├── npmconf@2.1.2 (ini@1.3.4, uid-number@0.0.5, inherits@2.0.1, once@1.3.3, osenv@0.1.3, config-chain@1.1.10, nopt@3.0.6)
├── gaze@0.5.2 (globule@0.1.0)
├── sass-graph@1.3.0 (commander@2.9.0, lodash@2.4.2, glob@4.5.3)
├── nan@1.9.0
├── meow@3.7.0 (map-obj@1.0.1, trim-newlines@1.0.0, decamelize@1.2.0, object-assign@4.0.1, camelcase-keys@2.1.0, minimist@1.2.0, loud-rejection@1.3.0, redent@1.0.0, normalize-package-data@2.3.5, read-pkg-up@1.0.1)
├── mocha@2.4.5 (escape-string-regexp@1.0.2, commander@2.3.0, diff@1.4.0, growl@1.8.1, supports-color@1.2.0, debug@2.2.0, glob@3.2.3, jade@0.26.3)
├── request@2.72.0 (aws-sign2@0.6.0, forever-agent@0.6.1, tunnel-agent@0.4.2, oauth-sign@0.8.1, caseless@0.11.0, is-typedarray@1.0.0, stringstream@0.0.5, isstream@0.1.2, json-stringify-safe@5.0.1, extend@3.0.0, tough-cookie@2.2.2, node-uuid@1.4.7, qs@6.1.0, combined-stream@1.0.5, mime-types@2.1.10, form-data@1.0.0-rc4, aws4@1.3.2, bl@1.1.2, hawk@3.1.3, http-signature@1.1.1, har-validator@2.0.6)
└── pangyp@2.3.3 (which@1.0.9, graceful-fs@3.0.8, rimraf@2.2.8, osenv@0.1.3, nopt@3.0.6, glob@4.3.5, minimatch@2.0.10, fstream@1.0.8, tar@1.0.3, request@2.51.0, npmlog@1.0.0)
C:srcPrg_1_0PrgPrg.Web>
It complains about a 404 for the URL:
https://raw.githubusercontent.com/sass/node-sass-binaries/v2.1.1/win32-x64-node-4.4/binding.node
Version 2.1.1 in predates node 4 by about 2 years, and is no longer
supported. Update to 3.6.0
On 26 Apr 2016 11:38 PM, «Oskar Gewalli» notifications@github.com wrote:
C:srcPrg_1_0PrgPrg.Web>npm install node-sass@2 —save-dev
npm WARN package.json Prg.Web.SassWatcher@0.0.1 No repository field.
npm WARN package.json Prg.Web.SassWatcher@0.0.1 No README data
npm WARN package.json Prg.Web.SassWatcher@0.0.1 license should be a valid SPDX license expression
npm WARN deprecated pangyp@2.3.3: use node-gyp@3+ instead
npm WARN deprecated npmconf@2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm
npm WARN deprecated lodash@1.0.2: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.
npm WARN deprecated graceful-fs@1.2.3: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.
npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated graceful-fs@2.0.3: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.
npm WARN deprecated graceful-fs@3.0.8: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.
/node-sass@2.1.1 install C:srcPrg_1_0PrgPrg.Webnode_modulesnode-sass
node scripts/install.jsCan not download file from https://raw.githubusercontent.com/sass/node-sass-binaries/v2.1.1/win32-x64-node-4.4/binding.node
node-sass@2.1.1 postinstall C:srcPrg_1_0PrgPrg.Webnode_modulesnode-sass
node scripts/build.jsgyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: 404 status code downloading 32-bit node.lib
gyp ERR! stack at Request. (C:srcPrg_1_0PrgPrg.Webnode_modulesnode-sassnode_modulespangyplibinstall.js:377:20)
gyp ERR! stack at emitOne (events.js:82:20)
gyp ERR! stack at Request.emit (events.js:169:7)
gyp ERR! stack at Request.onRequestResponse (C:srcPrg_1_0PrgPrg.Webnode_modulesnode-sassnode_modulespangypnode_modulesrequestrequest.js:1255:10)
gyp ERR! stack at emitOne (events.js:77:13)
gyp ERR! stack at ClientRequest.emit (events.js:169:7)
gyp ERR! stack at HTTPParser.parserOnIncomingClient (_http_client.js:419:21)
gyp ERR! stack at HTTPParser.parserOnHeadersComplete (_http_common.js:103:23)
gyp ERR! stack at Socket.socketOnData (_http_client.js:309:20)
gyp ERR! stack at emitOne (events.js:77:13)
gyp ERR! System Windows_NT 10.0.10586
gyp ERR! command «C:Program Filesnodejsnode.exe» «C:srcPrg_1_0PrgPrg.Webnode_modulesnode-sassnode_modulespangypbinnode-gyp» «rebuild»
gyp ERR! cwd C:srcPrg_1_0PrgPrg.Webnode_modulesnode-sass
gyp ERR! node -v v4.4.3
gyp ERR! pangyp -v v2.3.3
gyp ERR! not ok
Build failed
node-sass@2.1.1 node_modulesnode-sass
├── get-stdin@4.0.1
├── object-assign@2.1.1
├── replace-ext@0.0.1
├── semver@4.3.6
├── chalk@0.5.1 (ansi-styles@1.1.0, escape-string-regexp@1.0.5, supports-color@0.2.0, strip-ansi@0.3.0, has-ansi@0.1.0)
├── shelljs@0.3.0
├── cross-spawn@0.2.9 (lru-cache@2.7.3)
├── mkdirp@0.5.1 (minimist@0.0.8)
├── npmconf@2.1.2 (ini@1.3.4, uid-number@0.0.5, inherits@2.0.1, once@1.3.3, osenv@0.1.3, config-chain@1.1.10, nopt@3.0.6)
├── gaze@0.5.2 (globule@0.1.0)
├── sass-graph@1.3.0 (commander@2.9.0, lodash@2.4.2, glob@4.5.3)
├── nan@1.9.0
├── meow@3.7.0 (map-obj@1.0.1, trim-newlines@1.0.0, decamelize@1.2.0, object-assign@4.0.1, camelcase-keys@2.1.0, minimist@1.2.0, loud-rejection@1.3.0, redent@1.0.0, normalize-package-data@2.3.5, read-pkg-up@1.0.1)
├── mocha@2.4.5 (escape-string-regexp@1.0.2, commander@2.3.0, diff@1.4.0, growl@1.8.1, supports-color@1.2.0, debug@2.2.0, glob@3.2.3, jade@0.26.3)
├── request@2.72.0 (aws-sign2@0.6.0, forever-agent@0.6.1, tunnel-agent@0.4.2, oauth-sign@0.8.1, caseless@0.11.0, is-typedarray@1.0.0, stringstream@0.0.5, isstream@0.1.2, json-stringify-safe@5.0.1, extend@3.0.0, tough-cookie@2.2.2, node-uuid@1.4.7, qs@6.1.0, combined-stream@1.0.5, mime-types@2.1.10, form-data@1.0.0-rc4, aws4@1.3.2, bl@1.1.2, hawk@3.1.3, http-signature@1.1.1, har-validator@2.0.6)
└── pangyp@2.3.3 (which@1.0.9, graceful-fs@3.0.8, rimraf@2.2.8, osenv@0.1.3, nopt@3.0.6, glob@4.3.5, minimatch@2.0.10, fstream@1.0.8, tar@1.0.3, request@2.51.0, npmlog@1.0.0)C:srcPrg_1_0PrgPrg.Web>
It complains about a 404 for the URL:
https://raw.githubusercontent.com/sass/node-sass-binaries/v2.1.1/win32-x64-node-4.4/binding.node
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#1483
2 participants
I want to download a zip file from my private repository from GitHub. Ths is my link to my private GitHub repository
https://raw.githubusercontent.com/<NAME>/Folder/master/dataset.zip?token=<TOKEN>
Unfortunately I get an HTTPError: HTTP Error 404: Not Found
, so also in Python. Is there a option to get the raw data from my private GitHub repository ? I want to get access and download it in Python. I used a Personal access token
for that.
# GitHub Access
file_url= ("https://raw.githubusercontent.com/<NAME>/Folder/master/dataset.zip?token=<TOKEN>")
zipped_file = keras.utils.get_file("dataset", file_url, extract=False)
print(zipped_file)
[OUT] HTTPError: HTTP Error 404: Not Found
# Normal Access
movielens_data_file_url = ("http://files.grouplens.org/datasets/movielens/ml-latest-small.zip")
movielens_zipped_file = keras.utils.get_file("ml-latest-small.zip", movielens_data_file_url, extract=False)
asked Sep 16, 2020 at 13:33
1
The URL you use now is.
https://raw.githubusercontent.com/<NAME>/Folder/master/dataset.zip?token=<TOKEN>
Take the token from the end and reformat your URL as follows:
https://<TOKEN>@raw.githubusercontent.com/<NAME>/Folder/master/dataset.zip
and try again.
answered Sep 16, 2020 at 13:39
BioGeekBioGeek
21.9k23 gold badges83 silver badges145 bronze badges
6
When I try to Open My GitHub Raw file in Chrome Browser or Microsoft Edge. I Can’t Open that URL.
https://raw.githubusercontent.com/imhardikdesai/JSON-Data/main/Hardik-Desai-Portfolio/project.json
I got this Error When I Opend in Browser
Console Error
import React, { useState, useEffect } from "react";
import { Container, Row, Col } from "react-bootstrap";
import ProjectCard from "./ProjectCards";
import Particle from "../Particle";
function Projects() {
const [project, setProject] = useState([])
const fetchProject = async () => {
const url = 'https://raw.githubusercontent.com/imhardikdesai/JSON-Data/main/Hardik-Desai-Portfolio/project.json';
let data = await fetch(url);
let myProjects = await data.json();
setProject(myProjects.projects);
}
useEffect(() => {
fetchProject();
});
return (
<Container fluid className="project-section">
<Particle />
<Container>
<h1 className="project-heading">
My Recent <strong className="purple">Works </strong>
</h1>
<p style={{ color: "white" }}>
Here are a few projects I've worked on recently.
</p>
<Row style={{ justifyContent: "center", paddingBottom: "10px" }}>
{project.map((element) => {
return <Col md={4} className="project-card" key={element.imgurl}>
<ProjectCard
imgPath={element.imgurl}
isBlog={false}
title={element.title}
description={element.description}
ghLink={element.sourceLink}
badge={element.badge}
demoLink={element.liveDemoLink}
/>
</Col>
})}
{/* <Col md={4} className="project-card">
<ProjectCard
imgPath={bitsOfCode}
isBlog={false}
title="Bits-0f-C0de"
description="My personal blog page build with Next.js and Tailwind Css which takes the content from makdown files and renders it using Next.js. Supports dark mode and easy to write blogs using markdown."
ghLink="https://github.com/soumyajit4419/Bits-0f-C0de"
demoLink="https://blogs.soumya-jit.tech/"
/>
</Col> */}
</Row>
</Container>
</Container>
);
}
export default Projects;
But I am able to open this URL in My Mobile Browser.
I try to open my GitHub JSON file in raw content, so I can use that file as a Fetch API in my Projects
JSON File Url :-
https://raw.githubusercontent.com/imhardikdesai/JSON-Data/main/Hardik-Desai-Portfolio/project.json
asked Dec 7, 2022 at 14:46
4
This happens due to the DNS settings of the Jio Fiber network.
To solve this issue :
For Mac OS:
-
Stay connected to the same network.
-
Search for «DNS» in settings search.
-
Click on «DNS Servers» option.
DNS settings for your network open.
- Click + to add an entry to DNS Servers.
- Add 8.8.8.8 as an entry.
- Click OK and reload to access raw files from GitHub.
answered Jun 8 at 16:33
Overview of the issue
The JDL generator fails on simple Cassandra and Postgres apps.
In the console looks like an issue on https://raw.githubusercontent.com site.
Motivation for or Use Case
This is the default JDL execution.
Reproduce the error
Step 1. create an empty cassandra project.
? Which type of application would you like to create? Monolithic application (recommended for simple projects)
? What is the base name of your application? jhipster
? Do you want to make it reactive with Spring WebFlux? No
? What is your default Java package name? com.mycompany.myapp
? Which type of authentication would you like to use? JWT authentication (stateless, with a token)
? Which type of database would you like to use? Cassandra
? Which cache do you want to use? (Spring cache abstraction) No cache — Warning, when using an SQL database, this will disable the Hibernate 2nd level cache!
? Would you like to use Maven or Gradle for building the backend? Maven
? Do you want to use the JHipster Registry to configure, monitor and scale your application? No
? Which other technologies would you like to use?
? Which Framework would you like to use for the client? Angular
? Do you want to generate the admin UI? Yes
? Would you like to use a Bootswatch theme (https://bootswatch.com/)? Default JHipster
? Would you like to enable internationalization support? No
? Please choose the native language of the application English
? Besides JUnit and Jest, which testing frameworks would you like to use? Gatling, Cucumber
? Would you like to install other generators from the JHipster Marketplace? No
Step 2. add the following jhipster-jdl.jdl with this content:
entity Employee {
firstName String,
lastName String,
email String,
phoneNumber String,
hireDate Instant,
salary Long,
commissionPct Long
}
Step 3. Run entity generator
C:Tempjhipster-cassandra>jhipster jdl jhipster-jdl.jh
INFO! Using JHipster version installed locally in current project’s node_modules
INFO! Downloading file: https://raw.githubusercontent.com/jhipster/jdl-samples/v7.1.0/jhipster-jdl.jh
INFO! Error downloading https://raw.githubusercontent.com/jhipster/jdl-samples/v7.1.0/jhipster-jdl.jh: 404 — Not Found
INFO! Downloading file: https://raw.githubusercontent.com/jhipster/jdl-samples/main/jhipster-jdl.jh
ERROR! Error downloading https://raw.githubusercontent.com/jhipster/jdl-samples/main/jhipster-jdl.jh: 404 — Not Found
Error: Error downloading https://raw.githubusercontent.com/jhipster/jdl-samples/main/jhipster-jdl.jh: 404 — Not Found
at ClientRequest. (C:Tempjhipster-cassandranode_modulesgenerator-jhipsterclidownload.js:33:25)
at Object.onceWrapper (events.js:483:26)
at ClientRequest.emit (events.js:376:20)
at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:647:27)
at HTTPParser.parserOnHeadersComplete (_http_common.js:126:17)
at TLSSocket.socketOnData (_http_client.js:515:22)
at TLSSocket.emit (events.js:376:20)
at addChunk (internal/streams/readable.js:309:12)
at readableAddChunk (internal/streams/readable.js:284:9)
at TLSSocket.Readable.push (internal/streams/readable.js:223:10)
Related issues
Suggest a Fix
no idea.
JHipster Version(s)
7.1.0
7.2.0
both on windows laptops.
JHipster configuration
JHipster configuration, a .yo-rc.json
file generated in the root folder
.yo-rc.json file
{ "generator-jhipster": { "applicationType": "monolith", "baseName": "jhipster", "jhipsterVersion": "7.1.0", "skipClient": false, "skipServer": false, "skipUserManagement": false, "skipCheckLengthOfIdentifier": false, "skipFakeData": false, "jhiPrefix": "jhi", "entitySuffix": "", "dtoSuffix": "DTO", "testFrameworks": ["gatling", "cucumber"], "blueprints": [], "otherModules": [], "pages": [], "creationTimestamp": 1632472163474, "serviceDiscoveryType": false, "reactive": false, "authenticationType": "jwt", "packageName": "com.mycompany.myapp", "serverPort": "8080", "cacheProvider": "no", "enableHibernateCache": false, "databaseType": "cassandra", "buildTool": "maven", "serverSideOptions": [], "websocket": false, "searchEngine": false, "messageBroker": false, "enableSwaggerCodegen": false, "clientFramework": "angularX", "withAdminUi": true, "clientTheme": "none", "enableTranslation": false, "nativeLanguage": "en", "packageFolder": "com/mycompany/myapp", "jwtSecretKey": "YourJWTSecretKeyWasReplacedByThisMeaninglessTextByTheJHipsterInfoCommandForObviousSecurityReasons", "devDatabaseType": "cassandra", "prodDatabaseType": "cassandra", "devServerPort": 4200, "clientPackageManager": "npm", "clientThemeVariant": "", "languages": ["en", "fr"] } }
JDL for the Entity configuration(s) entityName.json
files generated in the .jhipster
directory
No files generated in the directory .jhipster
Environment and Tools
java version «11.0.11» 2021-04-20 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.11+9-LTS-194)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.11+9-LTS-194, mixed mode)
git version 2.32.0.windows.2
node: v14.17.0
npm: 6.14.13
Docker version 19.03.12, build 48a66213fe
docker-compose version 1.26.2, build eefe0d31
No change to package.json was detected. No package manager install will be executed.
Entity configuration(s) entityName.json
files generated in the .jhipster
directory
Unfortunatelly the entities are not created.
The .jhipster directory is empty.
Browsers and Operating System
Windows.
Latest Chrome.
- [ x] Checking this box is mandatory (this is just to show you read everything)
Hi all. I’m just getting started. Following the instructions here I got 404 errors on a few of the files, causing further failures in the script, pasted below.
As a side note, is there no support for preformatted text in this forum?
nao@life-server:~/movidius/mvncsdk/ncapi$ ./setup.sh
[sudo] password for nao:
Selecting previously unselected package mvnc.
(Reading database … 210759 files and directories currently installed.)
Preparing to unpack redist/mvnc_1.07_amd64.deb …
Unpacking mvnc (0.0.36+0~20170713190651.36~1.gbpef8e6c) …
Selecting previously unselected package mvnc-dev.
Preparing to unpack redist/mvnc-dev_1.07_amd64.deb …
Unpacking mvnc-dev (0.0.36+0~20170713190651.36~1.gbpef8e6c) …
Selecting previously unselected package python3-mvnc.
Preparing to unpack …/python3-mvnc_1.07_all.deb …
Unpacking python3-mvnc (0.0.36+0~20170713190651.36~1.gbpef8e6c) …
Setting up mvnc (0.0.36+0~20170713190651.36~1.gbpef8e6c) …
Setting up mvnc-dev (0.0.36+0~20170713190651.36~1.gbpef8e6c) …
Setting up python3-mvnc (0.0.36+0~20170713190651.36~1.gbpef8e6c) …
Processing triggers for libc-bin (2.23-0ubuntu9) …
—2017-09-06 16:57:36— http://dl.caffe.berkeleyvision.org/bvlc_googlenet.caffemodel
Resolving dl.caffe.berkeleyvision.org (dl.caffe.berkeleyvision.org)… 169.229.222.251
Connecting to dl.caffe.berkeleyvision.org (dl.caffe.berkeleyvision.org)|169.229.222.251|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 53533754 (51M) [application/octet-stream]
Saving to: ‘../networks/GoogLeNet/bvlc_googlenet.caffemodel’
bvlc_googlenet.caffemod 100%[=============================>] 51,05M 1,21MB/s in 46s
2017-09-06 16:58:22 (1,11 MB/s) — ‘../networks/GoogLeNet/bvlc_googlenet.caffemodel’ saved [53533754/53533754]
—2017-09-06 16:58:22— http://dl.caffe.berkeleyvision.org/bvlc_alexnet.caffemodel
Resolving dl.caffe.berkeleyvision.org (dl.caffe.berkeleyvision.org)… 169.229.222.251
Connecting to dl.caffe.berkeleyvision.org (dl.caffe.berkeleyvision.org)|169.229.222.251|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 243862414 (233M) [application/octet-stream]
Saving to: ‘../networks/AlexNet/bvlc_alexnet.caffemodel’
bvlc_alexnet.caffemodel 100%[=============================>] 232,56M 2,10MB/s in 4m 10s
2017-09-06 17:02:33 (952 KB/s) — ‘../networks/AlexNet/bvlc_alexnet.caffemodel’ saved [243862414/243862414]
—2017-09-06 17:02:33— https://github.com/DeepScale/SqueezeNet/raw/master/SqueezeNet_v1.0/squeezenet_v1.0.caffemodel
Resolving github.com (github.com)… 192.30.253.113, 192.30.253.112
Connecting to github.com (github.com)|192.30.253.113|:443… connected.
HTTP request sent, awaiting response… 302 Found
Location: https://raw.githubusercontent.com/DeepScale/SqueezeNet/master/SqueezeNet_v1.0/squeezenet_v1.0.caffem… [following]
—2017-09-06 17:02:34— https://raw.githubusercontent.com/DeepScale/SqueezeNet/master/SqueezeNet_v1.0/squeezenet_v1.0.caffem…
Resolving raw.githubusercontent.com (raw.githubusercontent.com)… 151.101.0.133, 151.101.64.133, 151.101.128.133, …
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 5001403 (4,8M) [application/octet-stream]
Saving to: ‘../networks/SqueezeNet/squeezenet_v1.0.caffemodel’
squeezenet_v1.0.caffemo 100%[=============================>] 4,77M 15,4MB/s in 0,3s
Last-modified header missing — time-stamps turned off.
2017-09-06 17:02:35 (15,4 MB/s) — ‘../networks/SqueezeNet/squeezenet_v1.0.caffemodel’ saved [5001403/5001403]
sh: 0: Can’t open /opt/movidius/caffe/data/ilsvrc12/get_ilsvrc_aux.sh
cp: cannot stat ‘/opt/movidius/caffe/data/ilsvrc12/synset_words.txt’: No such file or directory
—2017-09-06 17:02:35— https://dl.dropboxusercontent.com/u/38822310/gender_net.caffemodel
Resolving dl.dropboxusercontent.com (dl.dropboxusercontent.com)… 162.125.65.6
Connecting to dl.dropboxusercontent.com (dl.dropboxusercontent.com)|162.125.65.6|:443… connected.
HTTP request sent, awaiting response… 404 Not Found
2017-09-06 17:02:35 ERROR 404: Not Found.
—2017-09-06 17:02:35— https://dl.dropboxusercontent.com/u/38822310/age_net.caffemodel
Resolving dl.dropboxusercontent.com (dl.dropboxusercontent.com)… 162.125.65.6
Connecting to dl.dropboxusercontent.com (dl.dropboxusercontent.com)|162.125.65.6|:443… connected.
HTTP request sent, awaiting response… 404 Not Found
2017-09-06 17:02:35 ERROR 404: Not Found.
—2017-09-06 17:02:35— https://dl.dropboxusercontent.com/u/38822310/mean.binaryproto
Resolving dl.dropboxusercontent.com (dl.dropboxusercontent.com)… 162.125.65.6
Connecting to dl.dropboxusercontent.com (dl.dropboxusercontent.com)|162.125.65.6|:443… connected.
HTTP request sent, awaiting response… 404 Not Found
2017-09-06 17:02:36 ERROR 404: Not Found.
Traceback (most recent call last):
File «convert_mean.py», line 7, in
data = open( ‘../mean/age_gender/mean.binaryproto’, ‘rb’ ).read()
FileNotFoundError: [Errno 2] No such file or directory: ‘../mean/age_gender/mean.binaryproto’
—2017-09-06 17:02:40— https://github.com/BVLC/caffe/raw/master/examples/images/cat.jpg
Resolving github.com (github.com)… 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443… connected.
HTTP request sent, awaiting response… 302 Found
Location: https://raw.githubusercontent.com/BVLC/caffe/master/examples/images/cat.jpg [following]
—2017-09-06 17:02:40— https://raw.githubusercontent.com/BVLC/caffe/master/examples/images/cat.jpg
Resolving raw.githubusercontent.com (raw.githubusercontent.com)… 151.101.0.133, 151.101.64.133, 151.101.128.133, …
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 140391 (137K) [image/jpeg]
Saving to: ‘../images/cat.jpg’
cat.jpg 100%[=============================>] 137,10K —.-KB/s in 0,03s
Last-modified header missing — time-stamps turned off.
2017-09-06 17:02:40 (4,76 MB/s) — ‘../images/cat.jpg’ saved [140391/140391]
../../bin
mvNCCompile v02.00, Copyright @ Movidius Ltd 2016
mvNCCompile v02.00, Copyright @ Movidius Ltd 2016
mvNCCompile v02.00, Copyright @ Movidius Ltd 2016
[Error 9] Argument Error: Network weight cannot be found.
mvNCCompile v02.00, Copyright @ Movidius Ltd 2016
[Error 9] Argument Error: Network weight cannot be found.
mvNCCompile v02.00, Copyright @ Movidius Ltd 2016
nao@life-server:~/movidius/mvncsdk/ncapi$