Phoenix.ActionClauseError at POST, no matching action clause to process request

前端 未结 2 1117
天命终不由人
天命终不由人 2021-01-20 12:15

I\'m receiving this error whenever I POST to /api/subastas

Phoenix.ActionClauseError at POST /api/subastas/ bad request to IascSubastas.SubastaController.cr         


        
相关标签:
2条回答
  • 2021-01-20 12:32

    I resolved, just added header.
    My version:

    % mix phoenix.new -v
    Phoenix v1.2.1
    % elixir -v
    Erlang/OTP 19 [erts-8.0.2] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]
    
    Elixir 1.3.2
    
    0 讨论(0)
  • 2021-01-20 12:40

    content_type was missing in POST! "application/json"

    0 讨论(0)
提交回复
热议问题