Getting S_412_PRECONDITION_FAILED = Linkedin共享API中的无效参数错误 [英] Getting S_412_PRECONDITION_FAILED=Invalid arguments error in Linkedin share api

查看:125
本文介绍了Getting S_412_PRECONDITION_FAILED = Linkedin共享API中的无效参数错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当尝试使用linkedin api中的链接更新状态时,我经常收到此错误.

When try to update status with link in linkedin api i'm getting this error frequently.

示例链接: http://www.world-grain. com/articles/news_home/World_Grain_News/2016/06/General_Mills_files_patent_on.aspx?ID = {30B4213B-4E10-4AF6-9B56-0D5614D7AFD3}& cck = 1

Example Link: http://www.world-grain.com/articles/news_home/World_Grain_News/2016/06/General_Mills_files_patent_on.aspx?ID={30B4213B-4E10-4AF6-9B56-0D5614D7AFD3}&cck=1

如果我从链接中删除了{和},它将被发布.即使在Linkedin网站本身,它也不起作用.

If i remove the { and } from the link it get posted. Even in linkedin site itself its not working.

如果有人知道原因,请帮助我.

Help me if anyone know the reason.

推荐答案

您可能需要对链接中的花括号进行URL编码:

You may need to URL encode the braces in your link:

http://www.world-grain.com/articles/news_home/World_Grain_News/2016/06/General_Mills_files_patent_on.aspx?ID%3D%7B30B4213B-4E10-4AF6-9B56-0D5614D7AFD3%7D&cck=1

当我尝试传递带有空格的URL时,我遇到了相同的错误.在对空格(%20)进行URL编码之后,它成功发布.

I ran into the same error when I attempted to pass a URL with spaces. It published successfully after URL encoding the spaces (%20).

这篇关于Getting S_412_PRECONDITION_FAILED = Linkedin共享API中的无效参数错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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