[SOLVED] Ethereum boilerplate Authentication error 500

Authentication process worked (saturday to my knowlegde) but now throws a status code 500 error when trying to connect wallet . . .
Console says nada . . . .

Problem persists both locally on test and deployed version which indicates an outside bug with the API I think? . . .

Is anyone else having an issue?

I now checked my Admin dash and it just keeps loading users and nothing happens??

There must be an error in vs code console and you can find details on the error there.

image

Hey @rePok pls give us more detail on the error that you have and how to replicate it so that we can assist you to tackle your issue :raised_hands:

You can try to connect wallet here:
https://bacdfinance.netlify.app/

Can you show the code from your backend here where the error might occur? Looks like it relates to parsing your JSON data

I have no idea where the error might be since it worked saturday and I only changed code locally and haven’t committed that code . . . So the deployed version should still work . . .

But this is the user page I added to the boilerplate for centralized db connect aswell . . .

image

The users in Admin dash continues to load with nothing happening . . .

Github repo:

Ethereum boilerplate is using the old moralis sdk 2.0.3 version. I am receiving the same error if I test with this version. Can you try upgrading to the latest version?

And after installing the latest version you need to use Moralis.start fuction like this.

  if (!Moralis.Core.isStarted) {
    await Moralis.start({ apiKey: process.env.MORALIS_API_KEY });
  }
1 Like

I ran the moralis@latest and fix audit on 2 dependency issues but problem persists :confused:

Ok, so now Users are showing in the admin dash and my online deploy works (With old 2.0.3) but updated local version still has issues . . . .

It all works now . . .I needed to set Moralis core in request-message.ts aswell as [next-auth].ts and user.tsx

Thanx for your help :slight_smile:

Yeah ok, now it only works locally . . . Netlify threw an error on build . . . . I guess you changed the evm-utils path in the new version?

image

That import is now @moralisweb3/common-evm-utils so you can change that. Make sure your project builds locally first.

1 Like

And these in erc20.tsx?

image

There has been some changes in to the function names in sdk.
Replacing Moralis.EvmApi.account.getTokenBalances with this Moralis.EvmApi.token.getWalletTokenBalances should solve that error.

You can find more details in docs

1 Like

Did you remove possibillity for fetching Wallet NFT transfers?

It’s nolonger on the list and this link returns 404 . . .

Try with this link https://docs.moralis.io/reference/getnfttransfers

I will fix the url in docs. :raised_hands:

1 Like