Skip to main content
Answer

Getting "Internal Server Error" when doing upload

  • March 7, 2023
  • 5 replies
  • 325 views

Forum|alt.badge.img+1

Hi,

I'm trying to upload activities to Strava. I've made sure the user I'm doing it with has the right permissions (`activity:write`). When I perform the uploaded, using a gzipped tcx file as content, I get a 500 Internal Server from the Strava API.

The body just contains:

500 Internal Server Error
If you are the administrator of this website, then please read this web application's log file and/or the web server's log file to find out what went wrong.

Has anybody seen this before (and been able to fix it)?

Cheers,

Ilja

Best answer by PhilippHofmann

I think I know now the solution. The user have to grant access to "health data" in the Strava-Settings under "Data access". Else you can upload files with heart rate data.

5 replies

ibooij
Forum|alt.badge.img+8
  • Hub Rookie
  • March 12, 2023

Well, there's a change now, instead of the NGINX HTML page that says "Internal server error" I now get a JSON object with the same message, without any other information. Not really helpful and pretty frustrating.


Forum|alt.badge.img+5

I had the same problem with one user also today. Did you found explanation or even a solution for this error?


ibooij
Forum|alt.badge.img+8
  • Hub Rookie
  • August 31, 2023

No, it mostly works and then sometimes it doesn't. Best to retry if you get this error.


Forum|alt.badge.img+5
  • Hub Climber
  • Answer
  • August 31, 2023

I think I know now the solution. The user have to grant access to "health data" in the Strava-Settings under "Data access". Else you can upload files with heart rate data.


Forum|alt.badge.img
  • Hub Starter
  • December 8, 2024
{"code":"cant-connect","message":"Error finding the user","data":{"status":500}} why is that?