nicehash/rest-clients-demo

Getting Error Invalid session (1010)

HarshilS-RSW opened this issue · 2 comments

"code": 2000,
"message": "Invalid session (1010)"

I am getting this error in every endpoint. Could you please help me to solve this issue?

@HarshilS-RSW need more details, how do you call it?

I have the same issue since yesterday. My script was running fine for years, now this issue happens every time it tries to fetch data.
I am using the Python version nicehash.py, with parameters:
python3 ~/nicehash/nicehash.py -o private -k private -s private -m GET -b https://api2.nicehash.com -p /main/api/v2/mining/rigs2

It prints out:
Unexpected error: 401: Unauthorized: b'{"error_id":"6f65ac4a-754f-4796-9158-2a6b1e36e8b3","errors":[{"code":2000,"message":"Invalid session (1010)"}]}'