strongloop / loopback-cli

LoopBack CLI tool for creating projects, models and more.
Other
105 stars 41 forks source link

remote-method command does nothing #99

Closed sujeshthekkepatt closed 4 years ago

sujeshthekkepatt commented 4 years ago

Description/Steps to reproduce

lb remote-method shows Run-async wrapped function (sync) returned a promise but async() callback must be executed to resolve. and does nothing.

Steps for reproduction,

  1. Install loopback-cli
    1. On an existing project run lb remote-method
    2. Give method name, description now we can see the message above.

Link to reproduction sandbox

Expected result

The remote method should have created.

Additional information

Platform : ubuntu (linux x64) Node version: 12.16.1 loopback info : ```+-- loopback@3.26.0 +-- loopback-boot@2.27.1 +-- loopback-component-explorer@6.3.0 +-- loopback-connector-postgresql@2.9.0 +-- loopback-ds-timestamp-mixin@3.4.1

emonddr commented 4 years ago

@sujeshthekkepatt , please provide a minimal application to demonstrates this problem so we can investigate. thank you.

sskhokhar commented 4 years ago

Im facing same issue

sskhokhar commented 4 years ago

Anyone able to resolved this issue?

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 4 years ago

This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository.

hamedebrahimi commented 4 years ago

Facing same problem on macOS! When using lb remote-method after "Description for method" step this message shows up: "Enter the path of this endpoint: Run-async wrapped function (sync) returned a promise but async() callback must be executed to resolve. " And similar thing happens at "What is the name of this argument?" step : "Run-async async() called outside a valid run-async context, callback will be ignored."