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

storage backends without path access not supported #208

Closed
smcoll opened this issue Aug 8, 2017 · 1 comment · Fixed by #596
Closed

storage backends without path access not supported #208

smcoll opened this issue Aug 8, 2017 · 1 comment · Fixed by #596

Comments

@smcoll
Copy link
Contributor

smcoll commented Aug 8, 2017

If an S3 storage backend, for example, is used as SILKY_STORAGE_CLASS, a NotImplementedError is raised when trying to save the file.

silk.profiling.profiler [ERROR] [profiler:__exit__] Exception when performing meta profiling, dumping trace below
Traceback (most recent call last):
  File "/home/myenv/lib/python3.5/site-packages/silk/middleware.py", line 117, in _process_response
    collector.finalise()
  File "/home/myenv/lib.python3.5/site-packages/silk/collector.py", line 156, in finalise
    with open(self.request.prof_file.storage.path(file_name), 'w+b') as f:
  File "/home/me/.pyenv/versions/evidencecare3/lib/python3.5/site-packages/django/core/files/storage.py", line 111, in path
    raise NotImplementedError("This backend doesn't support absolute paths.")
NotImplementedError: This backend doesn't support absolute paths.
@vladox
Copy link

vladox commented Jun 1, 2020

How did you solve this 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
2 participants