Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

there is no reactor running, must be called from the context of a Tokio 1.x runtime #2

Closed
z330789559 opened this issue Jul 21, 2021 · 1 comment

Comments

@z330789559
Copy link

sys: mac os
step:

  1. clone git
  2. config env
  3. cargo run --package planets-service --bin planets-service
  4. visit http://127.0.0.1:8001/
  5. input params
    subscription {
    latestPlanet {
    id
    name
    type
    details {
    meanRadius
    }
    }
    }
    error: thread 'actix-rt:worker:6' panicked at 'there is no reactor running, must be called from the context of a Tokio 1.x runtime'
@rkudryashov
Copy link
Owner

Hi @z330789559

Can't guess by what it was caused, but could you try to launch Rust services as was said in the article (https://romankudryashov.com/blog/2020/12/graphql-rust/#_project_launch_and_api_testing)? Just use cargo run inside directory of the service.

Also, do you have any changes in the project compared with the latest version of the project? If so, you could try to reset those changes.

Also, you could start the project with Docker locally. If it will work without errors, then perhaps the error was caused by local environment.

@rkudryashov rkudryashov closed this as not planned Won't fix, can't repro, duplicate, stale Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants