Bad Gateway Error when I try to download Excel (legacy)

Hello, Everyone.
I have met an issue when I tried to download my data by using xls(legacy) or csv(legacy).
When I select the export type(xls, xls(legacy), csv, csv(legacy)…), it will always show me “504 Bad Gateway” error, sometimes error code will be “502”.

I have installed kobotoolbox on my own server. For my special usecase, I have deployed my python code on the same server, my code is running on 8888 port. Will it be the reason of my issue?

I will be very happy someone can help me on this issue.
Best Regards. Thanks.

Hi @yongkui,

Would you mind checking by downloading the a normal xls dataset from your self hosted server and see if the issue is still there.

Have a great day!

Thanks for your reply.
Normal xls is working well.
Do you think my code which is running on 8888 port of my own server will be a reason?
Although I don’t think this issue is caused by port conflict on server, but I wanna make sure what the reason is.

Hi @yongkui,

Could you try the same by uploading the same xlsform to one of the instance hosted by KoBoToolbox (OCHA or HHI) and see if the same happens there as well.

Have a great day!