Node.js 개발을 하다가 Redis 부분에서 에러가 났다. 

 

Error: node_redis: The SET command contains a invalid argument type.
Only strings, dates and buffers are accepted. Please update your code to use valid argument types.

 

 

대충 해석을 해보면 SET 명령을 할 때 인수가 잘못된 듯 하다.

파라미터가 무조건 String 타입만 가능하다. 

혹시 넘길 때 콘솔로 찍어보고 다시 확인해보면 될것 같다.

+ Recent posts