question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Errno 101] Network is unreachable

See original GitHub issue
scope = ['https://spreadsheets.google.com/feeds']
creds = ServiceAccountCredentials.from_json_keyfile_name('NFL Redraft-e021dc0d5969.json', scope)
client = gspread.authorize(creds)

This code is working well on my local machine, but it is failing on PythonAnywhere with OSError: [Errno 101] Network is unreachable

Image with Full Error Trace

Any idea how to resolve?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
burnashcommented, Apr 19, 2018

I’m closing this issue due to inactivity. Feel free to reopen it if you have an update.

5reactions
burnashcommented, Mar 13, 2020

To clarify this: as the title of the error says, the network is unreachable and it means that there is a problem with the connection to the Internet – probably due to network or proxy settings.

Depending on your operating system you may use different methods to troubleshoot network connection:

  1. Linux
  2. macOS
  3. Windows

If you’re using Proxy, try debugging the network proxy.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"[Errno 101] Network is unreachable" when trying to send ...
For some reason I am getting this error when trying to send an email (with gmail) using Django. [Errno 101] Network is unreachable....
Read more >
How do I fix a [Errno 101] Network is unreachable error?
OSError: [Errno 101] Network is unreachable. This is the command I'm using: gcloud compute start-iap-tunnel --project=[redacted] ...
Read more >
OSError: [Errno 101] Network is unreachable : Forums
The HTML that you are converting to a PDF is accessing resources from places that are not on the whitelist, so the conversion...
Read more >
OSError: [Errno 101] Network is unreachable
ping is working fine for me there is no packet loss. It looks like your DNS lookup is being provided by your router...
Read more >
OSError at /password-reset/ [Errno 101] Network is unreachable
Hi All, I am encountering difficulty when trying to add password reset email generation functionality to my Django Blog.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found