In case when i create a new file without fields, everything works nice. But when i provide some fileds ( even when i pass empty fileds object ) request throws an error. I will provide image bellow.

My code, which is identical to yours on https://aymkdn.github.io/SharepointPlus/files.html#createFile

In case when i create a new file without fields, everything works nice. But when i provide some fileds ( even when i pass empty fileds object ) request throws an error. I will provide image bellow.
My code, which is identical to yours on https://aymkdn.github.io/SharepointPlus/files.html#createFile