cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

The Hub is now in read-only mode as we make improvements to the Hub experience. More information is available here.

Webhook Events API

ben_perard
Shkhara

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=15f7d1a91c1f40f8a748fd13475...

Response:

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

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

1 ACCEPTED SOLUTION

ben_perard
Shkhara

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.

View solution in original post

5 REPLIES 5

ben_perard
Shkhara

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.

nsdev
Mt. Kenya

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

nsdev
Mt. Kenya

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

javachap
Mt. Kenya

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 ?

 

sonkt
Mt. Kenya

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."
}
};

Ready, Get Set, Go!

Welcome to the Community - here is your guide to help you get started!


Know how to use Community


Understand Community Settings