dataiku / dss-plugin-sharepoint-server

A connector to Microsoft SharePoint server
Apache License 2.0
0 stars 0 forks source link

Failed to stat path '' : <class 'requests.exceptions.MissingSchema'> : [Errno None] None: 'None' #11

Closed llegouve78 closed 1 year ago

llegouve78 commented 1 year ago

We encountered issue accessing a sharepoint 2019.

Here is the error

2023-02-16 09:45:31,162 9636 INFO [Child] opened stderr 2023-02-16 09:45:31,162 9636 INFO [Child] about to close other fd 2023-02-16 09:45:31,163 9636 INFO [Child] closed other fd 2023-02-16 09:45:31,163 9636 INFO [Child] chdired 2023-02-16 09:45:31,163 9636 INFO setting username=st13925a uid=259814 gid=100 2023-02-16 09:45:31,164 9636 INFO [Child] dropped privileges 2023-02-16 09:45:31,164 9636 INFO [Child] Checking access to DKUINSTALLDIR and DIP_HOME directories 2023-02-16 09:45:31,165 9636 INFO [Child] Executing: /data/code-envs/python/plugin_sharepoint-server_managed_3/bin/python : /data/code-envs/python/plugin_sharepoint-server_managed_3/bin/python -u -m dataiku.fsprovider.server 34417 FtdTMmeX6uva9Nq7 2023-02-16 09:45:31,676 INFO Connecting to localhost (127.0.0.1) at port 34417 2023-02-16 09:45:31,676 INFO Connected to localhost (127.0.0.1) at port 34417 /data/code-envs/python/plugin_sharepoint-server_managed_3/lib/python3.6/site-packages/requests_ntlm/requests_ntlm.py:5: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography. The next release of cryptography (40.0) will be the last to support Python 3.6. from cryptography import x509 /appl/dataiku-dss-11.3.1/python/dataiku/fsprovider/server.py:60: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec() arg_count = len(inspect.getargspec(clazz.init).args) 2023-02-16 09:45:31,763 INFO init:root= SharePointClient:1.0.2b2 2023-02-16 09:45:31,764 INFO stat:path="", full_path="/" Traceback (most recent call last): File "/appl/dataiku-dss-11.3.1/python/dataiku/fsprovider/server.py", line 83, in serve closed, response = handle_request(request, fsprovider, closed) File "/appl/dataiku-dss-11.3.1/python/dataiku/fsprovider/server.py", line 19, in handle_request response = {"fspath" : fsprovider.stat(request.get('path', '/'))} File "/tmp/tmp_folder_uFCxnvyD/dku_code.py", line 53, in stat File "/data/tmp/custom-fs-provider/control3525176602174988514/plugin-lib/sharepoint_client.py", line 53, in get_files response = self.session.get(self.get_sharepoint_item_url(path) + "/Files") File "/data/tmp/custom-fs-provider/control3525176602174988514/plugin-lib/sharepoint_client.py", line 364, in get return requests.get(url, args) File "/data/code-envs/python/plugin_sharepoint-server_managed_3/lib/python3.6/site-packages/requests/api.py", line 75, in get return request('get', url, params=params, kwargs) File "/data/code-envs/python/plugin_sharepoint-server_managed_3/lib/python3.6/site-packages/requests/api.py", line 60, in request return session.request(method=method, url=url, **kwargs) File "/data/code-envs/python/plugin_sharepoint-server_managed_3/lib/python3.6/site-packages/requests/sessions.py", line 519, in request prep = self.prepare_request(req) File "/data/code-envs/python/plugin_sharepoint-server_managed_3/lib/python3.6/site-packages/requests/sessions.py", line 462, in prepare_request hooks=merge_hooks(request.hooks, self.hooks), File "/data/code-envs/python/plugin_sharepoint-server_managed_3/lib/python3.6/site-packages/requests/models.py", line 313, in prepare self.prepare_url(url, params) File "/data/code-envs/python/plugin_sharepoint-server_managed_3/lib/python3.6/site-packages/requests/models.py", line 387, in prepare_url raise MissingSchema(error) requests.exceptions.MissingSchema: Invalid URL "content.grp.collab.group.safran/snm/dmm/adv/piloter_nos_GB/Projet_GB_EL/_api/Web/GetFolderByServerRelativeUrl('/snm/dmm/adv/piloter_nos_GB/Projet_GB_EL/Projet_Informations_Gnrales/Forms')/Files": No schema supplied. Perhaps you meant http://content.grp.collab.group.safran/snm/dmm/adv/piloter_nos_GB/Projet_GB_EL/_api/Web/GetFolderByServerRelativeUrl('/snm/dmm/adv/piloter_nos_GB/Projet_GB_EL/Projet_Informations_Gnrales/Forms')/Files? 2023-02-16 09:45:31,766 INFO Client closed

llegouve78 commented 1 year ago

It is ok