Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emacs not working but terminal worked #1037

Open
peter159 opened this issue Mar 24, 2024 · 2 comments
Open

emacs not working but terminal worked #1037

peter159 opened this issue Mar 24, 2024 · 2 comments
Labels
bug Something isn't working triage

Comments

@peter159
Copy link

Hi,

I'm using this wakatime-mode, it was good. but when I upgrade a version, it not working in emacs, but working in terminal. some of the snapshot:

the command is essentially:
/usr/bin/zsh -c '~/.wakatime/wakatime-cli --entity /tracked/file/name/xxx.py --plugin "emacs-wakatime/1.0.2" --time 1711266057.48 --write --key waka_aef****'

the log is:
{"caller":"cmd/run.go:341","file":"/tracked/file/name/xxx.py","func":"cmd.runCmd","is_write":true,"level":"error","message":"failed to run command: sending heartbeat(s) failed: failed making request to "[https://api.wakatime.com/api/v1/users/current/heartbeats.bulk](https://api.wakatime.com/api/v1/users/current/heartbeats.bulk%5C)": Post "[https://api.wakatime.com/api/v1/users/current/heartbeats.bulk](https://api.wakatime.com/api/v1/users/current/heartbeats.bulk%5C)": context deadline exceeded (Client.Timeout exceeded while awaiting headers)","now":"2024-03-24T15:54:32+08:00","os/arch":"linux/amd64","plugin":"emacs-wakatime/1.0.2","time":1711266751.88,"version":"v1.90.0"}

same command when I run in WSL2 terminal, it worked and log show working correct

can you help me figure out how is this happening?

@peter159 peter159 added the bug Something isn't working label Mar 24, 2024
@kisaragi-hiu
Copy link
Contributor

It looks like the connection simply timed out, at least from the error log provided.

WakaTime sets a timeout of 120 seconds. The time value 1711266751.88 is 2024-03-24T15:52:31+0800, basically exactly 120 seconds before the log was sent at 2024-03-24T15:54:32+08:00, which checks out.

@peter159
Copy link
Author

It looks like the connection simply timed out, at least from the error log provided.

WakaTime sets a timeout of 120 seconds. The time value 1711266751.88 is 2024-03-24T15:52:31+0800, basically exactly 120 seconds before the log was sent at 2024-03-24T15:54:32+08:00, which checks out.

thanks for feedback, is it related to I used VPN? How set proxy to this wakatine emacs package?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

No branches or pull requests

2 participants