Authorization Callback Domain for GHA Fetch Call

16 views
Skip to first unread message

Lawrence Liu

unread,
Jan 11, 2023, 11:53:04 PM1/11/23
to Strava API
I am trying to fetch athlete stats from a node.js script with this api call: https://www.strava.com/api/v3/athletes/{athlete_id}/stats?access_token=${res.access_token} via a github action. 

The access_token is retrieved from an earlier oauth call https://www.strava.com/oauth/token.

When running the github action workflow and calling the stats API, I receive the following error: Error: {"message":"Authorization Error","errors":[{"resource":"Athlete","field":"access_token","code":"invalid"}]}

What's weird is the node.js script works fine when testing locally. Does the Authorization Callback Domain need to be updated to a github domain? I currently have the field set to localhost.

Thank You.
Reply all
Reply to author
Forward
0 new messages