使用v1linkedin公司的HTTP 500响应共享API [英] HTTP 500 response using v1 linkedin companies shares api

查看:85
本文介绍了使用v1linkedin公司的HTTP 500响应共享API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

已有2天的时间,尝试通过LinkedIn API针对特定公司页面发布内容的操作失败,并显示内部服务错误".奇怪的是,它只发生在该特定公司页面(标识号:10684715)上,而没有我们发布到的任何其他公司页面!该代码在php中.我已经检查了公司页面,看是否有任何有用的信息,什么也找不到.此外,直接将相同的内容发布到LinkedIn上是可行的,但不能通过API.相同的代码和类似的请求以前可以工作.而且,将相同的内容共享到另一个公司页面也可以!但不在此特定公司页面上!有人知道为什么吗?

It's been 2 days that trying to post content through LinkedIn API for a specific company page is failing with "Internal service error". Strangely, it only happens to this specific company page (id: 10684715) not any other company pages we post to! the code is in php. I have checked the company page to see if there is any information that helps and could find nothing. Also, posting the same content directly to LinkedIn works but not through API. Same code and similar requests worked previously. Moreover, sharing same content to another company page works! but not on this specific company page! anyone has any idea why?

端点:

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
}

推荐答案

这似乎是#linkedin API v2的间歇性问题.对于出现500个错误的客户端,当您通过API进行页面搜索时,这些页面甚至显然不存在.

This seems to be an intermittent issue with the #linkedin API v2. For the clients that are getting 500 errors, when you do page searches via the API those pages don't even exist apparently.

但是,如果您通过v1运行相同的搜索,则会出现该搜索,并且您可以使用v1 API进行发布.

But, if you run the same search via v1 it comes up, and you can post using the v1 API.

奇怪的是,几天后它将突然再次开始工作.相同的通话,相同的令牌.

What is strange is that it will suddenly start working again after a few days. Same calls, same tokens.

我已经向他们的开发人员寻求帮助,但他们只是在此处回复.希望他们能够捕获和调试这500个错误.

I have reached out to their developers for help, but they just reply to post here. Let's hope that they are catching and debugging these 500 errors.

但是到目前为止,除了500个错误之外,v2 API中的更改还是非常受欢迎的

But so far the changes in the v2 API are very welcome, apart from the 500 bugs

这篇关于使用v1linkedin公司的HTTP 500响应共享API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆