nchah / github-traffic-stats

Get statistics on web traffic to your GitHub repositories.
https://pypi.org/project/github-traffic-stats/
121 stars 31 forks source link

"must have push access to repository" #29

Closed thedannymarsh closed 2 years ago

thedannymarsh commented 2 years ago

I am trying to get traffic info for a repository I manage, and decided to test the code on one of my own repos first. I am trying to run via: gts dmarshall_bing dad_jokes

I get the following message:

(base) C:\Users\dpm42>gts dmarshall-bing dad_jokes
Password:
Must have push access to repository
Code done.

This is regardless of whether I enter the correct or incorrect password for my account. Is there something wrong with my syntax? I looked into the code and the server is returning a 403 error from the request call.

Thanks!

thedannymarsh commented 2 years ago

It looks like using a token works instead.