How to fix Dropdown widget 502 gateway error