Closed
Description
New Issue Checklist
- I am not disclosing a vulnerability.
- I am not just asking a question.
- I have searched through existing issues.
- I can reproduce the issue with the latest version of Parse Server.
Issue Description
I have following this step and setting the cloud-code-vol
to a local directory that contain a main.js
file. I have also checked into Docker Container and found that the main.js
file on my volume is already in the cloud
directory inside Container. But when i try to execute the Cloud Code using the JS Console in Parse Dashboard, i get an Error below:
Additional Info
JS Console in Parse Dashboard
console.log(await Parse.Cloud.run("hello"))
main.js
File
Parse.Cloud.define('hello', function () {
return 'hello-world';
});
Steps to reproduce
- Create a
main.js
file in the directory you will passing ascloud-code-vol
to Docker Run Command. - Install & run Parse Server using Docker. I follow this step.
- Install & run Parse Dashboard using Docker. I follow this step.
- Open Parse Dashboard and go to API Console > JS Console.
- Exec Cloud Code with
Parse.Cloud.run
method.
Server
- Parse Server version: Because I am using Docker. The following step told me to clone directly from
master
branch in repository. So i can only give the latest commit. The latest commit is 82cd275 - Operating system: ubuntu 20.04
- Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): Local
Database
- System (MongoDB or Postgres): MongoDB
- Database version:
4.4.1
- Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): Local
Client
I am using Parse Dashboard with Docker. The latest digest is 152a141.
Logs
2020-11-02T11:39:42.301Z - Invalid function: "hello"