redis / ioredis

🚀 A robust, performance-focused, and full-featured Redis client for Node.js.
MIT License
14.31k stars 1.19k forks source link

GCP: [ioredis] Unhandled error event: ParserError: Protocol error, got "H" as reply type byte. Please report this. #1812

Open raynmakers opened 1 year ago

raynmakers commented 1 year ago

Hi,

I've been using ioredis locally and it works perfectly. However when I deploy it to a google cloud function and run it then I continuously get this error:

2023-09-08 17:19:58.579 CEST [ioredis] Unhandled error event: ParserError: Protocol error, got "H" as reply type byte. Please report this. 2023-09-08 17:19:58.579 CEST at handleError (/layers/google.nodejs.yarn/yarn_modules/node_modules/redis-parser/lib/parser.js:190:15) 2023-09-08 17:19:58.579 CEST at parseType (/layers/google.nodejs.yarn/yarn_modules/node_modules/redis-parser/lib/parser.js:304:14)

It basically happens when I call new Redis()

How can I resolve this?