Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Unknown response from server #48

@Nortberg

Description

@Nortberg

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions