liurenchaxin/internal/mcp/n8n_auth_fix_guide.md

44 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# N8N认证问题修复指南
## 🔍 诊断结果总结
**诊断时间**: 2025-07-12T14:15:19.433210
### Webhook状态
-**生产webhook**: 正常工作,无需认证
- 🔧 **测试webhook**: 需要手动激活
## 🚀 推荐解决方案
### 方案1: 使用生产webhook推荐
如果生产webhook正常工作直接使用
```bash
curl -X POST https://houzhongxu-n8n-free.hf.space/webhook/ce40f698-832e-475a-a3c7-0895c9e2e90b \
-H "Content-Type: application/json" \
-d '{"test": true, "timestamp": "$(date -Iseconds)"}'
```
### 方案2: 获取API认证
1. 访问N8N界面: https://houzhongxu-n8n-free.hf.space
2. 进入设置 → API Keys
3. 生成新的API密钥
4. 在请求中添加认证头:
```bash
curl -X POST https://houzhongxu-n8n-free.hf.space/api/v1/workflows \
-H "X-N8N-API-KEY: YOUR_API_KEY" \
-H "Content-Type: application/json"
```
### 方案3: 激活测试模式
1. 访问工作流: https://houzhongxu-n8n-free.hf.space/workflow/5Ibi4vJZjSB0ZaTt
2. 点击 "Execute workflow" 按钮
3. 立即测试webhook
## 💡 最佳实践建议
- ✅ 生产webhook无需认证可以直接使用
- 🚀 建议继续使用生产webhook进行集成
- 📊 可以开始配置自动化数据推送
- 🔧 测试webhook需要在N8N界面中手动激活
- 🔐 3 个API端点需要认证