Polygon Amoy Request Message

Hi, I am trying to call the request message endpoint Moralis.Auth.requestMessage via the nodeJS package. The endpoint doesn’t seem to use the latest Polygon Amoy network but the old Polygon Mumbai network.

2024-05-06 16:24:06.186 warn: Error on: POST /api/auth/request-message - Moralis SDK Core Error: [C0006] Request failed, Bad Request(400): chainId must be one of the following values: 1, 5, 11155111, 137, 80001, 56, 97, 43114, 43113, 250, 25, 338, 100, 10200, 88888, 88882, 8453, 84531, 10, 420, 1284, 1285, 1287, 1337

I am using version: “2.26.1” of the nodeJS moralis sdk.

Does anyone have a solution to get the request-message endpoint working with the new polygon testnet?

1 Like

Hi @blocklyfe

The chain value which you are passing to the request-message would not actually make any difference with the authentication. So you can also hardcode the chain value as 1 to overcome this error.

Our team is aware of this issue. So as a temporary fix, you can try hardcoding the value of chain as 1, if that works for you.

1 Like

Sounds good. Thank you! Can you let me know when the issue is fixed as well?