[SOLVED] Error when running own server - Not supported operation getNFTTrades

I have followed step by step the instructions you have provided in the following tutorial:

Nevertheless I get the following error, which from my view is not derived from my parameters:

What version of moralis sdk do you have?
The error seems to be: Not supported operation getNFTTrades when generating or running the generated cloud code for web3api functions.

I just downloaded the parse-server-migration folder as indicated

Hello all,

I have a same problem. I have seen at a code a little bit. Can an issue be connect with this?


The version of moralis is 2.19.0. I tried the older versions but without success.

Best regards,
NIkolas

you can try this repo with an old version

I’m using version "“moralis”: “^2.7.0"”
getting this error:

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath ‘./core’ is not defined by “exports” in /Users/apple/Documents/projects/parse-server-migration/node_modules/@moralisweb3/parse-server/node_modules/moralis/package.json

Hi, I’m not able to reproduce this error, can you please also share with us all the dependency versions from package.json? So we can test this on our site

{
“name”: “demo-parse-server-migration”,
“version”: “1.1.0”,
“main”: “dist/index.js”,
“private”: true,
“dependencies”: {
@codemirror/language”: “^0.20.0”,
@moralisweb3/core”: “^2.7.0”,
@moralisweb3/parse-server”: “2.7.0”,
@types/cors”: “^2.8.12”,
@types/express”: “^4.17.14”,
@types/node”: “^18.11.9”,
“cors”: “^2.8.5”,
“dotenv”: “^16.0.1”,
“envalid”: “7.3.1”,
“express”: “^4.18.1”,
“express-rate-limit”: “^6.5.1”,
“graphql”: “^16.6.0”,
“graphql-ws”: “^5.10.1”,
“moralis”: “^2.7.0”,
“ngrok”: “^4.3.3”,
“parse-dashboard”: “^5.0.0”,
“parse-server”: “^5.2.7”
},
“devDependencies”: {
@moralisweb3/eslint-config”: “^1.0.0”,
@typescript-eslint/eslint-plugin”: “^5.12.0”,
@typescript-eslint/parser”: “^5.12.0”,
“axios”: “^0.27.2”,
“eslint”: “^8.9.0”,
“eslint-plugin-etc”: “^2.0.2”,
“eslint-plugin-import”: “^2.26.0”,
“mongodb-runner”: “^4.9.0”,
“prettier”: “^2.7.1”,
“ts-node”: “^10.9.1”,
“typescript”: “^4.7.4”
},
“scripts”: {
“dev”: “ts-node src/index.ts”,
“start”: “node build/index.js”,
“build”: “tsc”,
“lint”: “eslint --ext .js,.ts .”,
“format”: “prettier --write ‘src/**/*.{js,ts}’”,
“dev:db-start”: “mongodb-runner start”,
“dev:db-stop”: “mongodb-runner stop”,
“gen:cloud”: “ts-node ./scripts/generateCloudCode.ts”,
“tsc”: “tsc”
}
}

I will push some changes with a fix soon

1 Like

Thanks. Do let me know when you post it

You can check the repo again and clone it, pushed some changes, let me know if its all good

Its working now thanks, Can you please tell me how Can I sync my Moralis database now?
also when I go to http://localhost:1337/server I am getting unauthorized

Hi Lulian, I cannot sync data from my old Moralis server. Can you help?

what did you try? are you able to connect directly to your managed moralis server mongo db?

Hi, i think the issue is we are unable to find credentials of our database in our panel and so unable to take a backup of our moralis database on the local system. Can you help in this?

there is no user and password, you only need to know the IP and to whitelist the IP from where you want to connect, there is a database tab in your admin interface dashboard for your server

Hey, could you tell me how I can get the database backup of my moralis database? I am unable to see this option in my dashboard

you have some info in the documentation:

https://v1docs.moralis.io/moralis-dapp/database/direct_access

https://v1docs.moralis.io/moralis-dapp/getting-started/self-hosting-moralis-server/migrate-data

Hi, I was able to setup the database on my own server,
I can access the /dashboard
but when I go to /server
it says {“error”:“unauthorized”}

how can I authorize it ?