Cannot convert argument to a ByteString because the character at index 406 has a value of 28009 which is greater than 255.


I believe this is due to your cookies having non-English characters in them. Try removing any cookies like that.

Now the error has become like this
Maybe you didn't remove the cookie properly.
Use userToken instead of cookies
I encountered the error. The problem is that non-English characters that are URLencoded turn back to their original form automatically when I paste my cookies. One way to solve it is to change your location in your Bing “Settings and quick links” from non-English characters to English words. Another way is to try to find methods to keep the URLencoded form of cookies.
how about this.
const iconv = require('iconv-lite');
// Convert cookie string to buffer const cookieBuffer = iconv.encode(cookieString, 'ascii');
// Convert buffer back to string const asciiCookieString = iconv.decode(cookieBuffer, 'ascii');
Not perfect, but it worked.
iconv -f utf-8 -t ascii input.txt > output.txt