arcgis for js SSL证书无效

只需要在jupyter notebook的最前面加入

import ssl 
ssl._create_default_https_context = ssl._create_unverified_context

即可解决

第二种解决方案:在GIS初始化值,将verify_cert=True设置为false

官网API写明此项参数默认为true

classarcgis.gis.GIS(url=Noneusername=Nonepassword=Nonekey_file=Nonecert_file=Noneverify_cert=Trueset_active=Trueclient_id=Noneprofile=None**kwargs)

转载自:https://blog.csdn.net/A873054267/article/details/83414924

You may also like...