Retrieve items, invalid value,
Dear box,
I want to itterate over the items in a folder and download a specific excel file. I read the dox and i give myself al the permissions. What do i do next.
Kind regards,
Elias
Traceback (most recent call last):
File "C:\project\admin_automation\z_api_box\api_connection_box.py", line 46, in <module>
for item in items:
File "C:\Users\E. Bloemendaal\AppData\Local\Programs\Python\Python310\lib\site-packages\boxsdk\pagination\box_object_collection.py", line 81, in next
return next(self._all_items)
File "C:\Users\E. Bloemendaal\AppData\Local\Programs\Python\Python310\lib\site-packages\boxsdk\pagination\box_object_collection.py", line 87, in _items_generator
response_object = self._load_next_page()
File "C:\Users\E. Bloemendaal\AppData\Local\Programs\Python\Python310\lib\site-packages\boxsdk\pagination\box_object_collection.py", line 124, in _load_next_page
box_response = self._session.get(self._url, params=params)
File "C:\Users\E. Bloemendaal\AppData\Local\Programs\Python\Python310\lib\site-packages\boxsdk\session\session.py", line 90, in get
return self.request('GET', url, **kwargs)
File "C:\Users\E. Bloemendaal\AppData\Local\Programs\Python\Python310\lib\site-packages\boxsdk\session\session.py", line 134, in request
response = self._prepare_and_send_request(method, url, **kwargs)
File "C:\Users\E. Bloemendaal\AppData\Local\Programs\Python\Python310\lib\site-packages\boxsdk\session\session.py", line 337, in _prepare_and_send_request
self._raise_on_unsuccessful_request(network_response, request)
File "C:\Users\E. Bloemendaal\AppData\Local\Programs\Python\Python310\lib\site-packages\boxsdk\session\session.py", line 264, in _raise_on_unsuccessful_request
raise BoxAPIException(
boxsdk.exception.BoxAPIException: Message: Not Found
Status: 404
Code: not_found
Request ID: 9x9tijh01mc9p8sc
Headers: {'Date': 'Mon, 07 Mar 2022 13:03:10 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'x-envoy-upstream-service-time': '162', 'content-encoding': 'gzip', 'box-request-id': '025b19b9bc25848ae52826042b998049b', 'cache-control': 'no-cache, no-store', 'strict-transport-security': 'max-age=31536000'}
URL: https://api.box.com/2.0/folders/131435164293/items
Method: GET
Context Info: {'errors': [{'reason': 'invalid_pa
投稿コメントは受け付けていません。
コメント
1件のコメント