Streams help

419 views
Skip to first unread message

Stuart Frew

unread,
Dec 10, 2017, 2:41:09 PM12/10/17
to Strava API
Hi,

I'm having difficulty getting a GET request to work for streams. Must be doing something wrong that will be obvious to more experienced people.


Everytime I hit this URL i get this message:-

{"message":"Authorization Error","errors":[{"resource":"Application","field":"","code":"invalid"}]}

Any ideas ?

Thanks
Stuart

Terry Jones

unread,
Dec 10, 2017, 4:20:39 PM12/10/17
to Stuart Frew, Strava API
Why do you have key_by_type=true/  with a slash at the end of it?  I'd definitely try it without (the error message may be wrong / misleading). And you have a second ? in the URL. That should be an ampersand, no?

Terry


--
You received this message because you are subscribed to the Google Groups "Strava API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to strava-api+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Stuart Frew

unread,
Dec 11, 2017, 2:43:17 PM12/11/17
to Strava API
Hi Terry,

I'm a newb thats why I have a slash at the end of it :) 

I tried your suggestion, but it also came up with an error. Albeit a differrent error this time.


{"message":"Authorization Error","errors":[]}

I cant for the life of me where the problem is.

Thanks
Stuart
To unsubscribe from this group and stop receiving emails from it, send an email to strava-api+...@googlegroups.com.

Xdadsd Asdadsa

unread,
Dec 11, 2017, 3:30:37 PM12/11/17
to Strava API
Is there a problem with streams only or does it apply to all requests?

Stuart Frew

unread,
Dec 11, 2017, 3:32:54 PM12/11/17
to Strava API
It's just streams - I got some other activities GET requests working just fine. Streams is being a pain, but I bet its something obvious

Xdadsd Asdadsa

unread,
Dec 11, 2017, 4:18:12 PM12/11/17
to Strava API
I'm getting the same error when I try to get stream of other athlete (but it's ok, as you can only access your own streams).

But while using the same query as above (except activity changed to one of my acivities, and using my token) everything works well and I'm getting stream data.

Are you sure you're using your own access_token ?

Stuart Frew

unread,
Dec 12, 2017, 5:18:12 AM12/12/17
to Strava API
Yep, it was a problem with the key. The last link posted words with the right key.

Thanks so much :)
Reply all
Reply to author
Forward
0 new messages