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