\\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

Detox gets stuck on JS Timer/Main Run Loop when registering a lot of screens with React Native Navigation Detox gets stuck on JS Timer/Main Run Loop when registering a lot of screens with React Native Navigation

How to extract items from a subarray and push them to the main array