เป็นเวลา 2 วันที่การพยายามโพสต์เนื้อหาผ่าน LinkedIn API สำหรับหน้าเพจของบริษัทใดบริษัทหนึ่งล้มเหลวด้วย "ข้อผิดพลาดของบริการภายใน" น่าแปลกที่มันเกิดขึ้นเฉพาะกับเพจของบริษัทนี้เท่านั้น (id: 10684715) ไม่ใช่เพจอื่นๆ ของบริษัทที่เราโพสต์ไป! รหัสอยู่ใน php ฉันได้ตรวจสอบหน้าเพจของบริษัทแล้วว่ามีข้อมูลใดบ้างที่ช่วยและไม่พบอะไรเลย นอกจากนี้ การโพสต์เนื้อหาเดียวกันโดยตรงไปยัง LinkedIn ใช้งานได้ แต่ไม่ผ่าน API รหัสเดียวกันและคำขอที่คล้ายกันทำงานก่อนหน้านี้ ยิ่งไปกว่านั้น การแชร์เนื้อหาเดียวกันไปยังเพจของบริษัทอื่นก็ได้ผล! แต่ไม่ใช่ในหน้าเพจของบริษัทนี้โดยเฉพาะ! ใครมีความคิดว่าทำไม?
จุดสิ้นสุด:
https://api.linkedin.com/v1/companies/10684715/shares
หัวข้อ:
Connection: Keep-Alive,
x-li-format: json,
Authorization: Bearer ****,
Content-Type: application/json,
Content-Length: ****,
โพสต์ข้อมูล:
{
"visibility": "anyone",
"comment": "Your inner world is SO POWERFUL in creating the life that you desire. Awareness of your thoughts and emotions gives you the ability to change them to ones that serve your highest good. #Blisspot #Findyourblisspot
https://www.blisspot.com/albums/photo/view/album_id/220/photo_id/1204/type/creation_date/count/209/category_id/0/title/Recent+Photos/offset/1",
"content": {
"submitted-url": "https://www.blisspot.com/albums/photo/view/album_id/220/photo_id/1204/type/creation_date/count/209/category_id/0/title/Recent+Photos/offset/1",
"title": "",
"description": " "
}
}
การตอบสนอง:
{
"errorCode": 0,
"message": "Internal service error",
"requestId": "F6FH1FP3HI",
"status": 500,
"timestamp": 1516752029921
}