function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sarvesh shindesarvesh shinde 

Chatter REST API - server returns 403 Forbidden Error.

Hi,

We are calling chatter REST APIs from our site. We are using oauth for authentication purpose. We are working in .NET platform (C sharp). Till last 3 days all gone in right manner. We were getting data from chatter and we were able to post also. We tried posting comment, files, like and unlike. All well.

 

But from last 3-4 days we are getting 403 Forbidden error intermittently. Not getting exactly what is the issue.

While doing work around for this we got some pointers like REST API call limitation per 24 hours

http://www.salesforce.com/us/developer/docs/api/Content/implementation_considerations.htm  but creating new org will also dont help, gives same error.

 

Some Technical details -

The salesforce environment I am using - https://ap1.salesforce.com/

Authorize url - https://login.salesforce.com/services/oauth2/authorize

Access token url - https://login.salesforce.com/services/oauth2/token

 

we get access token and refresh token but when we tries to call any simple API like users/me/groups or chatter/users/me, we get 403.

 

Can any one help us out in where we are going wrong? Is it our coding issue or server down time issue.? If it is coding issue then why it is working intermittently?

 

Thanks,

Sarvesh.

 

 

cloudcodercloudcoder

sounds like you have an error in your resource URI or authentication token. Can you post a code snippet to show me how you are calling the API and also your remote access app config screen.

 

 

ashish raiashish rai

Hi,

 I am also facing the same issue so can you please tell me how you over come with that issue???????? Can you please post the sourse code fore making http request with access token?????????