dcy
dcy
Hi! When i start my application. ``` ([email protected])1> 18:24:47.667 [error] CRASH REPORT Process with 0 neighbours exited with reason: {timeout,{gen_leader,leader_call,[gproc_dist,{reg,{n,g,},undefined,,[]}]}} in gen_server:init_it/6 line 352 18:24:47.667 [error] CRASH REPORT Process with...

``` Module: xyadmin_email_controller, Line: 22, My print's "Req : post_params ( )" is [{"title","dsfasdfasdf"}, {"serverlists[]","2"}, {"users",[]}, {"content","asdfasdfasdf"}, {"attachments[0][item_type]","1"}, {"attachments[0][item_id]","1"}, {"attachments[0][item_name]","1"}, {"attachments[0][item_amount]","1"}, {"attachments[1][item_type]","2"}, {"attachments[1][item_id]","1"}, {"attachments[1][item_name]","1"}, {"attachments[1][item_amount]","1"}] ``` How can i get...
My controller' s code: ``` {json, [{emails, Emails}]}. ``` Because this does not support maps, so i convert Emails to proplists: ``` Module: xyadmin_email_controller, Line: 22, My print's "Emails" is...
Hi! My code is: 141 Maps = #{key => "value"} dcy@dcy-dcy:~/yxq$ ./rebar compile skip_deps=true WARN: Ignoring sub_dirs for /home/dcy/yxq/deps/ddb ==> yxq (pre_compile) 16:28:24.751 [error] Compile Error, "src/lib/yxq_app.erl" -> {"/home/dcy/yxq/src/lib/yxq_app.erl",[{{141,18},aleppo_parser,["syntax error...
Hi! I use `hackney_url:qa` to urlencode, when the value is a list, it will be wrong. ``` 6> hackney_url:qs([{, [,]}]). ``` In Python: ``` In [4]: urllib.urlencode({'deviceTokenList': ['08670650250202362000003019000001', 'sdfsdf']}) Out[4]:...
Hi! I keep the conn in gen_server's state, the gen_server can not receive the `gun_down`. And after the server(which http client shotgun request) restart, the conn of gen_server can not...
Hi! ``` message = APNS.Message.new msg_id = :erlang.system_time(:milli_seconds) message = message |> Map.put(:id, msg_id) |> Map.put(:token, token) |> Map.put(:alert, content) ``` ``` def error(error = %APNS.Error{}, token) do # handle...
``` qdate:set_timezone("UTC+8"), qdate:to_unixtime(calendar:local_time()) ``` will raise error: ``` ([email protected])32> qdate:to_unixtime(calendar:local_time()). ** exception error: no function clause matching calendar:date_to_gregorian_days(error) (calendar.erl, line 124) in function calendar:datetime_to_gregorian_seconds/1 (calendar.erl, line 137) in call from...
If Account is maps. And "Account:id()" not throw any error. It should be: exception error: bad argument in function apply/3 called as apply(#{key => value},id,[]) No error and i can't...