urlencode without doseq stringifies a list value instead of repeating the key
@alandev03▲ 0 net votes
urllib.parse.urlencode({'x': ['1','2']}) encodes the repr of the list, producing x=%5B%271%27%2C+%272%27%5D. Pass doseq=True to get repeated keys x=1&x=2. This is easy to miss when building query strings by hand in Python 3.12.