Failed to refresh access token, getting "Unable to connect to the remote server"

760 views
Skip to first unread message

Pravin Yadav

unread,
Apr 20, 2016, 8:46:35 AM4/20/16
to AdWords API Forum

Hi,

     I getting following error when i accessing adwords data.

         Error:-
                   Failed to refresh access token.
                   Unable to connect to the remote server

     i am using a proxy / transparent proxy for network setting then its matter for that if yes then how can i generate access token within proxy setting.

Please reply the same.



Thanks & Regards,

  Pravin Yadav 

Yin Niu

unread,
Apr 20, 2016, 10:01:44 AM4/20/16
to AdWords API Forum
Hi Pravin, 

Are you able to generate token using the OAuth 2.0 playground? If not, then it's probably your networking settings are not correct. 

Thanks,
Yin, AdWords API Team.  

Pravin Yadav

unread,
Apr 21, 2016, 1:25:30 AM4/21/16
to AdWords API Forum

 Hi Yin,

     I have some scenario's are follows...

     Scenario 1      
 
        Yes in OAuth 2.0 playground i can generate refresh token and access token when.....

              Steps:-

                       1.  In OAuth 2.0 playground clicked on select and authorize Api's link and tick Google OAuth2 API v2 sub url's. 

                       2.  In Settings gear button click and unchecked "Use your own OAuth credentials"  check box.

                       3. Then clicked Authorize APIs

         Then getting tokens properly when these tokens i am using that time giving same error.

     Scenario 2
         But when i click on Settings gear button and checked "Use your own OAuth credentials"  check box and then insert OAuth Client ID & OAuth Client secret then getting error(redirect_uri_mismatch) & tokens not              generated in OAuth 2.0 playground for more detail in same scenario please check the attachment.

     Scenario 3

        And also i am trying to generate tokens manually using AdWords APIs OAuthTokenGenerator project even also tokens are not generated.

Please reply the same.



Thanks & Regards,

Pravin Yadav, Jr. Software Developer

   

 
 


TokenGenerationError.png

Yin Niu

unread,
Apr 21, 2016, 10:16:57 AM4/21/16
to AdWords API Forum
Hi Pravin, 

Make sure when you generate client id/secret, you select other for installed applications type. 

Pravin Yadav

unread,
Apr 25, 2016, 1:10:49 AM4/25/16
to AdWords API Forum

 Hi Yin,

         Yes something mismatched in generating Client ID & Client Secret now it's working.

         Thanks for your valuable suggestions.
Reply all
Reply to author
Forward
0 new messages