locked
startOrRefreshSubscriptionToContactsAndGroups resource not found RRS feed

  • Question

  • I'm trying use startOrRefreshSubscriptionToContactsAndGroups to subscribe group and contact. but returned 404 not found

    my request is follows

    POST /ucwa/oauth/v1/applications/10717687715/people/contactsAndGroupsSubscription/startOrRefreshSubscriptionToContactsAndGroups?duration=5 HTTP/1.1
    Accept: application/json
    Content-Type: application/json
    Authorization: Bearer cwt=AAEBHAEFAAAAAAAFFQAAAEkGF-u47W8JP3F9Mr4EAACBECIUdTgkJe5XmKiiwkYlb4CCAgl6gyB7-7pvcoM9o--79-yAHtQsjireA1i3AxPGRfhCRnL8RIYIHKcAjg4l0AgNEJ1wF4e3XJxRoYe8KaGlnp8
    X-Ms-Origin: http://webim.*.*.net
    X-Requested-With: XMLHttpRequest
    Referer: https://webint.*.*.com/Autodiscover/XFrame/XFrame.html
    Accept-Language: ko-KR
    Accept-Encoding: gzip, deflate
    User-Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0)
    Host: webint.*.*.com
    Content-Length: 10
    Connection: Keep-Alive
    Cache-Control: no-cache

    Wednesday, May 22, 2013 6:51 AM

Answers

  • I attempted to replicate what you were seeing and came up with the following trace: startOrRefresh Sub.saz

    In the first request I chose a duration on 5 and received an error, but changing it to 10 resulted in successful response.  After looking up the documentation (Resources-startOrRefreshSubscriptionToContactsAndGroups), I found that the minimum duration value is 10.  See if changing that value results in a better response.


    Tuesday, May 28, 2013 8:58 PM

All replies

  • It looks like you are including the duration query string parameter in your request and have a Content-Length (of 10).  You should retry the request with just the query string parameter or just the request body and I believe it should work.
    Wednesday, May 22, 2013 12:13 PM
  • I just put duration query string, but got same response.

    Request

    POST https://webint.*.com/ucwa/oauth/v1/applications/101294281914/people/contactsAndGroupsSubscription/startOrRefreshSubscriptionToContactsAndGroups?duration=5 HTTP/1.1
    Authorization: Bearer cwt=AAEBHAEFAAAAAAAFFQAAAEkGF-u47W8JP3F9Mr4EAACBECIUdTgkJe5XmKiiwkYlb4CCAnw3gyAiXq7kUB4l-BktJCXYkCLBHwEdUziZS7dhstzf0aJHW4YIIZ3lEKkl0AgNEJ1wF4e3XJxRoYe8KaGlnp8
    Accept: application/json
    X-Ms-Origin: http://webim.*.net
    X-Requested-With: XMLHttpRequest
    Referer: https://webint.*.com/Autodiscover/XFrame/XFrame.html
    Accept-Language: ko-KR
    Accept-Encoding: gzip, deflate
    User-Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0)
    Host: webint.*.com
    Content-Length: 0
    Connection: Keep-Alive
    Cache-Control: no-cache

    Response

    HTTP/1.1 404 Not Found
    Cache-Control: no-cache
    Pragma: no-cache
    Via: 1.1 *.com RtcInt
    Content-Length: 78
    Content-Type: application/json
    Expires: -1
    Server: Microsoft-IIS/8.0
    X-MS-Server-Fqdn: *.com
    X-AspNet-Version: 4.0.30319
    X-Powered-By: ASP.NET
    Date: Thu, 23 May 2013 01:14:40 GMT

    {"code":"NotFound","message":"요청된 리소스를 찾지 못했습니다."}


    • Edited by GS Ryu Thursday, May 23, 2013 1:20 AM
    Thursday, May 23, 2013 1:19 AM
  • I attempted to replicate what you were seeing and came up with the following trace: startOrRefresh Sub.saz

    In the first request I chose a duration on 5 and received an error, but changing it to 10 resulted in successful response.  After looking up the documentation (Resources-startOrRefreshSubscriptionToContactsAndGroups), I found that the minimum duration value is 10.  See if changing that value results in a better response.


    Tuesday, May 28, 2013 8:58 PM