[SOLVED] Getting 404 errors when setting up self hosted server with old ethereum boilerplate

I was migrating a project based on the older version of ethereum boilerplate to a self hosted server but am running into problems even when I use the code from Moralis tutorials (https://docs.moralis.io/docs/connect-to-your-client#authentication and the YT video https://www.youtube.com/watch?v=l2qTyc-V9cM)

I’ve installed moralis-v1 and the server works with the sample react client project here

The errors I’m getting are:

Failed to load resource: the server responded with a status of 404 (Not Found)

and

Uncaught (in promise) Error: Received an error with invalid JSON from Parse: <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot POST /001/functions/getPluginSpecs</pre>
</body>
</html>

    at handleError

These errors show up as soon as the project is loaded.
I’d be grateful for any help, thank you.

It looks like you have mixed up the server URL and applicationId as it is showing 001 instead of http://localhost:1337/server, etc. Can you check your app’s configuration?

Well that’s an embarrassing mistake. It was indeed a mix up between the two that was causing the errors.

Thanks a lot for your help!