Skip to content

no method matching length(::Nothing) in get_engine when engine does not exist #89

@msagarpatel

Description

@msagarpatel

The following error occurs in get_engine():

julia> get_engine(ctx, "sagar-2022-11-12")
ERROR: MethodError: no method matching length(::Nothing)
Closest candidates are:
  length(::Union{Base.KeySet, Base.ValueIterator}) at abstractdict.jl:58
  length(::Union{LinearAlgebra.Adjoint{T, S}, LinearAlgebra.Transpose{T, S}} where {T, S}) at /Applications/Julia-1.8.app/Contents/Resources/julia/share/julia/stdlib/v1.8/LinearAlgebra/src/adjtrans.jl:172
  length(::Union{Tables.AbstractColumns, Tables.AbstractRow}) at ~/.julia/packages/Tables/T7rHm/src/Tables.jl:180
  ...
Stacktrace:
 [1] get_engine(ctx::Context, engine::String; kw::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
   @ RAI ~/.julia/packages/RAI/RbjsZ/src/api.jl:262
 [2] get_engine(ctx::Context, engine::String)
   @ RAI ~/.julia/packages/RAI/RbjsZ/src/api.jl:259
 [3] top-level scope
   @ REPL[3]:1

This occurs when the engine does not exist, when it is in the PROVISIONING state, or when it has been deleted. The error does not occur in the PROVISIONED state. It's unclear whether the error occurs in the DELETE_REQUESTED state.

Based BWA logs, I believe this error started occurring some time between Wed, 09 Nov 2022 08:04:44 GMT and Fri, 11 Nov 2022 03:48:32 GMT.

@vilterp also observed this error.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions