When running the SoloMiner.py, I get an error message that states "Error getting block template: None" . I've setup the json.config for the solominer, including the username and password for the Bitcoin Core RPC. I'm thinking its maybe related to the data request method to the RPC because when I run the test.py , I receive the following error, which confirms it connected to the RPC pool successfully:
Attempting to connect to pool (Attempt 1/5)...
Connected to pool!
Sending message: {'id': 1, 'method': 'mining.subscribe', 'params': []}
Received message: HTTP/1.1 400 Bad Request
An error occurred: Expecting value: line 1 column 1 (char 0). Reconnecting..
In the Test.py, I tried removing the spaces in the following code just in case the spaces were an issue, but it didn't fix it:
def subscribe(sock):
message = {
"id":1,
"method":"mining.subscribe",
"params":[]
}
Another similar issue for RPC 400 bad request had occurred for a different script. but it was due to spaces, discussed on this article
Please let me know what you think might fix the issue. Also, do you think the problem causing the error with the Test.py script is the same issue causing the error with the SoloMiner.py script?? Thank you.
When running the SoloMiner.py, I get an error message that states "Error getting block template: None" . I've setup the json.config for the solominer, including the username and password for the Bitcoin Core RPC. I'm thinking its maybe related to the data request method to the RPC because when I run the test.py , I receive the following error, which confirms it connected to the RPC pool successfully:
Attempting to connect to pool (Attempt 1/5)...
Connected to pool!
Sending message: {'id': 1, 'method': 'mining.subscribe', 'params': []}
Received message: HTTP/1.1 400 Bad Request
An error occurred: Expecting value: line 1 column 1 (char 0). Reconnecting..
In the Test.py, I tried removing the spaces in the following code just in case the spaces were an issue, but it didn't fix it:
def subscribe(sock):
message = {
"id":1,
"method":"mining.subscribe",
"params":[]
}
Another similar issue for RPC 400 bad request had occurred for a different script. but it was due to spaces, discussed on this article
Please let me know what you think might fix the issue. Also, do you think the problem causing the error with the Test.py script is the same issue causing the error with the SoloMiner.py script?? Thank you.