At the risk of being obtuse: the answer is literally right there in the message, if you just read it carefully.
—
Sent from mobile, with due apologies for brevity and errors.
> On Dec 25, 2021, at 8:34 AM, Gokan Atmaca <linux.gokan@gmail.com> wrote:
>
> Hello
>
> I'm trying to migrate using pgloader, but I'm getting an error like
> the one below. What could be causing the problem?
>
> error:
> 2021-12-25T13:14:48.011000Z ERROR Database error 22023: length for
> type varchar must be at least 1
>
>
> Thanks.
>
>
>
> --
> ⢀⣴⠾⠻⢶⣦⠀
> ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
> ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
> ⠈⠳⣄⠀⠀⠀⠀