Skip to main content
Solved

Webhook Events API


Forum|alt.badge.img+4

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.

Best answer by ben_perard

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 original
Did this topic help you find an answer to your question?

5 replies

Forum|alt.badge.img+1
  • Hub Starter
  • 1 reply
  • July 28, 2023

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


Forum|alt.badge.img
  • Hub Starter
  • 1 reply
  • September 1, 2023

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 ?

 


Forum|alt.badge.img
  • Hub Starter
  • 2 replies
  • November 23, 2023

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


Forum|alt.badge.img
  • Hub Starter
  • 2 replies
  • November 23, 2023

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


Forum|alt.badge.img+4
  • Author
  • Hub Rookie
  • 3 replies
  • Answer
  • December 13, 2023

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept, you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings