[solved] Timeout in authen API

Hello Team, hope you are doing great

My application use Moralis Authen API for almost 3 months and it works fine until last friday.

My Dotnet core application keep throwing Timeout after loading 30 seconds, this line:

ChallengeResponseDto resp = await MoralisClient.AuthenticationApi.AuthEndpoint.Challenge(req, ChainNetworkType.evm);

I am using this nuget package, do you have any update? https://www.nuget.org/packages/Moralis/2.0.6-beta

Hi @paoli

Are you still having any issues with it? A timeout error can also happen if the server did not respond with a response.
Can you try adding some logs on which part of code is causing the timeout?

Hello,
It still happen from 5 days ago and No code change last 3 months ago.

It keeps loading until timeout, the error is "Error calling Challenge: "

Moralis.Network.ApiException: Error calling Challenge: \r\n   at Moralis.AuthApi.Api.AuthenticationApi.Challenge(ChallengeRequestDto request, ChainNetworkType network)\r\n   at

I think there were no changes with the sdk as well.
Can you once test auth API on the below docs? Use the same params which you are passing to in your code.

Hi johnversus,

Please help to confirm endpoint and header

I know what is the issue now, that url is not the correct one, it should be authapi.moralis.io.

1 Like

@paoli, can you try again now to see if it works without giving a timeout?

Hi cryptokid,

It works now. Do I need to do any further step?

It should be fine if it works now. You could also try to change that url if that is possible.

It works fine now. Thanks for your help cryptokid, johnversus.

2 Likes