wakatime / vscode-wakatime

Visual Studio Code plugin for automatic time tracking and metrics generated from your programming activity.
https://wakatime.com/vs-code
BSD 3-Clause "New" or "Revised" License
1.25k stars 137 forks source link

Wakatime working offline... coding activity will sync next time we are online #257

Closed wapborhan closed 2 years ago

wapborhan commented 2 years ago

Here Log File...

{"caller":"/home/runner/work/wakatime-cli/wakatime-cli/pkg/backoff/backoff.go:78","func":"shouldBackoff","level":"debug","message":"exponential backoff tried 1 times since Jan 18 20:32:55, will retry at Jan 18 20:33:25","now":"2022-01-19T15:05:01+06:00","version":"v1.35.0"}
{"caller":"/home/runner/work/wakatime-cli/wakatime-cli/pkg/offline/offline.go:62","func":"1","level":"debug","message":"pushing 1 heartbeat(s) to queue due to error","now":"2022-01-19T15:05:01+06:00","version":"v1.35.0"}
{"caller":"/home/runner/work/wakatime-cli/wakatime-cli/cmd/run.go:240","func":"runCmd","level":"error","message":"failed to run command: sending heartbeat(s) later due to api error: won't send heartbeat due to backoff","now":"2022-01-19T15:05:01+06:00","version":"v1.35.0"}
{"caller":"/home/runner/work/wakatime-cli/wakatime-cli/pkg/api/diagnostic.go:28","func":"SendDiagnostics","level":"debug","message":"sending diagnostic data to api at https://api.wakatime.com/api/v1/plugins/errors","now":"2022-01-19T15:05:01+06:00","version":"v1.35.0"}
{"caller":"/home/runner/work/wakatime-cli/wakatime-cli/cmd/run.go:281","func":"sendDiagnostics","level":"debug","message":"successfully sent diagnostics","now":"2022-01-19T15:05:02+06:00","version":"v1.35.0"}

it error only my VS Code Editor. but Brackets code editor still work

wapborhan commented 2 years ago

Problems Solved

I am uninstall Wakatime and Reinstall Again and it's Work

alanhamlett commented 2 years ago

The working offline tooltip message is only an informational message not an error. It just means there was a timeout or other network connection issue when syncing your code stats, but they will eventually sync to your dashboard later.