tencent cloud

Serverless Cloud Function

Release Notes and Announcements
Release Notes
Announcements
User Guide
Product Introduction
Overview
Related Concepts
How It Works
Strengths
Scenarios
Related Products
Purchase Guide
Billing Overview
Billing Mode
Billable Items and Billing Modes
Function Computing Power Support
Free Tier
SCF Pricing
Billing Example
Payment Overdue
Getting Started
Creating Event Function in Console
User Guide
Quota Management
Managing Functions
Web Function Management
Log Management
Concurrence Management
Trigger Management
Function URL
A Custom Domain Name
Version Management
Alias Management
Permission Management
Running Instance Management
Plugin Management
Managing Monitors and Alarms
Network Configuration
Layer Management
Execution Configuration
Extended Storage Management
DNS Caching Configuration
Resource Managed Mode Management
Near-Offline Resource Hosting Model
Workflow
Triggers
Trigger Overview
Trigger Event Message Structure Summary
API Gateway Trigger
COS Trigger
CLS Trigger
Timer Trigger
CKafka Trigger
Apache Kafka Trigger
MQTT Trigger
Trigger Configuration Description
MPS Trigger
CLB Trigger Description
TencentCloud API Trigger
Development Guide
Basic Concepts
Testing a Function
Environment Variables
Dependency Installation
Using Container Image
Error Types and Retry Policies
Dead Letter Queue
Connecting SCF to Database
Automated Deployment
Cloud Function Status Code
Common Errors and Solutions
Developer Tools
Serverless Web IDE
Calling SDK Across Functions
Third-Party Tools
Code Development
Python
Node.js
Golang
PHP
Java
Custom Runtime
Deploying Image as Function
Web Framework Development
Deploying Framework on Command Line
Quickly Deploying Egg Framework
Quickly Deploying Express Framework
Quickly Deploying Flask Framework
Quickly Deploying Koa Framework
Quickly Deploying Laravel Framework
Quickly Deploying Nest.js Framework
Quickly Deploying Next.js Framework
Quickly Deploying Nuxt.js Framework
Quickly Deploying Django Framework
Use Cases
Overview
Solutions with Tencent Cloud Services
Business Development
TRTC Practices
COS Practices
CKafka Practice
CLS
CLB Practice
MPS
CDN
CDWPG
VOD
SMS
ES
Scheduled Task
Video Processing
Success Stories
Tencent Online Education
Online Video Industry
Tencent Online Education
Best Practice of Tencent IEG Going Global
API Documentation
History
Introduction
API Category
Making API Requests
Other APIs
Namespace APIs
Layer Management APIs
Async Event Management APIs
Trigger APIs
Function APIs
Function and Layer Status Description
Data Types
Error Codes
SDK Documentation
FAQs
General
Web Function
Billing FAQs
Network FAQs
Log FAQs
SCF utility class
Event Handling FAQs
API Gateway Trigger FAQs
Related Agreement
Service Level Agreement
Contact Us
Glossary

SCF utility class

PDF
Focus Mode
Font Size
Last updated: 2024-12-11 14:34:37

Installation Issues

setuptools is too old

Problem: error in scf setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers
Solution: pip install -U setuptools

The existing distutils installation package cannot be upgraded

Problem: Cannot uninstall 'PyYAML'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
Solution: pip install -I PyYAML==x.x.x (view the specific version in requirements.txt)

six is too old

Problem: pip "Cannot uninstall 'six'. It is a distutils installed project..."
Solution: sudo pip install six --upgrade --ignore-installed six

pytz is too old

Problem: uninstalling pytz : [error 1] Operation not permitted ...
Solution: sudo pip install pytz --upgrade --ignore-installed six

Usage Issues

How do I specify a function for local debugging if the YAML configuration file contains multiple function descriptions?

Problem: Error: You must provide a function identifier (function's Logical ID in the template). Possible options in your template: ['xxxB', 'xxxA']
Solution: include the function name when running the local invoke command, such as scf local invoke -t template.yaml xxxA

The [SSL: CERTIFICATE_VERIFY_FAILED] error occurred during deployment

Problem: when deploy was used, function deployment failed with error message [SSL: CERTIFICATE_VERIFY_FAILED]
Cause: in macOS 10.12 + Python 3.6 and higher versions, Python no longer reads certificates from the system path, resulting in certificate reading failures, and SSL verification will fail when TencentCloud API is called for deployment
Solution: in the Python installation directory, run the Install Certificates.command script to install the certifi package automatically.

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback