Skip to main content

Hello guys. We want to connect our swimming app to the Strava API.

Everything is working well, except Webhook Events API. According to the documentation https://developers.strava.com/docs/webhooks/, we need to Create a subscription.

On this step when we make the request:

$ curl -X POST https://www.strava.com/api/v3/push_subscriptions 

-F client_id=XXXXXX

-F client_secret=XXXXXX

-F callback_url=https://api.openswim.fr/api/strava 

-F verify_token=STRAVA

We always get this error:

{

    "message": {

        "errors": [

            {

                  "code": "not verifiable",

                  "field": "callback url",

                  "resource": "PushSubscription"

             }

         ]

    }

}

When we check the Subscription Validation Request, it looks fine.

For example:

https://api.openswim.fr/api/strava?hub.verify_token=STRAVA&hub.challenge=15f7d1a91c1f40f8a748fd134752feb3&hub.mode=subscribe

Response:

{"hub.challenge":"15f7d1a91c1f40f8a748fd134752feb3"}

So, we don’t understand this error, where it comes from and what changes need to be made.

I have another issue with this action. The response  is a html code with following section :

var messages = {
'maintenance': {
'title': "Strava is offline for scheduled maintenance",
'details': "The site's in the shop for a little tune-up."
},
'unavailable': {
'title': "Strava is temporarily unavailable",
'details': "We hit a road block, but our team is working on an alternate route."
}
};


Exactly we are also running into the same issue.

 

{
"message": "Bad Request",
"errors": [
{
"resource": "PushSubscription",
"field": "callback url",
"code": "not verifiable"
}
]
}

 

Callback URL:

 

https://app.amaravatibicyclers.club/api/webhook/strava?hub.verify_token=6ef768b8-486d-11ee-be56-0242ac120002&hub.challenge=15f7d1a91c1f40f8a748fd134752feb3&hub.mode=subscribe

Strava any updates on this ?

 


Your callback_url (https://api.openswim.fr/api/strava) 403's. Strava can't communicate with it so it fails to create the subscription.


or it is possible you are sending the hub.challenge provided in the example instead responding with the one sent in the request?


Resolved, we had an issue with our SSL certificate, when we fixed it, the Strava subscription started working.
SSL certificate problem: unable to get local issuer certificate

Thanks everyone.


Reply