You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue is that in some cases (how?) students are calling set_key_value with no value param set:
def set_key_value
raise StudentFacingError, "The value is too large. The maximum allowable size is #{DatablockStorageKvp::MAX_VALUE_LENGTH} bytes" if params[:value].length > DatablockStorageKvp::MAX_VALUE_LENGTH
value = JSON.parse params[:value]
DatablockStorageKvp.set_kvp @project_id, params[:key], value
This causes the exception in the raise StudentFacingError line, which checks params[:value].length.
We tried calling set_key_value("key", undefined) (which is a legal value to pass), but this did not trigger the error.
https://app.honeybadger.io/projects/3240/faults/106040647/01HTAX4Z0CE2K3SAQDGZX1H837?q=request.url%3A%22%2Adatablock%2A%22
The text was updated successfully, but these errors were encountered: