Help Center> FunctionGraph> FAQs> External Resource Access FAQs> What Do I Do If My Function Cannot Connect to Redis Through a VPC?
Updated on 2023-06-20 GMT+08:00

What Do I Do If My Function Cannot Connect to Redis Through a VPC?

Symptom

With the same code, the function can connect to Redis 1 through VPC 1, but cannot connect to Redis 2 through VPC 2.

Solution

  1. Check the current configuration: Redis1 is in VPC1, Redis2 is in VPC2, and the Redis client uses the same set of code.
  2. Check the log, which shows that the Redis IP address appears as garbled characters when the client tries to connect Redis2 through VPC2.

  3. Analyze Redis1 and Redis2. They are the same except for their IP addresses and passwords. The Redis2 password was found to contain an at sign (@). As a result, the IP address was incorrectly intercepted and garbled when the Redis was requested.
  4. Change the password of Redis2 to rectify the fault.

External Resource Access FAQs FAQs

more