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

The RestIntegration sample cannot be run #48

Open
ZedZipDev opened this issue Jan 20, 2023 · 0 comments
Open

The RestIntegration sample cannot be run #48

ZedZipDev opened this issue Jan 20, 2023 · 0 comments

Comments

@ZedZipDev
Copy link

ZedZipDev commented Jan 20, 2023

I try to see the Michael's video and run the corresponding example.
When I run the example (in VS2022) I have:

info: Microsoft.Hosting.Lifetime[14]
      Now listening on: https://localhost:20477/
info: Microsoft.Hosting.Lifetime[14]
      Now listening on: http://localhost:20478/
info: Microsoft.Hosting.Lifetime[0]
      Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
      Hosting environment: Development
info: Microsoft.Hosting.Lifetime[0]
      Content root path: D:\MyProjects4\GraphQL\hotchocolate-examples-master\misc\RestIntegration\GraphQLService\
fail: Microsoft.Extensions.Hosting.Internal.Host[9]
      BackgroundService failed
      HotChocolate.SchemaException: For more details look at the `Errors` property.
      1. Unable to resolve dependencies None: variable, None: http for type `Book`. (HotChocolate.Types.ObjectTypeExtension)
      2. Unable to resolve dependencies None: variable, None: http for type `Book`. (HotChocolate.Types.ObjectType<RestIntegration.Book>)
         at HotChocolate.Configuration.TypeInitializer.EnsureNoErrors()
         at HotChocolate.Configuration.TypeInitializer.CompleteTypes()
         at HotChocolate.Configuration.TypeInitializer.Initialize()
         at HotChocolate.SchemaBuilder.Setup.InitializeTypes(SchemaBuilder builder, IDescriptorContext context, IReadOnlyList`1 types)
         at HotChocolate.SchemaBuilder.Setup.Create(SchemaBuilder builder, LazySchema lazySchema, IDescriptorContext context)
         at HotChocolate.Execution.RequestExecutorResolver.CreateSchemaAsync(String schemaName, RequestExecutorSetup options, RequestExecutorOptions executorOptions, IServiceProvider serviceProvider, TypeModuleChangeMonitor typeModuleChangeMonitor, CancellationToken cancellationToken)
         at HotChocolate.Execution.RequestExecutorResolver.CreateSchemaServicesAsync(String schemaName, RequestExecutorSetup options, CancellationToken cancellationToken)
         at HotChocolate.Execution.RequestExecutorResolver.GetRequestExecutorNoLockAsync(String schemaName, CancellationToken cancellationToken)
         at HotChocolate.Execution.RequestExecutorResolver.GetRequestExecutorAsync(String schemaName, CancellationToken cancellationToken)
         at HotChocolate.AspNetCore.Warmup.ExecutorWarmupService.ExecuteAsync(CancellationToken stoppingToken)
         at Microsoft.Extensions.Hosting.Internal.Host.TryExecuteBackgroundServiceAsync(BackgroundService backgroundService)

Where am I wrong? How to run the example?

@ZedZipDev ZedZipDev changed the title The RestIntegration sample cannot be not run The RestIntegration sample cannot be run Jan 20, 2023
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

1 participant