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:
Response:
{"hub.challenge":"15f7d1a91c1f40f8a748fd134752feb3"}
So, we don’t understand this error, where it comes from and what changes need to be made.