GolosChain / golos

Socio-economic mediablockchain
https://developers.golos.io
Other
59 stars 36 forks source link

[0.16.5] [LOW_MEM] webserver-http-endpoint broken #418

Closed bitphage closed 6 years ago

bitphage commented 6 years ago

While using LOW_MEM node, unable to connect to webserver-http-endpoint:

config.ini:

webserver-http-endpoint = 0.0.0.0:8090

Port 8090 is mapped to host 9090 port:

version: "2.2"
services:
  testnet:
    image: golos-0.16.5-testnet-lowmem
    ports:
      - "3001:2001"
      - "9090:8090"
      - "9091:8091"
    volumes:
      - "./share/golosd/config/config_debug.ini:/etc/golosd/config.ini"
% telnet localhost 9090
Trying ::1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
bitphage commented 6 years ago

Cannot reproduce on 0.17.0, probably was fixed in #419. Didn't checked 0.16.5 though.

kotbegemot commented 6 years ago

Do not rely on the http.

bitphage commented 6 years ago

@kotbegemot what do you mean? Websocket interface should be considered as "main"?

kotbegemot commented 6 years ago

@bitfag Websocket interface is main.

bitphage commented 6 years ago

@kotbegemot bad for golos-python than because it supports http only.

kotbegemot commented 6 years ago

@bitfag What's the problem with making a Web-socket based transport?

bitphage commented 6 years ago

No problem with Web-socket based transport itself, the problem is golos-python can only work with http-endpoint. Websocket communications produces errors:

http_client.py             245 INFO     non 200 response:429
http_client.py             261 INFO     failed to load response