Search code examples
ruby-on-railsdatabasedotcom-gem

Databasedotcom::SalesForceError Error The requested resource does not exist


Does any body else here know better why this error occurs?

Databasedotcom::SalesForceError Error The requested resource does not exist /app/vendor/bundle/ruby/1.9.1/bundler/gems/databasedotcom-8666381d50b7/lib/databasedotcom/client.rb:376:in ensure_expected_response' /app/vendor/bundle/ruby/1.9.1/bundler/gems/databasedotcom-8666381d50b7/lib/databasedotcom/client.rb:334:inwith_encoded_path_and_checked_response' /app/vendor/bundle/ruby/1.9.1/bundler/gems/databasedotcom-8666381d50b7/lib/databasedotcom/client.rb:326:in `http_multipart_post'

I searched but Answer 1 and Answer 2 does not help here!


Solution

  • I think it's got to be the issue with stale session in Force.com API.

    In my rails app I login multiple times in SFDC, each time using different user credentials, and authenticate the databasedotcom gem using the Oauth token received.

    I am facing some issues due to this supposed stale sessions: using multiple access tokens with databasedotcom gem

    Need to find a way to invalidate/expire the oauth authentication for one user before trying to authenticate using another user.