TypeError: expected an object with a buffer interface is now solved