\\u0000 cannot be converted to text error \\u0000 cannot be converted to text error

I am using NextJS and supabase to insert some data into PostgreSQL database. Data is array of objects. The error is like this \\u0000 cannot be converted to text. unsupported Unicode escape sequence. There is no unicode character like \\u0000 in my data.

There is a error response but I cant see which keys value is causing the error. Is there any way to resolve this issue?

const Data = async (req, res) => {
    try {
      const { data, error } = await supabase.from('db').insert([])  
      return res.status(200).json({
        data: data,
        error: error,
      });
    } catch (error) {
      console.log(error);
    }
}


from Stackoverflow

Comments

Popular posts from this blog

I am having trouble with this ajax timer it is not doing what I expect and does not execute I am having trouble with this ajax timer it is not doing what I expect and does not execute

JS Upload file to HTML File Element preserving the effects of a regular click JS Upload file to HTML File Element preserving the effects of a regular click

Refresh page after clicking button (ok / cancel) Refresh page after clicking button (ok / cancel)