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.

'content-location' error

See original GitHub issue

I’m getting an error quite often when using the CLI. Can see the live logs here: https://jlc.ninja/canarybot.txt

Traceback (most recent call last):
  File "/usr/local/bin/savepagenow", line 11, in <module>
    sys.exit(cli())
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/savepagenow/api.py", line 117, in cli
    archive_url = capture(url, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/savepagenow/api.py", line 43, in capture
    archive_id = response.headers['Content-Location']
  File "/usr/local/lib/python2.7/dist-packages/requests-2.18.4-py2.7.egg/requests/structures.py", line 54, in __getitem__
    return self._store[key.lower()][1]
KeyError: 'content-location'

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
victoriatomzikcommented, Apr 13, 2020
1reaction
palewirecommented, Nov 25, 2018

Okay. Version 0.0.11 is shipped to PyPI. Give that a try. It wouldn’t surprise me if you still get an error, but I hope it will be a more informative one.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Retry a Content Search to resolve a content location error
During an investigation, you can use the Retry button to resolve Content Searches that have content location errors.
Read more >
Content-Location - HTTP - MDN Web Docs - Mozilla
Location indicates the URL of a redirect, while Content-Location indicates the direct URL to use to access the resource, without further content ......
Read more >
'content-location' error · Issue #8 · palewire/savepagenow
I'm getting an error quite often when using the CLI. Can see the live logs here: https://jlc.ninja/canarybot.txt Traceback (most recent call ...
Read more >
lettre::message::header::ContentLocation - Rust - Docs.rs
API documentation for the Rust `ContentLocation` struct in crate `lettre`. ... or the allocator reports a failure, then an error is returned.
Read more >
How to fix: TypeError: Invalid character in header content ...
... fix: TypeError: Invalid character in header content ["Location"] ... When I use normal characters on username and write wrong password, ...
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