Skip to content

Lane.GetLinks | InvalidOperationException: Sequence contains no elements #24

@NiklasDanz

Description

@NiklasDanz

When calling client.Lane.GetLinks(someLaneID), I get the following error:

InvalidOperationException: Sequence contains no elements
System.Linq.Enumerable.First[TSource] (System.Collections.Generic.IEnumerable`1[T] source) (at <351e49e2a5bf4fd6beabb458ce2255f3>:0)
CodingConnected.TraCI.NET.Helpers.TraCIDataConverter.GetValueFromTypeAndArray (System.Byte type, System.Collections.Generic.IEnumerable`1[T] array, System.Object& Object) (at Assets/Scripts/Simulation/CodingConnected.TraCI.NET/Helpers/TraCIDataConverter.cs:781)
CodingConnected.TraCI.NET.Helpers.TraCIDataConverter.ExtractDataFromResponse[T] (CodingConnected.TraCI.NET.TraCIResult[] response, System.Byte commandType, System.Byte messageType) (at Assets/Scripts/Simulation/CodingConnected.TraCI.NET/Helpers/TraCIDataConverter.cs:47)
CodingConnected.TraCI.NET.Helpers.TraCICommandHelper.ExecuteGetCommand[T] (CodingConnected.TraCI.NET.TraCIClient client, System.String id, System.Byte commandType, System.Byte messageType) (at Assets/Scripts/Simulation/CodingConnected.TraCI.NET/Helpers/TraCICommandHelper.cs:121)
CodingConnected.TraCI.NET.Commands.LaneCommands.GetLinks (System.String id) (at Assets/Scripts/Simulation/CodingConnected.TraCI.NET/Commands/LaneCommands.cs:83)
SumoClientClass.MainLoop () (at Assets/Scripts/SumoClient/SumoClientClass.cs:93)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions