I am trying to get details from a smart sheet and when I try to connect to it I am getting the following error
{"response": {"statusCode": 404, "reason": "Not Found", "content": {"errorCode": 1006, "message": "Not Found", "refId": "1lxywzbrqxdq6"}}}
Traceback (most recent call last):
File "smartsheet_test.py", line 36, in <module>
sheet_details = SMARTSHEET_OBJ.Sheets.get_sheet(SHEET_ID)
File "/home/ubuntu/.local/lib/python3.6/site-packages/smartsheet/sheets.py", line 529, in get_sheet
response = self._base.request(prepped_request, expected, _op)
File "/home/ubuntu/.local/lib/python3.6/site-packages/smartsheet/smartsheet.py", line 250, in request
raise the_ex(native, str(native.result.code) + ': ' + native.result.message)
smartsheet.exceptions.ApiError: {"result": {"code": 1006, "errorCode": 1006, "message": "Not Found", "name": "ApiError", "recommendation": "Do not retry without fixing the problem. ", "refId": "1lxywzbrqxdq6", "shouldRetry": false, "statusCode": 404}}
This is my code
import smartsheet
from config import SHEET_ID, access_token
SMARTSHEET_OBJ = smartsheet.Smartsheet(access_token=access_token)
SMARTSHEET_OBJ.errors_as_exceptions(True)
sheet_details = SMARTSHEET_OBJ.Sheets.get_sheet(SHEET_ID)
when I looked into the documentation i found that error code 1006 means the sheet is not present I have confirmed that the sheet I am trying to access is present and the sheet id is correct Not sure what's wrong smartsheet version = 2.105.1