Being able to reconnect after getting invalid query header error