You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using revise with middleware arguments in the serve function generates the following error:
ERROR: LoadError: MethodError: Cannot `convert` an object of type Oxygen.Core.ReviseHandler to an object of type typeof(CorsMiddleware)
The function `convert` exists, but no method is defined for this combination of argument types.
Closest candidates are:
convert(::Type{T}, ::T) where T
@ Base Base.jl:126
Stacktrace:
[1] insert!(a::Vector{typeof(CorsMiddleware)}, i::Int64, item::Oxygen.Core.ReviseHandler)
@ Base ./array.jl:1733
[2] serve(ctx::Oxygen.Core.AppContext.Context; middleware::Vector{typeof(CorsMiddleware)}, handler::typeof(Oxygen.Core.stream_handler), host::String, port::Int64, async::Bool, parallel::Bool, serialize::Bool, catch_errors::Bool, docs::Bool, metrics::Bool, show_errors::Bool, show_banner::Bool, docs_path::String, schema_path::String, external_url::Nothing, revise::Symbol, kwargs::@Kwargs{})
@ Oxygen.Core ~/.julia/packages/Oxygen/ObBBn/src/core.jl:135
[3] serve
@ ~/.julia/packages/Oxygen/ObBBn/src/core.jl:90 [inlined]
[4] serve(; kwargs::@Kwargs{host::String, port::Int64, middleware::Vector{typeof(CorsMiddleware)}, revise::Symbol})
@ OxygenTutorial ~/.julia/packages/Oxygen/ObBBn/src/methods.jl:19
[5] serve
@ ~/.julia/packages/Oxygen/ObBBn/src/methods.jl:15 [inlined]
[6] up()
@ OxygenTutorial ~/Documents/GitHub/Oxygen_Tutorial/src/OxygenTutorial.jl:100
The text was updated successfully, but these errors were encountered:
Using
revise
withmiddleware
arguments in theserve
function generates the following error:The text was updated successfully, but these errors were encountered: