Skip to content

Int is not callble when converting BSON to Dict + segmentation fault #145

@bvdmitri

Description

@bvdmitri

I get this strange error only on Julia 1.12, the actions run is here

Julia 1.11 is fine. I also tried to bump to Mongoc 0.10 here, but got a segmentation fault

[08-25 11:29:45] Error: handle_connection handler error. 

===========================
HTTP Error message:

ERROR: MethodError: objects of type Int64 are not callable
The object of type `Int64` exists, but no method is defined for this combination of argument types when trying to treat it as a callable object.
Maybe you forgot to use an operator such as *, ^, %, / etc. ?
Stacktrace:
  [1] _get(iter_ref::Base.RefValue{Mongoc.BSONIter}, ::Type{Mongoc.IterateKeyValuePairs})
    @ Mongoc ~/.julia/packages/Mongoc/tgaoV/src/bson.jl:465
  [2] iterate(itr::Mongoc.BSONIterator{Mongoc.IterateKeyValuePairs}, state::Nothing)
    @ Mongoc ~/.julia/packages/Mongoc/tgaoV/src/bson.jl:484
  [3] iterate
    @ ~/.julia/packages/Mongoc/tgaoV/src/bson.jl:484 [inlined]
  [4] iterate
    @ ~/.julia/packages/Mongoc/tgaoV/src/bson.jl:490 [inlined]
  [5] Dict{String, Any}(kv::Mongoc.BSON)
    @ Base ./dict.jl:95
  [6] dict_with_eltype
    @ ./abstractdict.jl:639 [inlined]
  [7] Dict
    @ ./dict.jl:117 [inlined]
  [8] __database_op_get_model_instance(; token::String, instance_id::String)
    @ RxInferServer ~/work/RxInferServer/RxInferServer/src/tags/Models.jl:490

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