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
- 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
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot