Unable to connect to 'http://localhost:1337/server

hi everyone, I’m trying to set up a moralis local server following the youtube guide.

when i run ‘build dev’ i get the following error:

bigint: Failed to load bindings, pure JS will be used (try npm run rebuild?)
warn: DeprecationWarning: The Parse Server option ‘directAccess’ default will change to ‘true’ in a future version. Additionally, the environment variable ‘PARSE_SERVER_ENABLE_EXPERIMENTAL_DIRECT_ACCESS’ will be deprecated and renamed to ‘PARSE_SERVER_DIRECT_ACCESS’ in a future version; it is currently possible to use either one.
warn: DeprecationWarning: The Parse Server option ‘enforcePrivateUsers’ default will change to ‘true’ in a future version.
Moralis Server is running on port 1337.
info: Parse LiveQuery Server started running

WARNING, Unable to connect to ‘http://localhost:1337/server’. Cloud code and push notifications may be unavailable!

could you help me identify the error? thank you

if you try to access http://localhost:1337/server or http://127.0.0.1:1337/server then it works?


Hi Cryptokid, I have a white screen, it makes me understand that it is not running.
here the screenshot of the “.env” file.

Do you get any errors?

I am getting the same error. But I think the server is running because when I access the http://localhost:1337/server I get a unauthorized error.

But when I try and send a POST request to the server it gives me this error:
Uncaught (in promise) Error: Invalid server state: initialized

To what url you make that post request?

To this url http://localhost:1337/server/classes/Nft

I’m trying to store data into a mongoDB database