Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chapter 8 creating a new todo #5

Open
AbhimanyuAryan opened this issue Oct 23, 2022 · 0 comments
Open

chapter 8 creating a new todo #5

AbhimanyuAryan opened this issue Oct 23, 2022 · 0 comments

Comments

@AbhimanyuAryan
Copy link
Contributor

registered a new user. Created a new TODO crashed

Screenshot 2022-10-23 at 9 56 05 PM

500 Internal Error - MethodError: Cannot `convert` an object of type String to an object of type Int64
Closest candidates are:
  convert(::Type{T}, !Matched::Ptr) where T<:Integer at pointer.jl:23
  convert(::Type{I}, !Matched::Intervals.Inclusivity) where I<:Integer at ~/.julia/packages/Intervals/wE73a/src/inclusivity.jl:58
  convert(::Type{T}, !Matched::Base.TwicePrecision) where T<:Number at twiceprecision.jl:273
  ...
Stacktrace:
  [1] TodoMVC.Todos.Todo(id::SearchLight.DbId, todo::String, completed::Bool, user_id::SearchLight.DbId, category::String, date::Dates.Date, duration::String)
    @ TodoMVC.Todos ~/Git/TodoMVC/app/resources/todos/Todos.jl:17
  [2] TodoMVC.Todos.Todo(; id::SearchLight.DbId, todo::String, completed::Bool, user_id::SearchLight.DbId, category::String, date::Dates.Date, duration::String)
    @ TodoMVC.Todos util.jl:493
  [3] create()
    @ TodoMVC.TodosController ~/Git/TodoMVC/app/resources/todos/TodosController.jl:70
  [4] run_route(r::Genie.Router.Route)
    @ Genie.Router ~/.julia/packages/Genie/AjwV9/src/Router.jl:535
  [5] route_request(req::HTTP.Messages.Request, res::HTTP.Messages.Response)
    @ Genie.Router ~/.julia/packages/Genie/AjwV9/src/Router.jl:173
  [6] handle_request(req::HTTP.Messages.Request, res::HTTP.Messages.Response)
    @ Genie.Server ~/.julia/packages/Genie/AjwV9/src/Server.jl:270
  [7] (::Genie.Server.var"#27#28"{HTTP.Messages.Request, HTTP.Messages.Response})()
    @ Genie.Server ~/.julia/juliaup/julia-1.8.2+0.aarch64/share/julia/stdlib/v1.8/Distributed/src/macros.jl:123
  [8] #invokelatest#2
    @ ./essentials.jl:729 [inlined]
  [9] invokelatest
    @ ./essentials.jl:726 [inlined]
 [10] #153
    @ ~/.julia/juliaup/julia-1.8.2+0.aarch64/share/julia/stdlib/v1.8/Distributed/src/remotecall.jl:425 [inlined]
 [11] run_work_thunk(thunk::Distributed.var"#153#154"{Genie.Server.var"#27#28"{HTTP.Messages.Request, HTTP.Messages.Response}, Tuple{}, Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}}, print_error::Bool)
    @ Distributed ~/.julia/juliaup/julia-1.8.2+0.aarch64/share/julia/stdlib/v1.8/Distributed/src/process_messages.jl:70
 [12] #remotecall_fetch#158
    @ ~/.julia/juliaup/julia-1.8.2+0.aarch64/share/julia/stdlib/v1.8/Distributed/src/remotecall.jl:450 [inlined]
 [13] remotecall_fetch
    @ ~/.julia/juliaup/julia-1.8.2+0.aarch64/share/julia/stdlib/v1.8/Distributed/src/remotecall.jl:449 [inlined]
 [14] #remotecall_fetch#162
    @ ~/.julia/juliaup/julia-1.8.2+0.aarch64/share/julia/stdlib/v1.8/Distributed/src/remotecall.jl:492 [inlined]
 [15] remotecall_fetch
    @ ~/.julia/juliaup/julia-1.8.2+0.aarch64/share/julia/stdlib/v1.8/Distributed/src/remotecall.jl:492 [inlined]
 [16] setup_http_listener(req::HTTP.Messages.Request, res::HTTP.Messages.Response)
    @ Genie.Server ~/.julia/packages/Genie/AjwV9/src/Server.jl:297
 [17] setup_http_listener
    @ ~/.julia/packages/Genie/AjwV9/src/Server.jl:296 [inlined]
 [18] (::HTTP.Handlers.var"#1#2"{typeof(Genie.Server.setup_http_listener)})(stream::HTTP.Streams.Stream{HTTP.Messages.Request, HTTP.ConnectionPool.Connection})
    @ HTTP.Handlers ~/.julia/packages/HTTP/a7H3J/src/Handlers.jl:58
 [19] setup_http_streamer(http::HTTP.Streams.Stream{HTTP.Messages.Request, HTTP.ConnectionPool.Connection})
    @ Genie.Server ~/.julia/packages/Genie/AjwV9/src/Server.jl:286
 [20] (::Genie.Server.var"#6#12"{Int64})(http::HTTP.Streams.Stream{HTTP.Messages.Request, HTTP.ConnectionPool.Connection})
    @ Genie.Server ~/.julia/packages/Genie/AjwV9/src/Server.jl:118
 [21] #invokelatest#2
    @ ./essentials.jl:729 [inlined]
 [22] invokelatest
    @ ./essentials.jl:726 [inlined]
 [23] handle_connection(f::Function, c::HTTP.ConnectionPool.Connection, listener::HTTP.Servers.Listener{Nothing, Sockets.TCPServer}, readtimeout::Int64, access_log::Nothing)
    @ HTTP.Servers ~/.julia/packages/HTTP/a7H3J/src/Servers.jl:442
 [24] (::HTTP.Servers.var"#16#17"{Genie.Server.var"#6#12"{Int64}, HTTP.Servers.Listener{Nothing, Sockets.TCPServer}, Set{HTTP.ConnectionPool.Connection}, Int64, Nothing, Base.Semaphore, HTTP.ConnectionPool.Connection})()
    @ HTTP.Servers ./task.jl:484

. ```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant