Overview
This node manages WhatsApp sessions using the Wuzapi service, allowing users to control connection states and configure session-related settings. The "Set Proxy" operation specifically enables or disables a proxy server for the WhatsApp session by providing a proxy URL. This is useful in scenarios where network routing through a proxy is required for privacy, security, or access reasons.
Practical examples include:
- Routing WhatsApp traffic through a SOCKS5 proxy to bypass network restrictions.
- Enabling or disabling proxy usage dynamically based on environment or user preference.
Properties
| Name | Meaning |
|---|---|
| Proxy URL | The URL of the proxy server to use, e.g., http://host:port or socks5://user:pass@host:port. Specifies the proxy configuration for the WhatsApp session. |
| Enable Proxy | Boolean flag to enable (true) or disable (false) the proxy setting. |
Output
The node outputs JSON data reflecting the response from the Wuzapi API after attempting to set the proxy configuration. This typically includes confirmation of the proxy being set or disabled. No binary data output is involved in this operation.
Example output JSON structure:
{
"success": true,
"message": "Proxy settings updated"
}
Dependencies
- Requires an active connection to the Wuzapi API service.
- Needs an API key credential configured in n8n to authenticate requests to Wuzapi.
- The proxy URL must be valid and accessible from the environment where the node runs.
Troubleshooting
- Invalid Proxy URL Format: Ensure the proxy URL follows the correct format (
http://host:portorsocks5://user:pass@host:port). Incorrect formatting will cause the API request to fail. - Network Connectivity Issues: If the proxy server is unreachable or credentials are incorrect, the proxy setup will not succeed.
- API Authentication Errors: Verify that the API key credential is correctly configured and has necessary permissions.
- Error Messages: The node may throw errors if the proxy cannot be set. Check the error message for details and verify proxy parameters and network accessibility.
Links and References
- Wuzapi Official Documentation (replace with actual URL)
- Proxy URL Format Reference
- SOCKS5 Proxy Protocol