Closed bryanlandia closed 2 years ago
I implemented these changes as an at least temporary fix, here: https://github.com/appsembler/xblock-video/tree/appsembler/hotfix/srt-requests-use-localhost
I can make a PR if you want, but not sure what branch.
To reproduce:
/preview/xblock/block-v1:.../handler/srt_to_vtt/?/asset-v1:XXX+type@asset+block@YYY.srt
... will time out after 1 min with a 504 errorThis occurs when browsing directly to Studio port or via Nginx.
It is resolved with the changes in this diff.
Honestly, I'm not really sure why it is a problem. We have an XHR request sent to the
handler_url
for srt_to_vtt, which then makes a Pythonrequests
requests.get
to the same domain.(I suspect that this other change would also need to be made... )
@wowkalucky @z4y4ts