• alithom123
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies

I have a managed package and that I can access successfully (through api) from my host  'host1.com' but when I try to access it from my development host 'host2.com' I get the error message:

 

Call to token URL https://login.salesforce.com/services/oauth2/token failed with status 400, response {"error":"invalid_grant","error_description":"expired access/refresh token"

 

I believe my access and refresh tokens are correct as I have copied them over from the working host 'host1.com'.  Can I only access a package from one host?  or am I doing something else wrong?  I have remote access set up for both hosts so that they each have their own consumer key and consumer secret.