Gmail node common issues#
นี่คือข้อผิดพลาดและปัญหาทั่วไปบางประการเกี่ยวกับ Gmail node และขั้นตอนในการแก้ไขหรือแก้ไขปัญหา
Remove the n8n attribution from sent messages#
หากคุณใช้ node เพื่อ send a message หรือ reply to a message node จะเพิ่มข้อความนี้ต่อท้ายอีเมล:
This email was sent automatically with n8n
หากต้องการลบข้อความระบุแหล่งที่มานี้:
- ในส่วน Options ของ node เลือก Add option
- เลือก Append n8n attribution
- ปิด toggle
อ้างอิง Send options และ Reply options สำหรับข้อมูลเพิ่มเติม
Forbidden - perhaps check your credentials#
ข้อผิดพลาดนี้จะแสดงถัดจาก dropdown บางรายการใน node เช่น dropdown Label Names or IDs ข้อความเต็มๆ จะมีลักษณะประมาณนี้:
1 |
|
ข้อผิดพลาดนี้มักจะแสดงเมื่อคุณใช้ Google Service Account เป็น credential และ credential นั้นไม่ได้เปิดใช้งาน Impersonate a User
อ้างอิง Google Service Account: Finish your n8n credential สำหรับข้อมูลเพิ่มเติม
401 unauthorized error#
ข้อความเต็มๆ ของข้อผิดพลาดมีลักษณะดังนี้:
1 |
|
ข้อผิดพลาดนี้เกิดขึ้นเมื่อมีปัญหากับ credential ที่คุณใช้อยู่และ scopes หรือ permissions ของมัน
วิธีแก้ไข:
- สำหรับ OAuth2 credentials ตรวจสอบให้แน่ใจว่าคุณได้เปิดใช้งาน Gmail API ใน APIs & Services > Library อ้างอิง Google OAuth2 Single Service - Enable APIs สำหรับข้อมูลเพิ่มเติม
- สำหรับ Service Account credentials:
- Enable domain-wide delegation
- ตรวจสอบให้แน่ใจว่าคุณได้เพิ่ม Gmail API เป็นส่วนหนึ่งของการกำหนดค่า domain-wide delegation
Bad request - please check your parameters#
ข้อผิดพลาดนี้มักเกิดขึ้นหากคุณป้อน Message ID, Thread ID หรือ Label ID ที่ไม่มีอยู่จริง
ลองใช้ Get operation กับ ID นั้นเพื่อยืนยันว่ามีอยู่จริง