add_request with same url but different payload
do you have any example of adding a request to the requestQueue with using use_extended_unique_key because I am using the same url for every request the only change is the payload ? I have this error TypeError: Unicode-objects must be encoded before hashing with this code
for i in range(1,max_index + 1) :
# Update the page number in params_query
#json_data['indices']['products']['paging']['index'] = int(next_index)
json_data = json.dumps(json_data)
await rq.add_request(request={'url': url, 'payload': json_data, 'method': 'POST'}, use_extended_unique_key=True)
for i in range(1,max_index + 1) :
# Update the page number in params_query
#json_data['indices']['products']['paging']['index'] = int(next_index)
json_data = json.dumps(json_data)
await rq.add_request(request={'url': url, 'payload': json_data, 'method': 'POST'}, use_extended_unique_key=True)