cancel
Showing results for 
Search instead for 
Did you mean: 

Webhook unable to view/delete subscription

Bready
Mt. Kenya

Hi, I am not sure if this is the right place to ask this but I will just go ahead:

I am trying to set up a webhook to strava and followed this guide. I think I made a mistake when sending the request to the push_subscriptions endpoint and did not save the response from it. Now I would like to delete the subscription as described in this article.

Because I did not save the response from the first request I do not know my subscription ID. To retrieve this ID I tried to make a GET request to the push_subscriptions endpoint and view the subscription, as described in the article aswell. This however does not work and returns this errror:

error403.png

The request I sent to receive this errror was the following (in Python):

view_sub.png

When trying to just subscribe again, I just get the error that a subscription already exists, so I do want to delete it or at least be able to view it.

I would really appreciate some help with this issue, and sorry if there is a better place to ask these kind of questions.

Kindest Regards,

Patrick

1 ACCEPTED SOLUTION

ActivityFix
Kilimanjaro

Have you tried with cURL directly? I just tried with my site and it worked exactly as expected. For the client id and secret you can grab them from https://www.strava.com/settings/api

%> curl -G https://www.strava.com/api/v3/push_subscriptions -d client_id=<YOUR_ID_HERE> -d client_secret=<YOUR_SECRET_HERE>

Note: If you're using Windows, use powershell and run curl.exe (don't just use plain curl, it's a wrapper around Invoke-WebRequest)

View solution in original post

3 REPLIES 3

ActivityFix
Kilimanjaro

Have you tried with cURL directly? I just tried with my site and it worked exactly as expected. For the client id and secret you can grab them from https://www.strava.com/settings/api

%> curl -G https://www.strava.com/api/v3/push_subscriptions -d client_id=<YOUR_ID_HERE> -d client_secret=<YOUR_SECRET_HERE>

Note: If you're using Windows, use powershell and run curl.exe (don't just use plain curl, it's a wrapper around Invoke-WebRequest)

benjrou
Shkhara

I have the same problem

I also have that problem...any news here?
Direct curl like the one from the documentation with the righ client_id and client_secret does not work either