aston668334 / nodepay-socks-python

Automated mining for Nodepay.
10 stars 1 forks source link

Got error #6

Closed burnmine closed 1 week ago

burnmine commented 1 week ago

image

aston668334 commented 1 week ago

Please provide more information. I have no idea this error occur in witch file. Tnaks

jbr1989 commented 1 week ago

Same error.

response = requests.request("GET", "https://api.nodepay.ai/api/network/device-networks?page=0&size=10&active=false", headers=headers) out = json.loads(response.text)

The request return a 403 Error. I get NP_TOKEN by localStorage.getItem('np_token'); and I put in script.

MANUAL FIX: I have did a manual request and got user_id

aston668334 commented 1 week ago

Same error.

response = requests.request("GET", "https://api.nodepay.ai/api/network/device-networks?page=0&size=10&active=false", headers=headers) out = json.loads(response.text)

The request return a 403 Error. I get NP_TOKEN by localStorage.getItem('np_token'); and I put in script.

MANUAL FIX: I have did a manual request and got user_id

Did you using web extention for fist mining? You should first using web. Because it need a device record let code ti get user_id.

jbr1989 commented 1 week ago

You're right. When I used NP_TOKEN after using the extension. It looks good.