tapiriik
tapiriik copied to clipboard
500 error when trying to deauthorize Strava
I'm getting the same silent error in the console as in #438 for Runkeeper, but for Strava.
I have deleted my Strava account, and it seems it somehow blocks the sync of Endomondo to Dropbox.
Same situation for me - I deleted Strava before disconnecting, and now get a 500 when trying to disconnect. Endomondo won't sync to Dropbox, I'm wondering if the source of this is why. I tried to re-create and re-authorize Strava, but the return URL on Tapiriik also gives an HTTP500 (https://tapiriik.com/auth/return/strava?state=&code=XXXX&scope=read,activity:write,activity:read_all)
Request
POST /auth/disconnect-ajax/strava HTTP/1.1
Accept: */*
Host: tapiriik.com
Accept-Language: en-ca
Accept-Encoding: br, gzip, deflate
Origin: https://tapiriik.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15
Connection: keep-alive
Referer: https://tapiriik.com/
Content-Length: 0
Cookie: csrftoken=XXXX; sessionid=XXXX
X-Requested-With: XMLHttpRequest
X-CSRFToken: XXXX
Response
HTTP/1.1 500 INTERNAL SERVER ERROR
Date: Sat, 18 May 2019 15:51:41 GMT
Transfer-Encoding: Identity
Content-Type: text/html
Vary: Cookie
Connection: keep-alive
Server: nginx
Console
https://tapiriik.com/auth/disconnect-ajax/stravaFailed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
parse — jquery.min.js:2:13525SyntaxError: JSON Parse error: Unrecognized token '<'`
Same here. This is my cURL copy from the network inspector. 500 error causes it to throw.
curl 'https://tapiriik.com/auth/disconnect-ajax/strava' \
-X 'POST' \
-H 'Accept: */*' \
-H 'Accept-Language: en-US,en;q=0.9' \
-H 'Connection: keep-alive' \
-H 'Content-Length: 0' \
-H 'Cookie: csrftoken=xxx; sessionid=xxx;' \
-H 'Origin: https://tapiriik.com' \
-H 'Referer: https://tapiriik.com/' \
-H 'Sec-Fetch-Dest: empty' \
-H 'Sec-Fetch-Mode: cors' \
-H 'Sec-Fetch-Site: same-origin' \
-H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36 Edg/112.0.1722.58' \
-H 'X-CSRFToken: xxx' \
-H 'X-Requested-With: XMLHttpRequest' \
-H 'sec-ch-ua: "Chromium";v="112", "Microsoft Edge";v="112", "Not:A-Brand";v="99"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'sec-ch-ua-platform: "Windows"' \
--compressed
This is a cURL command that sends a POST request to https://tapiriik.com/ over the HTTPS protocol. The purpose of the request is to disconnect the user's Strava account from tapiriik.com website.
The 500 error indicates that there was an internal error on the server, causing the request to fail. This error can be caused by a variety of factors such as server-side errors, connection issues, server overload due to high traffic, and more.
Since this error indicates a server-side issue, there isn't much that the requester can do. However, the requester can try resending the request in case it was caused by a temporary server issue.
I hope this explanation helps!