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)
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:
It basically happens when I call
new Redis()
How can I resolve this?