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

Student replay saving issue #417

Open
syuChen1 opened this issue May 21, 2022 · 0 comments
Open

Student replay saving issue #417

syuChen1 opened this issue May 21, 2022 · 0 comments

Comments

@syuChen1
Copy link
Member

syuChen1 commented May 21, 2022

Right now we are saving student replay by saving an array of objects that contain the workspace XML text for every action in a session. When the session is long, it may create a request too large for Strapi to handle. Heroku will throw an H18 error when this happened. The request will be killed and the client will be left hanging for 30 seconds.

My temporary resolution is to increase the JSON limit in Strapi to 10MB #406 (https://forum.strapi.io/t/unable-to-post-content-to-strapi-which-is-more-than-1-mb-in-size/4895)

However, a more suitable fix will be to only save action (eg. move x block from x,y to x1,y1) instead of the whole canvas. Need to look closer into Blockly Library and find a way to extract the event and reapply it in the researcher's view.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant