Actions64
- 定时任务 Actions
- 订阅管理 Actions
- 环境变量 Actions
- 配置文件 Actions
- 脚本管理 Actions
- 依赖管理 Actions
- 日志管理 Actions
- 系统设置 Actions
Overview
This node integrates with the QingLong Panel API, a platform for managing scheduled tasks and scripts. Specifically, the "脚本管理" (Script Management) resource with the "下载脚本" (Download Script) operation allows users to download a script file from a specified path on the QingLong server.
Common scenarios include automating the retrieval of scripts managed in QingLong for backup, analysis, or further processing within an n8n workflow. For example, a user might schedule a workflow that downloads the latest version of a script before running tests or deploying it elsewhere.
Properties
| Name | Meaning |
|---|---|
| 脚本路径 | The directory path where the script is located on the QingLong server. This is required to specify the folder containing the target script. |
| 文件名 | The name of the script file to download. Required to identify the exact script file within the given path. |
Output
The node outputs JSON data under the json field of the first input item. The key result contains the response from the QingLong API corresponding to the script download request. This typically includes the content or metadata of the downloaded script.
No binary data output is indicated by the code; the script content or details are returned as JSON.
Dependencies
- Requires an API key credential for authenticating with the QingLong Panel API.
- The node uses internal helper functions to obtain an authentication token and make HTTP requests to QingLong's REST API endpoints.
- Proper configuration of the QingLong API credentials in n8n is necessary for successful execution.
Troubleshooting
Common issues:
- Incorrect script path or filename will result in errors or empty responses because the API cannot locate the requested script.
- Authentication failures if the API key or token is invalid or expired.
- Network connectivity problems between n8n and the QingLong server.
Error messages:
- If the operation is not implemented or recognized, the node throws an error indicating the operation is not yet supported.
- API errors from QingLong are wrapped and thrown as node API errors, which should be checked for details like permission denied or file not found.
Resolutions:
- Verify the script path and filename inputs carefully.
- Ensure the API key credential is valid and has sufficient permissions.
- Check network access and firewall settings.
Links and References
- QingLong Panel API documentation: https://qinglong.online/api/
- n8n documentation on creating custom nodes and using credentials: https://docs.n8n.io/
- QingLong GitHub repository and community forums for additional support.