"invalid host header" starting Skeleton Web Application for Hyperledger Developer Guide tutorial -
i'm going through hyperledger developer guide tutorial. i've done steps through generate rest api without trouble. after going through generate skeleton web application section, don't see problems in shell output when try navigate port 4200 instructed, mostly-blank screen says invalid host header
.
in #composer channel on rocketchat, saw have similar problem. suggested was:
because directory specified in hlfv1 profile under keyvalstore cannot created or accessed. have specified directory such /home/fred/.hfc-key-store user fred doesn't exist directory /home/fred doesn't exist. 1 solution create directory path yourself.
i checked , directory ok:
ibmadmin@pfuntner1:~/repos$ cat /home/ibmadmin/.composer-connection-profiles/hlfv1/connection.json { "type": "hlfv1", "orderers": [ { "url" : "grpc://localhost:7050" } ], "ca": { "url": "http://localhost:7054", "name": "ca.org1.example.com" }, "peers": [ { "requesturl": "grpc://localhost:7051", "eventurl": "grpc://localhost:7053" } ], "keyvalstore": "/home/ibmadmin/.composer-credentials", "channel": "composerchannel", "mspid": "org1msp", "timeout": "300" } ibmadmin@pfuntner1:~/repos$ ls -ld /home/ibmadmin/.composer-credentials drwxrwxr-x 2 ibmadmin ibmadmin 4096 sep 13 15:11 /home/ibmadmin/.composer-credentials ibmadmin@pfuntner1:~/repos$ ls -l /home/ibmadmin/.composer-credentials total 24 -rw-r--r-- 1 ibmadmin ibmadmin 246 sep 13 15:10 114aab0e76bf0c78308f89efc4b8c9423e31568da0c340ca187a9b17aa9a4457-priv -rw-r--r-- 1 ibmadmin ibmadmin 182 sep 13 15:11 114aab0e76bf0c78308f89efc4b8c9423e31568da0c340ca187a9b17aa9a4457-pub -rw-rw-r-- 1 ibmadmin ibmadmin 246 sep 13 15:11 2a176af765281bb00394c2427cb7acc679d3eb9b504703eaba8c32a5a0f1a61c-priv -rw-rw-r-- 1 ibmadmin ibmadmin 182 sep 13 15:40 2a176af765281bb00394c2427cb7acc679d3eb9b504703eaba8c32a5a0f1a61c-pub -rw-rw-r-- 1 ibmadmin ibmadmin 962 sep 13 15:40 admin -rw-r--r-- 1 ibmadmin ibmadmin 1024 sep 13 15:11 peeradmin ibmadmin@pfuntner1:~/repos$
does have suggestions?
update
i added statement:
$ diff -c5 node_modules/@angular/cli/tasks/serve.js.orig node_modules/@angular/cli/tasks/serve.js *** node_modules/@angular/cli/tasks/serve.js.orig 2017-09-14 12:20:45.462357278 -0400 --- node_modules/@angular/cli/tasks/serve.js 2017-09-14 11:27:55.682265096 -0400 *************** *** 158,167 **** --- 158,168 ---- ui.writeline(chalk.green(common_tags_1.oneline ` ** ng live development server running on ${serveraddress} ** `)); + webpackdevserverconfiguration.disablehostcheck = true; const server = new webpackdevserver(webpackcompiler, webpackdevserverconfiguration); return new promise((_resolve, reject) => { server.listen(servetaskoptions.port, servetaskoptions.host, (err, _stats) => { if (err) { return reject(err); $
this seems webpack related, though have not seen issue myself.
Comments
Post a Comment