Skip to content

Invalid function: hello with Docker #6988

Closed
@lamualfa

Description

@lamualfa

New Issue Checklist

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:

image

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 as cloud-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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions