Error: Found an invalid number of redirects, count: 2