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.12k stars 162 forks source link

net/http: invalid header field value for "X-Machine-Name" #250

Closed aduquehd closed 1 year ago

aduquehd commented 1 year ago

I use two laptops, one of them works perfectly sending code activity to Wakatime. But the other one is not able.

Log details:

{"caller":"cmd/run.go:292","func":"cmd.runCmd","level":"error","message":"failed to run command: today fetch failed: failed fetching today from api: failed to make request to \"https://api.wakatime.com/api/v1/users/current/statusbar/today\": Get \"https://api.wakatime.com/api/v1/users/current/statusbar/today\": net/http: invalid header field value for \"X-Machine-Name\"","now":"2023-03-22T09:13:02-05:00","os/arch":"darwin/arm64","version":"v1.70.0"}
{"caller":"cmd/run.go:292","file":"/Users/andres.duque/Development/Buildertrend/bt-wallet-web-client/src/app/pages/Transactions/Transactions.component.tsx","func":"cmd.runCmd","level":"error","lineno":142,"message":"failed to run command: sending heartbeat(s) failed: api error: failed making request to \"https://api.wakatime.com/api/v1/users/current/heartbeats.bulk\": Post \"https://api.wakatime.com/api/v1/users/current/heartbeats.bulk\": net/http: invalid header field value for \"X-Machine-Name\"","now":"2023-03-22T09:13:38-05:00","os/arch":"darwin/arm64","plugin":"vscode/1.76.1 vscode-wakatime/24.0.7","time":1679494418.799427,"version":"v1.70.0"}
{"caller":"cmd/run.go:292","file":"/Users/andres.duque/Development/Buildertrend/bt-wallet-web-client/src/app/pages/Transactions/Transactions.component.tsx","func":"cmd.runCmd","is_write":true,"level":"error","lineno":130,"message":"failed to run command: sending heartbeat(s) failed: rate limited: won't send heartbeat due to backoff","now":"2023-03-22T09:14:13-05:00","os/arch":"darwin/arm64","plugin":"vscode/1.76.1 vscode-wakatime/24.0.7","time":1679494453.0279932,"version":"v1.70.0"}
{"caller":"cmd/run.go:292","file":"/Users/andres.duque/Development/Buildertrend/bt-wallet-web-client/src/app/pages/Transactions/Transactions.component.tsx","func":"cmd.runCmd","level":"error","lineno":126,"message":"failed to run command: sending heartbeat(s) failed: rate limited: won't send heartbeat due to backoff","now":"2023-03-22T09:16:51-05:00","os/arch":"darwin/arm64","plugin":"vscode/1.76.1 vscode-wakatime/24.0.7","time":1679494611.281213,"version":"v1.70.0"}