[SOLVED] Can't send requests to NFT API without the user connecting

This is what I use for App initialization
Screenshot_7
And I when I manually sign in, it starts to work.

Alternatively you can try to make a request with axios to get that info when the user is not authenticated. You can look in network tab to see the parameters and skip the session id that is specific to an authenticated user

Hi there, i think it should be an easy thing to patch for the team, we will get back!

1 Like

Thanks, please inform when fixed <3

Any news on this? This issue still exists.

we have a PR ready for this fix, you can also use this solution meanwhile:

1 Like

now you can also use to SDK v1.12.0

Canโ€™t seem to find any SDK with v1.12.0, could please provide more info.

this was the PR

Updated the SDK but for some reason the same issue still persists.
The error only exists when I use the local Moralis server.

It seems to work when fetching data from DB, but stops working when I call a function like getTokenIdMetadata.

The second I switch back to the remotely hosted server, everything starts working again.

Did you thy that patch to add that app id?

Faced way to many errors trying to setup express. Too many changed required to make that patch work for me.

You only have to change in a file locally

Get the error 'app' is not defined. What am I doing wrong here? Followed the exact instructions from the patch.

Screenshot_13

I think that you have to add server side that code, where you will find a similar code already

If you look in network tab for the payload of that request do you see the app id there?

Some do, some donโ€™t. Even those that do, return empty.
Screenshot_15
Screenshot_14

Would it be possible, to DM you the API details, so you could troubleshoot yourself? We really need this fixed fast.