cancel
Showing results for 
Search instead for 
Did you mean: 

Webhook Events API

ben_perard
Mt. Kenya

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.

2 REPLIES 2

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