hello,
went through the process of setting up a self hosted server⦠now I keep getting this
getPluginSpecs error along with XMLHttpRequest failed: āUnable to connect to the Parse APIā
at handleError
Is the server accessible?
Moralis Server is running on port 1337.
is this something that needs to be set up to work with nginx?
IE: I need to create a server block that points to this? or is it suppose to work out the box with nginx?
Try to access it directly to see if it works, like paste it the server url directly in the browser
I installed it on my server⦠not authorized was the local response with the same pluginspecs errorā¦
https://nftea.app/server
You are using version 1.12.0 for the sdk?
"moralis": "^2.5.5",
"moralis-v1": "^1.11.0",
"react-moralis": "^1.4.2",
You can try with version 1.12
āmoralisā: ā^2.5.5ā,
you are saying change this to 1.12.0?
no, I mean for this one
what is this site doing? I opened it in browser and it tries to continuously download something
added this server block to nginx⦠doesnāt try to download anything for me⦠I get this screenshot⦠you guys have made this one heck of a get going with this hosted server stuff⦠not working
server {
server_name localhost/server;
location / {
proxy_pass http://localhost:1337;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_set_header Host $host;
}
}
what is the server url that it tries to connect to?
did you try to refresh the page after getting that error?
REACT_APP_SERVER_URL=http://localhost/server
also tried
REACT_APP_SERVER_URL=http://localhost:1337/server
it doesnāt work like that, you have to use a server url that is accessible on the internet
sure⦠but thatās not how nginx worksā¦
https://nftea.app/server
is going to go to the nftea.app server block which routes to
localhost:3000
not localhost:1337
the server url has to be accessible from the browser, that localhost url is not accessible from the browser, you may have to put there the public url of your server or a domain name instead of localhost as the server url
done
changed to
REACT_APP_SERVER_URL=https://nftea.app/server
not working
What is that application that was loading on that url? From where it was loading?
The website and the swerves url will have different domains, or at least port numbers