Skip to content

SuspiciousFileOperation: Storage can not find an available filename for "activity_state/ #487

@MrBillMcDonald

Description

@MrBillMcDonald

I am having an issue with Storyline begin unable to perform a PUT to the State API. I get an HTTP 500 error. See the excerpt from the lrs.log file (below)

It mentions Please make sure that the corresponding file field allows sufficient "max_length".

Will changing "max_length" solve the issue? (If so, how do I do that?)

2019-12-08 19:05:49,302 [ERROR] lrs.views: 500 === /XAPI/activities/state
Traceback (most recent call last):
File "./lrs/views.py", line 214, in handle_request
return processors[path]req_dict['method']
File "./lrs/utils/req_process.py", line 292, in activity_state_put
actstate.put_state(req_dict)
File "./lrs/managers/ActivityStateManager.py", line 119, in put_state
self.save_non_json_state(s, post_state, request_dict)
File "./lrs/managers/ActivityStateManager.py", line 30, in save_non_json_state
s.state.save(fn, state)
File "/home/ubuntu/env/local/lib/python2.7/site-packages/django/db/models/fields/files.py", line 94, in save
self.name = self.storage.save(name, content, max_length=self.field.max_length)
File "/home/ubuntu/env/local/lib/python2.7/site-packages/django/core/files/storage.py", line 53, in save
name = self.get_available_name(name, max_length=max_length)
File "/home/ubuntu/env/local/lib/python2.7/site-packages/django/core/files/storage.py", line 91, in get_available_name
'allows sufficient "max_length".' % name
SuspiciousFileOperation: Storage can not find an available filename for "activity_state/133_https:/d23h0z1ueo5mz5.cloudfront.net/Pesticide+Seller+eLearning+Course_15/story_html5_vxl3WPb.html_21". Please make sure that the corresponding file field allows sufficient "max_length".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions