<div dir="ltr">Hello,<br><br>I am starting a gen_fsm with supervisor:start_child(erlfs_store_worker_sup, {store_chunk, Chunk}) but I get the following error:<br><br>{error,<br>                                   {'EXIT',<br>
                                    {badarg,<br>                                     [{erlang,<br>                                       apply,<br>                                       [erlfs_store_worker_fsm,<br>                                        start_link,<br>
                                        {store_chunk,<br>                                         {chunk,<br>                                          {chunk_meta,<br>                                           {file_meta,<br>
                                            "test123",<br>                                            "test.txt",<br>                                            0,<br>                                            "text/plain",<br>
                                            {{0,1,1},{0,0,0}}},<br>                                           0,<br>                                           0,<br>                                           []},<br>                                          <<"Hello world!">>}}]},<br>
                                      {supervisor,do_start_child_i,3},<br>                                      {supervisor,handle_call,3},<br>                                      {gen_server,handle_msg,6},<br>                                      {proc_lib,init_p,5}]}}}<br>
<br>I've been trying to figure it out for a while, but I am having a hard time. Here is the Child Spec in the supervisor (erlfs_store_worker_sup):<br><br>init(Args) -><br>    WorkerSpec = {erlfs_store_worker_fsm, {erlfs_store_worker_fsm, <br>
                       start_link, []},<br>          temporary, 2000, worker, [erlfs_store_worker_fsm]},<br>    {ok,{{simple_one_for_one, 0, 1}, [WorkerSpec]}}.<br></div>