Hi everybody,
I try to use :rpc.call to create an entity on another node like this:
:rpc.call(:node@me, MyApp, :create_toto, [%{}])
create_toto builds a changeset for Toto Schema and calls Repo.insert.
When the changeset is valid, everything is ok and the result is as expected.
But when the changeset is not valid, i get this error:
{:error,
%Inspect.Error{
message: "got UndefinedFunctionError with message \"function Toto.__schema__/1 is undefined (module Toto is not available)\" while inspecting %{__struct__: Ecto.Changeset, action: :insert, changes...... }}
The function works well on its own node.
Can anybody explain this behaviour?
Thanks ![]()






















