mujx / hakatime

Wakatime server implementation & analytics dashboard
https://hakatime.mtx-dev.xyz
The Unlicense
610 stars 45 forks source link

i can't get time spent per commit #99

Open lokize opened 5 days ago

lokize commented 5 days ago

Hi guys, I can't use this feature of Hakatime because I have an authorization error. I am using Personal Access Tokens (classic).

2024-06-23 19:24:12  (StatusCodeException (Response {responseStatus = Status {statusCode = 404, statusMessage = "Not Found"}, responseVersion = HTTP/1.1, responseHeaders = [("Server","GitHub.com"),("Date","Sun, 23 Jun 2024 22:25:22 GMT"),("Content-Type","application/json; charset=utf-8"),("Transfer-Encoding","chunked"),("X-GitHub-Media-Type","github.v3"),("x-github-api-version-selected","2022-11-28"),("X-RateLimit-Limit","60"),("X-RateLimit-Remaining","32"),("X-RateLimit-Reset","1719182604"),("X-RateLimit-Used","28"),("X-RateLimit-Resource","core"),("Access-Control-Expose-Headers","ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset"),("Access-Control-Allow-Origin","*"),("Strict-Transport-Security","max-age=31536000; includeSubdomains; preload"),("X-Frame-Options","deny"),("X-Content-Type-Options","nosniff"),("X-XSS-Protection","0"),("Referrer-Policy","origin-when-cross-origin, strict-origin-when-cross-origin"),("Content-Security-Policy","default-src 'none'"),("Vary","Accept-Encoding, Accept, X-Requested-With"),("Content-Encoding","gzip"),("X-GitHub-Request-Id","E26B:B8A1E:7796BAF:791B8C3:6678A0D2")], responseBody = (), responseCookieJar = CJ {expose = []}, responseClose' = ResponseClose, responseOriginalRequest = Request {
2024-06-23 19:24:12   host                 = "api.github.com"
2024-06-23 19:24:12   port                 = 443
2024-06-23 19:24:12   secure               = True
2024-06-23 19:24:12   requestHeaders       = [("Authorization","<REDACTED>"),("User-Agent","Hakatime Server"),("Accept","application/json")]
2024-06-23 19:24:12   path                 = "/repos/lokize/myproject/commits"
2024-06-23 19:24:12   queryString          = "?per_page=81"
2024-06-23 19:24:12   method               = "GET"
2024-06-23 19:24:12   proxy                = Nothing
2024-06-23 19:24:12   rawBody              = False
2024-06-23 19:24:12   redirectCount        = 10
2024-06-23 19:24:12   responseTimeout      = ResponseTimeoutDefault
2024-06-23 19:24:12   requestVersion       = HTTP/1.1
2024-06-23 19:24:12   proxySecureMode      = ProxySecureWithConnect
2024-06-23 19:24:12 }
2024-06-23 19:24:12 }) "{\"message\":\"Not Found\",\"documentation_url\":\"https://docs.github.com/rest/commits/commits#list-commits\",\"status\":\"404\"}") 
2024-06-23 19:24:12 172.20.0.1 - - [23/Jun/2024:22:24:12 +0000] "GET /api/v1/commits/myproject/report?repoName=myproject&repoOwner=lokize&user=lokize&limit=80 HTTP/1.1" 500 - "http://localhost:8080/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36"
2024-06-23 19:24:13 172.20.0.1 - - [23/Jun/2024:22:24:12 +0000] "GET /nunito-latin-400italic.831dc305.woff2 HTTP/1.1" 200 - "http://localhost:8080/index.3978c52b.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36"