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

[Bug]: Error thrown when not connected to the internet #4580

Closed
kratman opened this issue Nov 12, 2024 · 1 comment · Fixed by #4581
Closed

[Bug]: Error thrown when not connected to the internet #4580

kratman opened this issue Nov 12, 2024 · 1 comment · Fixed by #4581
Assignees
Labels
bug Something isn't working

Comments

@kratman
Copy link
Contributor

kratman commented Nov 12, 2024

PyBaMM Version

develop

Python Version

all

Describe the bug

Due to the telemetry the following error is thrown when users are not connected to the internet:

error uploading: HTTPSConnectionPool(host='us.i.posthog.com', port=443): Max retries exceeded with url: /batch/ (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x15e8bfce0>: Failed to resolve 'us.i.posthog.com' ([Errno 8] nodename nor servname provided, or not known)"))

Steps to Reproduce

This can be re-produced by just disabling your internet connection when first importing PyBaMM with telemetry enabled.

@kratman kratman added the bug Something isn't working label Nov 12, 2024
@kratman kratman self-assigned this Nov 12, 2024
@kratman
Copy link
Contributor Author

kratman commented Nov 12, 2024

This should be a quick fix. I will upload something in an hour or so

@kratman kratman mentioned this issue Nov 12, 2024
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant