Speedy Node Error 401

Hello, I’ve been the Avalanche speedy node for a few weeks now, using a Pro plan, unfortunately it has begin the issue 401 error requests. I am not hitting any rate limits as my activity hasen’t changed in the last few days. I would really appreciate a quick solution as we are looking to launch by the end of the week.

Thank you

what is the error message for that 401 error?

how often it happens?

The content of the response says unauthorised, it now says it each time I send a request to getLogs.

If you try a different command like getting the last block number then it works?

Yes, that works. -----

can you please write your eth_getLogs request ?

import json
import requests

url = “https://speedy-nodes-nyc.moralis.io/*******/avalanche/mainnet

headers = {
‘Content-Type’: ‘application/json’
}

collection_address = “0xc28f1550160478a7fb3b085f25d4b179e08e649a”

get_logs_req = json.dumps({
“jsonrpc”: “2.0”,
“method”: “eth_getLogs”,
“params”: [
{
“fromBlock”: hex(11151972),
“toBlock”: hex(11161972),
“address”: collection_address,
“topics”: [
“0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef”,
]
}
],
“id”: 1
})

logs = requests.get(url, data=get_logs_req, headers=headers)

This request has been working fine up until this morning, for the last few weeks

If you try with a smaller interval for the number of blocks then it works?

I found out that the new limit is 2k blocks now. We added this limit so that the nodes don’t get overloaded.

Having same issue with Avalance. All was working well before Upgrade. Now it always throws 401

You mean you upgraded to pro plan?
In that case I’ll need in DM your email and current speedy node token

I regenerated you speedy node token, now you have a new speedy node token/url