Need help setting up the Flume integration

When I try to add the Flume integration, I keep getting Unknown error occurred. I see a 504 Gateway Timeout in the network tab in DevTools and I cant find anything in the GUI logs. I know my credentials work because I tried them with PyFlume. I used my email as the username (as PyFlume expects), tried my email without @gmail.com, all to no avail.