Downloading Word file

Hi,

I have some troubles with downloading my Word file in my app.

During the development of the Word file I did not have trouble downloading the file on my computer, but now that I published it to my app, I get an error that says: Failed to download the file.

Again if I try to download the file on my dev-account (I checked the code, they are exactly the same) I don’t have any troubles downloading the file.

This is frustrating, because I do not understand what is going wrong. The file is 1.017kB.

Can someone help me with this problem?

Code:

        template_path = Path(__file__).parent / 'WordFormat.docx'
        components = components_word(params)
        with open(template_path, 'rb') as template:
            word_file = render_word_file(template, components)

        return DownloadResult(word_file, file_name="WordFormat1.docx")

Pinpointed this to an error somewhere in the app-logic