PHP Classes

Conection refused

Recommend this page to a friend!

      PHP OAuth Library  >  PHP OAuth Library package blog  >  How to Implement a PH...  >  All threads  >  Conection refused  >  (Un) Subscribe thread alerts  
Subject:Conection refused
Summary:I got an error 111 when trying to get Polar token
Messages:6
Author:Camille Gallet
Date:2021-02-12 13:22:16
 

  1. Conection refused   Reply   Report abuse  
Picture of Camille Gallet Camille Gallet - 2021-02-12 13:22:16
Hello there,
I'm trying to do an Oauth with Polar. When I do it on my computer everything works well. But when I log on our company’s website, I've this message:

it was not possible to open the OAuth access token URL: 111 could not connect to the host "polarremote.com"

And here is what I've written in the Json
"Polar":
{
"oauth_version": "2.0",
"dialog_url": "https://flow.polar.com/oauth2/authorization?response_type=code&scope={SCOPE}&client_id={CLIENT_ID}&redirect_uri={REDIRECT_URI}&state={STATE}",
"access_token_url": "https://polarremote.com/v2/oauth2/token",
"access_token_authentication": "basic",
"store_access_token_response": true
},

Does someone have an idea about the origin of the problem (and also is this rather an issue on our side or rather on the Polar side)

Greetings

Camille

  2. Re: Conection refused   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2021-02-12 17:25:08 - In reply to message 1 from Camille Gallet
Hello Camille,

That means that for some reason the Polar Server may be refusing the connection. The cause may be a temporary network problem or some other block on your company Web site server.

Can you try again in a few days?

If it still fails, you need to ask the people responsible for the hosting of your Web site server if there is any kind of block in the server network that prevents PHP scripts to connect to remote servers like the one from Polar.

  3. Re: Conection refused   Reply   Report abuse  
Picture of Camille Gallet Camille Gallet - 2021-02-12 18:32:21 - In reply to message 2 from Manuel Lemos
Thanks for your reply Manuel, this is strange because we have successfully implemented Oauth for Garmin (and also Decathlon). Is there is something specific with Polar servers (in PHP Oauth lib) which can cause this issue?

  4. Re: Conection refused   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2021-02-13 01:40:02 - In reply to message 3 from Camille Gallet
The only thing that is different is the URLs of the OAuth server of Polar that the class may need to access.

Are you able to share the URL of a site on which you have installed the package to access the Polar API so I can test it and check if I can find anything that may need to be fixed?

  5. Re: Conection refused   Reply   Report abuse  
Picture of Camille Gallet Camille Gallet - 2021-02-15 17:27:18 - In reply to message 4 from Manuel Lemos
Problem solved, he company which manages our servers blocked polarremote.com

  6. Re: Conection refused   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2021-02-16 03:12:37 - In reply to message 5 from Camille Gallet
Good to know. Thank you for the update.