Hey all,
I am currently working on a Python script and when I authenticate into AGOL I have no issues until I run certain queries and then I get:
'InsecureRequestWarning: Unverified HTTPS request is being made to host 'PORTALNAME.maps.arcgis.com'. Adding certificate verification is strongly advised.'
This specifically occurs when I add the max_item parameter in the gis.content.search method.
As an example, if I run the following, I get no warning:
wm_items = gis.content.search(query=query)
If I add that parameter, then the warning appears:
wm_items = gis.content.search(query=query, max_items=10000)

I authenticated using the GIS(api_key='...', referer='https') method.
Any help would be appreciated.