kyuupichan / electrumx

Alternative implementation of spesmilo/electrum-server
Other
721 stars 733 forks source link

disconnected whilst throttled on local rpc #1073

Closed michaelbarbas closed 1 year ago

michaelbarbas commented 1 year ago

I have an electrum server on a vm. I want to send requests to it from a separate machine through postman. I have the port exposed and it is definitely getting a connection, but I am getting a malformed response. I get this response in the logs for electrumx...

Aug 04 04:33:05 ip-172-16-2-116 electrumx_server[686039]: INFO:LocalRPC:[0] changing task concurrency from 17 to 15
Aug 04 04:33:05 ip-172-16-2-116 electrumx_server[686039]: INFO:LocalRPC:[0] changing task concurrency from 15 to 12
Aug 04 04:33:05 ip-172-16-2-116 electrumx_server[686039]: INFO:LocalRPC:[0] changing task concurrency from 12 to 9
Aug 04 04:33:05 ip-172-16-2-116 electrumx_server[686039]: INFO:LocalRPC:[0] changing task concurrency from 9 to 6
Aug 04 04:33:05 ip-172-16-2-116 electrumx_server[686039]: INFO:LocalRPC:[0] changing task concurrency from 6 to 4
Aug 04 04:33:05 ip-172-16-2-116 electrumx_server[686039]: INFO:LocalRPC:[0] changing task concurrency from 4 to 1
Aug 04 04:33:05 ip-172-16-2-116 electrumx_server[686039]: INFO:LocalRPC:[0] disconnected whilst throttled

This is my electrum.conf file below

# REQUIRED
DB_DIRECTORY = ~/electrumx_db
# Bitcoin Node RPC Credentials
DAEMON_URL = http://<user>:<password>@localhost:8332

COIN = Bitcoin

SERVICES = rpc://x.x.x.x
PEER_DISCOVERY = off
COST_SOFT_LIMIT=0
COST_HARD_LIMIT=0

Any idea why this isnt working? Postman info below

URL: x.x.x.x:8000

Content-Type: application/json

JSON body {"jsonrpc":"2.0", "method": "getinfo", "id": 1}