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-19 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
- Check the current configuration: Redis1 is in VPC1, Redis2 is in VPC2, and the Redis client uses the same set of code.
- Check the log, which shows that the Redis IP address appears as garbled characters when the client tries to connect Redis2 through VPC2.
- 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.
- Change the password of Redis2 to rectify the fault.
Parent topic: External Resource Access FAQs
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.
