06-18-2024 01:58 AM
Hello,
07-10-2024 01:45 PM
Make sure the verify_token in your request is correct. It seems to be expecting Strava as a value
07-10-2024 09:43 PM
Thank you @Thomas_P I did change verify_token value, and stilI get the same error. Also, the error: GET to callback URL does not return 200. It seems like it is sending the request but not receiving 200, and yet I am not receiving anything from Strava.
07-11-2024 05:14 AM
We cannot help much without the webhook code 😬
Make sure you handle POST requests in it and answer a 200 http code. Because the second screenshot only guarantees GET requests answer 200
07-11-2024 05:35 AM
What do you mean by webhook code? In the second screenshot, it shows a GET request because the documentation states that it will issue a GET request to the callback url. I also tested it with a POST request, and it still works, but once I use same webhook in the first screenshot, nothing is received, just that error.
07-11-2024 05:50 AM
What if you try that way ?
curl --location 'https://www.strava.com/api/v3/push_subscriptions' \
--form 'client_id=""' \
--form 'client_secret=""' \
--form 'callback_url=""' \
--form 'verify_token=""'
07-11-2024 06:50 AM
Thank you @Thomas_P for your help.
I am sorry, but I can't seem to find what is different. It looks identical to what I put in the first screenshot?
07-11-2024 07:05 AM
It looks identical indeed, but I want to be sure Postman isn't doing some dark magic behind the scenes so curl is more transparent.
Eventually be sure your callback url is publicly accessible from outside your local network. It might be the reason why Strava can't reach it
07-11-2024 10:07 AM
I tried with Postman and other alternatives, and the callback URL is public, yet I always get the same error. Thank you, @Thomas_P , for your help. I really appreciate it. Unfortunately, nothing works.
07-11-2024 10:52 AM
Can you share the headers tab of the GET response? It would be useful to confirm that the content type and status are being sent correctly.
Welcome to the Community - here is your guide to help you get started!