Node 22 upgrade results in "unexpected end of file"

Seems to be an ongoing problem that is not in a high priority to be fixed. In case anyone else is looking for a solution, seems like adding 'Accept-Encoding': 'gzip,deflate' to headers help resolve the error.