wakatime / jetbrains-wakatime

IntelliJ IDEA, PyCharm, RubyMine, PhpStorm, AppCode, AndroidStudio, Goland, Rider, & WebStorm plugin for quantifying your coding.
https://wakatime.com/intellij-idea
BSD 3-Clause "New" or "Revised" License
1.14k stars 168 forks source link

Error: sending heartbeat(s) failed: rate limited #253

Closed CornWorld closed 1 year ago

CornWorld commented 1 year ago

Worked many, but in vain: the dashborad shows No stats received yet.

I have disabled the proxy for *.wakatime.com in the IDE, and ensured it could visit api.wakatime.com via curl and edge broswer.

Here is the debug log

{"caller":"cmd/run.go:98","func":"cmd.Run","level":"debug","message":"command: today","now":"2023-04-09T11:58:15+08:00","os/arch":"windows/amd64","version":"v1.70.1"}
{"caller":"cmd/today/today.go:30","func":"today.Run","level":"debug","message":"successfully fetched today for status bar","now":"2023-04-09T11:58:18+08:00","os/arch":"windows/amd64","version":"v1.70.1"}
{"caller":"cmd/run.go:116","func":"cmd.Run","level":"debug","message":"command: heartbeat","now":"2023-04-09T11:58:40+08:00","os/arch":"windows/amd64","version":"v1.70.1"}
{"caller":"cmd/heartbeat/heartbeat.go:76","file":"E:/slareneg/packages/server/main.go","func":"heartbeat.SendHeartbeats","level":"debug","message":"params: api params: (api key: '<hidden>e7e3', api url: 'https://api.wakatime.com/api/v1', backoff at: '2023-04-09T11:52:41+08:00', backoff retries: 5, hostname: 'UNGINE-DEV-CORNWORLD', key patterns: '[]', plugin: 'GoLand/2022.3.4 GoLand-wakatime/14.1.4', proxy url: '', timeout: 2m0s, disable ssl verify: false, ssl cert filepath: ''), heartbeat params: (category: 'coding', cursor position: '', entity: 'E:/slareneg/packages/server/main.go', entity type: 'file', num extra heartbeats: 2, is unsaved entity: false, is write: false, language: '', line number: '', lines in file: '52', time: 1681012708.39200, filter params: (exclude: '[]', exclude unknown project: false, include: '[]', include only with project file: false), project params: (alternate: 'server', branch alternate: '', map patterns: '[]', override: '', git submodules disabled: '[]', git submodule project map: '[]'), sanitize params: (hide branch names: '[]', hide project folder: false, hide file names: '[]', hide project names: '[]', project path override: '')), offline params: (disabled: false, print max: 10, queue file: '', num sync max: 1000), status bar params: (hide categories: false, output: 'text')","now":"2023-04-09T11:58:40+08:00","os/arch":"windows/amd64","plugin":"GoLand/2022.3.4 GoLand-wakatime/14.1.4","time":1681012708.392,"version":"v1.70.1"}
{"caller":"cmd/heartbeat/heartbeat.go:198","file":"E:/slareneg/packages/server/main.go","func":"heartbeat.buildHeartbeats","level":"debug","message":"include 2 extra heartbeat(s) from stdin","now":"2023-04-09T11:58:40+08:00","os/arch":"windows/amd64","plugin":"GoLand/2022.3.4 GoLand-wakatime/14.1.4","time":1681012708.392,"version":"v1.70.1"}
{"caller":"pkg/heartbeat/format.go:18","file":"E:/slareneg/packages/server/main.go","func":"heartbeat.WithFormatting","level":"debug","message":"execute heartbeat filepath formatting","now":"2023-04-09T11:58:40+08:00","os/arch":"windows/amd64","plugin":"GoLand/2022.3.4 GoLand-wakatime/14.1.4","time":1681012708.392,"version":"v1.70.1"}
{"caller":"pkg/heartbeat/entity_modify.go:15","file":"E:/slareneg/packages/server/main.go","func":"heartbeat.WithEntityModifer","level":"debug","message":"execute heartbeat entity modifier","now":"2023-04-09T11:58:40+08:00","os/arch":"windows/amd64","plugin":"GoLand/2022.3.4 GoLand-wakatime/14.1.4","time":1681012708.392,"version":"v1.70.1"}
{"caller":"pkg/filter/filter.go:26","file":"E:/slareneg/packages/server/main.go","func":"filter.WithFiltering","level":"debug","message":"execute heartbeat filtering","now":"2023-04-09T11:58:40+08:00","os/arch":"windows/amd64","plugin":"GoLand/2022.3.4 GoLand-wakatime/14.1.4","time":1681012708.392,"version":"v1.70.1"}
{"caller":"pkg/remote/remote.go:49","file":"E:/slareneg/packages/server/main.go","func":"remote.WithDetection","level":"debug","message":"execute remote file detection","now":"2023-04-09T11:58:40+08:00","os/arch":"windows/amd64","plugin":"GoLand/2022.3.4 GoLand-wakatime/14.1.4","time":1681012708.392,"version":"v1.70.1"}
{"caller":"pkg/apikey/apikey.go:31","file":"E:/slareneg/packages/server/main.go","func":"apikey.WithReplacing","level":"debug","message":"execute api key replacing","now":"2023-04-09T11:58:40+08:00","os/arch":"windows/amd64","plugin":"GoLand/2022.3.4 GoLand-wakatime/14.1.4","time":1681012708.392,"version":"v1.70.1"}
{"caller":"pkg/filestats/filestats.go:23","file":"E:/slareneg/packages/server/main.go","func":"filestats.WithDetection","level":"debug","message":"execute filestats detection","now":"2023-04-09T11:58:40+08:00","os/arch":"windows/amd64","plugin":"GoLand/2022.3.4 GoLand-wakatime/14.1.4","time":1681012708.392,"version":"v1.70.1"}
{"caller":"pkg/language/language.go:19","file":"E:/slareneg/packages/server/main.go","func":"language.WithDetection","level":"debug","message":"execute language detection","now":"2023-04-09T11:58:40+08:00","os/arch":"windows/amd64","plugin":"GoLand/2022.3.4 GoLand-wakatime/14.1.4","time":1681012708.392,"version":"v1.70.1"}
{"caller":"pkg/deps/deps.go:38","file":"E:/slareneg/packages/server/main.go","func":"deps.WithDetection","level":"debug","message":"execute dependency detection","now":"2023-04-09T11:58:40+08:00","os/arch":"windows/amd64","plugin":"GoLand/2022.3.4 GoLand-wakatime/14.1.4","time":1681012708.392,"version":"v1.70.1"}
{"caller":"pkg/project/project.go:143","file":"E:/slareneg/packages/server/main.go","func":"project.WithDetection","level":"debug","message":"execute project detection for: E:/slareneg/packages/server/main.go","now":"2023-04-09T11:58:41+08:00","os/arch":"windows/amd64","plugin":"GoLand/2022.3.4 GoLand-wakatime/14.1.4","time":1681012708.392,"version":"v1.70.1"}
{"caller":"pkg/project/project.go:243","file":"E:/slareneg/packages/server/main.go","func":"project.Detect","level":"debug","message":"execute project-file-detector","now":"2023-04-09T11:58:41+08:00","os/arch":"windows/amd64","plugin":"GoLand/2022.3.4 GoLand-wakatime/14.1.4","time":1681012708.392,"version":"v1.70.1"}
{"caller":"pkg/project/project.go:243","file":"E:/slareneg/packages/server/main.go","func":"project.Detect","level":"debug","message":"execute project-map-detector","now":"2023-04-09T11:58:41+08:00","os/arch":"windows/amd64","plugin":"GoLand/2022.3.4 GoLand-wakatime/14.1.4","time":1681012708.392,"version":"v1.70.1"}
{"caller":"pkg/project/project.go:290","file":"E:/slareneg/packages/server/main.go","func":"project.DetectWithRevControl","level":"debug","message":"execute git-detector","now":"2023-04-09T11:58:41+08:00","os/arch":"windows/amd64","plugin":"GoLand/2022.3.4 GoLand-wakatime/14.1.4","time":1681012708.392,"version":"v1.70.1"}
{"caller":"pkg/project/project.go:143","file":"E:/slareneg/packages/server/main.go","func":"project.WithDetection","level":"debug","message":"execute project detection for: E:/slareneg/packages/server/main.go","now":"2023-04-09T11:58:41+08:00","os/arch":"windows/amd64","plugin":"GoLand/2022.3.4 GoLand-wakatime/14.1.4","time":1681012708.392,"version":"v1.70.1"}
{"caller":"pkg/project/project.go:243","file":"E:/slareneg/packages/server/main.go","func":"project.Detect","level":"debug","message":"execute project-file-detector","now":"2023-04-09T11:58:41+08:00","os/arch":"windows/amd64","plugin":"GoLand/2022.3.4 GoLand-wakatime/14.1.4","time":1681012708.392,"version":"v1.70.1"}
{"caller":"pkg/project/project.go:243","file":"E:/slareneg/packages/server/main.go","func":"project.Detect","level":"debug","message":"execute project-map-detector","now":"2023-04-09T11:58:41+08:00","os/arch":"windows/amd64","plugin":"GoLand/2022.3.4 GoLand-wakatime/14.1.4","time":1681012708.392,"version":"v1.70.1"}
{"caller":"pkg/project/project.go:290","file":"E:/slareneg/packages/server/main.go","func":"project.DetectWithRevControl","level":"debug","message":"execute git-detector","now":"2023-04-09T11:58:41+08:00","os/arch":"windows/amd64","plugin":"GoLand/2022.3.4 GoLand-wakatime/14.1.4","time":1681012708.392,"version":"v1.70.1"}
{"caller":"pkg/project/project.go:143","file":"E:/slareneg/packages/server/main.go","func":"project.WithDetection","level":"debug","message":"execute project detection for: E:/slareneg/packages/server/main.go","now":"2023-04-09T11:58:41+08:00","os/arch":"windows/amd64","plugin":"GoLand/2022.3.4 GoLand-wakatime/14.1.4","time":1681012708.392,"version":"v1.70.1"}
{"caller":"pkg/project/project.go:243","file":"E:/slareneg/packages/server/main.go","func":"project.Detect","level":"debug","message":"execute project-file-detector","now":"2023-04-09T11:58:41+08:00","os/arch":"windows/amd64","plugin":"GoLand/2022.3.4 GoLand-wakatime/14.1.4","time":1681012708.392,"version":"v1.70.1"}
{"caller":"pkg/project/project.go:243","file":"E:/slareneg/packages/server/main.go","func":"project.Detect","level":"debug","message":"execute project-map-detector","now":"2023-04-09T11:58:41+08:00","os/arch":"windows/amd64","plugin":"GoLand/2022.3.4 GoLand-wakatime/14.1.4","time":1681012708.392,"version":"v1.70.1"}
{"caller":"pkg/project/project.go:290","file":"E:/slareneg/packages/server/main.go","func":"project.DetectWithRevControl","level":"debug","message":"execute git-detector","now":"2023-04-09T11:58:41+08:00","os/arch":"windows/amd64","plugin":"GoLand/2022.3.4 GoLand-wakatime/14.1.4","time":1681012708.392,"version":"v1.70.1"}
{"caller":"pkg/project/filter.go:23","file":"E:/slareneg/packages/server/main.go","func":"project.WithFiltering","level":"debug","message":"execute project filtering","now":"2023-04-09T11:58:41+08:00","os/arch":"windows/amd64","plugin":"GoLand/2022.3.4 GoLand-wakatime/14.1.4","time":1681012708.392,"version":"v1.70.1"}
{"caller":"pkg/heartbeat/sanitize.go:30","file":"E:/slareneg/packages/server/main.go","func":"heartbeat.WithSanitization","level":"debug","message":"execute heartbeat sanitization","now":"2023-04-09T11:58:41+08:00","os/arch":"windows/amd64","plugin":"GoLand/2022.3.4 GoLand-wakatime/14.1.4","time":1681012708.392,"version":"v1.70.1"}
{"caller":"pkg/remote/remote.go:113","file":"E:/slareneg/packages/server/main.go","func":"remote.WithCleanup","level":"debug","message":"execute remote cleanup","now":"2023-04-09T11:58:41+08:00","os/arch":"windows/amd64","plugin":"GoLand/2022.3.4 GoLand-wakatime/14.1.4","time":1681012708.392,"version":"v1.70.1"}
{"caller":"pkg/offline/offline.go:55","file":"E:/slareneg/packages/server/main.go","func":"offline.WithQueue","level":"debug","message":"execute offline queue with file C:\\Users\\Administrator\\.wakatime.bdb","now":"2023-04-09T11:58:41+08:00","os/arch":"windows/amd64","plugin":"GoLand/2022.3.4 GoLand-wakatime/14.1.4","time":1681012708.392,"version":"v1.70.1"}
{"caller":"pkg/backoff/backoff.go:41","file":"E:/slareneg/packages/server/main.go","func":"backoff.WithBackoff","level":"debug","message":"execute heartbeat backoff algorithm","now":"2023-04-09T11:58:41+08:00","os/arch":"windows/amd64","plugin":"GoLand/2022.3.4 GoLand-wakatime/14.1.4","time":1681012708.392,"version":"v1.70.1"}
{"caller":"pkg/backoff/backoff.go:97","file":"E:/slareneg/packages/server/main.go","func":"backoff.shouldBackoff","level":"debug","message":"exponential backoff tried 5 times since Apr  9 11:52:41, will retry at Apr  9 12:00:41","now":"2023-04-09T11:58:41+08:00","os/arch":"windows/amd64","plugin":"GoLand/2022.3.4 GoLand-wakatime/14.1.4","time":1681012708.392,"version":"v1.70.1"}
{"caller":"pkg/offline/offline.go:65","file":"E:/slareneg/packages/server/main.go","func":"offline.WithQueue","level":"debug","message":"pushing 3 heartbeat(s) to queue due to error","now":"2023-04-09T11:58:41+08:00","os/arch":"windows/amd64","plugin":"GoLand/2022.3.4 GoLand-wakatime/14.1.4","time":1681012708.392,"version":"v1.70.1"}
{"caller":"cmd/run.go:292","file":"E:/slareneg/packages/server/main.go","func":"cmd.runCmd","level":"error","message":"failed to run command: sending heartbeat(s) failed: rate limited: won't send heartbeat due to backoff","now":"2023-04-09T11:58:41+08:00","os/arch":"windows/amd64","plugin":"GoLand/2022.3.4 GoLand-wakatime/14.1.4","time":1681012708.392,"version":"v1.70.1"}
CornWorld commented 1 year ago

Oh it works now.