Skip to content

Issue when running EdsmScanner #8

@stneto

Description

@stneto

Hi! Is this project still active? I'm getting an error when trying to run EdsmScanner, no matter which parameters are used. Like this:

> EdsmScanner.exe "Pekoe" --scan-radius 25 --plot-journey --filter-system "IsFullyDiscovered==false"
Searching for systems in 25ly distance from: Pekoe

Unhandled exception: System.InvalidOperationException: Unable to fetch systems for: Pekoe
---> System.Text.Json.JsonException: The JSON value could not be converted to EdsmScanner.Models.SystemRef[]. Path: $ | LineNumber: 0 | BytePositionInLine: 1.
at System.Text.Json.ThrowHelper.ThrowJsonException_DeserializeUnableToConvertValue(Type )
at System.Text.Json.Serialization.JsonCollectionConverter`2.OnTryRead(Utf8JsonReader& , Type , JsonSerializerOptions , ReadStack& , TCollection& )
at System.Text.Json.Serialization.JsonConverter`1.TryRead(Utf8JsonReader& , Type , JsonSerializerOptions , ReadStack& , T& )
at System.Text.Json.Serialization.JsonConverter`1.ReadCore(Utf8JsonReader& , JsonSerializerOptions , ReadStack& )
at System.Text.Json.JsonSerializer.ReadCore[TValue](JsonConverter , Utf8JsonReader& , JsonSerializerOptions , ReadStack& )
at System.Text.Json.JsonSerializer.ReadCore[TValue](JsonReaderState& , Boolean , ReadOnlySpan`1 , JsonSerializerOptions , ReadStack& , JsonConverter )
at System.Text.Json.JsonSerializer.ContinueDeserialize[TValue](ReadBufferState& , JsonReaderState& , ReadStack& , JsonConverter , JsonSerializerOptions )
at System.Text.Json.JsonSerializer.ReadAllAsync[TValue](Stream , JsonTypeInfo , CancellationToken )
at System.Net.Http.Json.HttpContentJsonExtensions.ReadFromJsonAsyncCore[T](HttpContent , Encoding , JsonSerializerOptions , CancellationToken )
at System.Net.Http.Json.HttpClientJsonExtensions.GetFromJsonAsyncCore[T](Task`1 , JsonSerializerOptions , CancellationToken )
at EdsmScanner.Clients.EdsmClient.SearchSystems(String originSystem, Int32 radius) in D:\a\edsm_scanner\edsm_scanner\EdsmScanner\Clients\EdsmClient.cs:line 68
--- End of inner exception stack trace ---
at EdsmScanner.Clients.EdsmClient.SearchSystems(String originSystem, Int32 radius) in D:\a\edsm_scanner\edsm_scanner\EdsmScanner\Clients\EdsmClient.cs:line 72
at EdsmScanner.Search.SystemResolver.SearchForSystems(String originSystem, Int32 radius) in D:\a\edsm_scanner\edsm_scanner\EdsmScanner\Search\SystemResolver.cs:line 57
at EdsmScanner.Search.SystemResolver.ResolveSystemsAround(String originSystem, Int32 radius) in D:\a\edsm_scanner\edsm_scanner\EdsmScanner\Search\SystemResolver.cs:line 22
at EdsmScanner.Program.Scan(String originSystem, Int32 scanRadius, Boolean plotJourney, Boolean includeBodies, TimeSpan cacheDuration, String[] filterSystem, String[] filterBody) in D:\a\edsm_scanner\edsm_scanner\EdsmScanner\Program.cs:line 95
at System.CommandLine.Invocation.CommandHandler.GetResultCodeAsync(Object value, InvocationContext context)
at System.CommandLine.Invocation.ModelBindingCommandHandler.InvokeAsync(InvocationContext context)
at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<b__19_0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<b__13_0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass23_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass22_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<b__21_0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<b__18_0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<b__10_0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<b__9_0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass12_0.<b__0>d.MoveNext()

Any tips on solving this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions