Did you use a digital meter to check the voltage? If there is a bad connection, it will show full voltage with no load, but as soon as a load is put on the circuit, there will be little or no voltage. Try checking the voltage with the light still hooked up.
Happy Glamping.Norman, 2008 Winnebago Adventurer 38J, W24, dozens of small thirsty ponies. Retired after 40 years wrenching on trucks! 2010 Ford Ranger toad with bicycles or KLR 650 in the back. Easy to spot an RVer, they always walk around with a screwdriver or wrench in one hand!