-
Notifications
You must be signed in to change notification settings - Fork 11
Unknown response from server #48
Comments
The default is to run with http2 enabled. |
Hi. Wondering where is the reason; in lib or in my sys config. As I can see now in api mode; Answering with; And on api node side; ======started as nodejs |
I can only guess that perhaps the google cloud version of curl is somehow
funky? Is it aliased to busybox or something that's not truely curl? Other
than that I have no clue.
|
I was using both curl on google console and curl on my ubuntu laptop but now i see that there is some problem like above seems like some formatting 0xa1 => 161 =>ansci [~i] |
I am facing exactly the same issue. Kinldy let me know if you were able to fix his. |
Hi, I'm a fan of Your project so i have downloaded it and started the server like that
node --inspect src/cli.js api --ipfs-host localhost --no-https --orbitdb-dir /xxx/orbitdb
or even with certs
sudo node src/cli.js api --ipfs-host localhost--no-https --orbitdb-dir /xxx/orbitdb --https-cert /etc/xxx/fullchain.pem --https-key /etc/xxx/privkey.pem
running on port 3000
sending requests;
curl http://localhost:3000/dbs > tmpfile.rsp
or
curl -X POST http://localhost:3000/db/counter -d "create=true" -d "type=counter" > tmpfile.rsp
I get always this;
^@^@^@^D^@^@^@^@^@^@^@^H^G^@^@^@^@^@^@^@^@^@^@^@^@^B
I understand that --no-https parameter is to let OrbitDB API, to connect to ipfs local node without SSL cert. via http:
and
--https-cert and --https-key is to setup OrbitDB API with https endpoints on port 3000 in that case,
and those parameters are not required so I can manage SSL by myself (nginx for example)
that lets me improve speed on local environment.
Am I right?
What is interesting I was also trying docker pull orbitdb/orbit-db-http-api:latest
docker run --net host orbitdb/orbit-db-http-api src/cli.js api --ipfs-host=127.0.0.1 --no-https --orbitdb-dir=/mnt/disks/ipfs-disk/orbitdb-img
or
docker run --net host orbitdb/orbit-db-http-api src/cli.js local --no-https --orbitdb-dir=/mnt/disks/ipfs-disk/orbitdb-img
and i see the same response;
^@^@^@^D^@^@^@^@^@^@^@^H^G^@^@^@^@^@^@^@^@^@^@^@^@^B
After a while I found that there is a problem with --http2 possibly default config.
All is running on Google Cloud
Can You guys investigate
The text was updated successfully, but these errors were encountered: