为什么Yammer给出“(500)内部服务器错误。” ? [英] Why Yammer is giving "(500) Internal Server Error." ?

查看:73
本文介绍了为什么Yammer给出“(500)内部服务器错误。” ?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何想法在发布消息时,Yammer都在抛出远程服务器返回错误:(500)内部服务器错误。错误。并且未发布消息。任何帮助..?



我正在使用Yammer .NET包装器,它可以正常使用REST调用https://www.yammer.com/api/v1 /messages.json,但发布消息会出现上述错误。有没有这方面的解决方法或经验?谢谢。



Any idea why while posting messages, Yammer is throwing "The remote server returned an error: (500) Internal Server Error." error. and the message is not posted. Any help..?

I'm using Yammer .NET wrapper and it's working fine with REST call "https://www.yammer.com/api/v1/messages.json", but posting message gives the above error. Any workarounds or experience on this?, thanks.

 String consumerkey = "consumerkey";
        String clientsecret = "clientsecret";
        WebProxy webpro = new WebProxy("ourproxyserver",8080)
        webpro.BypassProxyOnLocal = true;
        webpro.Credentials = CredentialCache.DefaultCredentials;
        String access_token = "https://www.yammer.com/oauth2/access_token.json"+
            "?client_id=clientid&"+
            "client_secret=cli_secret&code=code_id";

        Yammer.Session session = new Yammer.Session(new OAuth.OAuthKey(consumerkey, clientsecret,
            access_token,"token")
            , webpro);

            NameValueCollection parameters = new NameValueCollection();
            parameters.Add("body", body);

response = Yammer.HttpUtility.Post(Resources.YAMMER_MESSAGES_CREATE, parameters, session);

推荐答案

尝试通过添加一个参数'group_id'
try by adding one more parameter 'group_id'


这篇关于为什么Yammer给出“(500)内部服务器错误。” ?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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