Fixed getAccessToken

-Dealt with notice by adding conditional to rate_limit
-commented out error body for now