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

Timeout when connecting to API #32

Closed
alanhamlett opened this issue Nov 7, 2017 · 4 comments
Closed

Timeout when connecting to API #32

alanhamlett opened this issue Nov 7, 2017 · 4 comments

Comments

@alanhamlett
Copy link
Member

@whiteviel commented 5 hours ago:

experiencing the same error error log from extension

{
  "now": "2017/11/07 13:58:09 +0300",
  "version": "9.0.0",
  "plugin": "vscode/1.17.2 vscode-wakatime/1.1.21",
  "time": 1510052220.00604,
  "caller": "/Users/******8/.vscode/extensions/WakaTime.vscode-wakatime-1.1.21/out/wakatime-master/wakatime/main.py",
  "lineno": 198,
  "file": "/Users/*******/****/***.py,
  "level": "WARNING",
  "message": "{'traceback': 'Traceback (most recent call last):\\n  File \"/Users/******8/.vscode/extensions/WakaTime.vscode-wakatime-1.1.21/out/wakatime-master/wakatime/main.py\", line 167, in send_heartbeat\\n    verify=not nosslverify)\\n  File \"/Users/******8/.vscode/extensions/WakaTime.vscode-wakatime-1.1.21/out/wakatime-master/wakatime/packages/requests/sessions.py\", line 555, in post\\n    return self.request(\\'POST\\', url, data=data, json=json, **kwargs)\\n  File \"/Users/******8/.vscode/extensions/WakaTime.vscode-wakatime-1.1.21/out/wakatime-master/wakatime/packages/requests/sessions.py\", line 508, in request\\n    resp = self.send(prep, **send_kwargs)\\n  File \"/Users/******8/.vscode/extensions/WakaTime.vscode-wakatime-1.1.21/out/wakatime-master/wakatime/packages/requests/sessions.py\", line 618, in send\\n    r = adapter.send(request, **kwargs)\\n  File \"/Users/******8/.vscode/extensions/WakaTime.vscode-wakatime-1.1.21/out/wakatime-master/wakatime/packages/requests/adapters.py\", line 521, in send\\n    raise ReadTimeout(e, request=request)\\nReadTimeout: HTTPSConnectionPool(host=\\'api.wakatime.com\\', port=443): Read timed out. (read timeout=60)\\n', 'ReadTimeout': u\"HTTPSConnectionPool(host='api.wakatime.com', port=443): Read timed out. (read timeout=60)\"}"
}
@alanhamlett
Copy link
Member Author

This is probably a temporary issue, unless you require a proxy to connect to the internet?

@ghost
Copy link

ghost commented Nov 7, 2017

@alanhamlett I deleted the ~/.wakatime.cfg file and re-added the API key. However, data from yesterday seems to have been lost with the reset.

@alanhamlett
Copy link
Member Author

Offline data should be stored in ~/.wakatime.db, so as long as you haven't deleted that file it should sync up to your dashboard.

@ghost
Copy link

ghost commented Nov 9, 2017

All my data sync up to the dashboard. Thanks for the offline feature.

You could close the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant