keichan34 / exfile

File upload persistence and processing for Phoenix / Plug
MIT License
90 stars 19 forks source link

UndefinedFunctionError after running Exfile.Config.refresh_backend_config/0 #17

Closed keichan34 closed 8 years ago

keichan34 commented 8 years ago
** (exit) an exception was raised:
    ** (UndefinedFunctionError) undefined function :ok.backend_mod/1 (module :ok is not available)
        :ok.backend_mod({:ok, %Exfile.Backend{backend_mod: ExfileB2.Backend, backend_name: "store", directory: "", hasher: Exfile.Hasher.Random, max_size: nil, meta: %{b2: %ExfileB2.B2Client{account_id: "XXX", api_url: "https://api000.backblaze.com", authorization_token: "XXX", download_url: "https://f000.backblaze.com"}, bucket: %ExfileB2.B2Bucket{account_id: "XXX", bucket_id: "XXX", bucket_name: "XXX", bucket_type: "allPrivate"}}}})
        (exfile) Exfile.Backend.get/2
        (exfile) lib/exfile/ecto/file.ex:2: Exfile.Ecto.File.load/1
        (ecto) lib/ecto/schema.ex:980: Ecto.Schema.load!/3
        (ecto) lib/ecto/schema.ex:974: anonymous fn/3 in Ecto.Schema.do_load/4
        (elixir) lib/enum.ex:1473: Enum."-reduce/3-lists^foldl/2-0-"/3
        (ecto) lib/ecto/schema.ex:972: Ecto.Schema.do_load/4
        (ecto) lib/ecto/schema.ex:957: Ecto.Schema.__load__/6