![]() Check whether the configured username and password are correct.Note: For all the mail fetching exceptions, please check connectivity using the same configurations in other third-party mail clients like Outlook Desktop app and Thunderbird desktop app.Īuthentication failed for the given username and password Unable to open mailbox in READ/WRITE mode. Configure trusted or self-signed certificate and try again. In ServiceDesk Plus, mail fetching problems can be categorized as follows: If not, an error message will be displayed on the screen. If the settings are configured right and the connection is successful, the oldest mail from your mailbox will be fetched, along with its properties. To do so, click the "Fetch a sample mail" button. That is the error I receive.After you configure the mail server, test the settings by fetching a sample mail. TypeError: 'NoneType' object is not subscriptable R=self._sendRequest(url=url,httpMethod="POST",payLoad=payload,action="IMPORT",callBackData=None)įile "/Users/./zoho_analytics_connector/report_client.py", line 165, in _sendRequestįile "/Users/./zoho_analytics_connector/report_client.py", line 1830, in _init_ĬontHeader = urlResp.headers Res = enhanced_client.data_upload(import_content=import_content, table_name=ZohoTracking.TABLENAME)įile "push2zoho.py", line 100, in enhanced_data_uploadįile "/Users/./zoho_analytics_connector/enhanced_report_client.py", line 99, in data_uploadįile "/Users/./site-packages/zoho_analytics_connector/report_client.py", line 464, in importData_v2 Print(f"Error:Check if file exists in the import directory ") With open("./import/tracking3.csv", "r") as f: Then have a method to upload data to existing table, the data_upload() function has the problem.Įnhanced_client = self.get_enhanced_zoho_analytics_client() Just setting email, token, etc using class above Instantiate the Client Class def get_enhanced_zoho_analytics_client(self) -> EnhancedZohoAnalyticsClient:Īssert (not self.OAUTH and self.AUTHTOKEN) or (self.OAUTH and self.REFRESHTOKEN) ![]() REFRESHTOKEN = os.getenv("ZOHOANALYTICS_REFRESHTOKEN")ĬLIENTID = os.getenv("ZOHOANALYTICS_CLIENTID")ĬLIENTSECRET = os.getenv("ZOHOANALYTICS_CLIENTSECRET")ĭATABASENAME = os.getenv("ZOHOANALYTICS_DATABASENAME") LOGINEMAILID = os.getenv("ZOHOANALYTICS_LOGINEMAIL") Hence, I installed a wrapped for this ReportClient from ( ).įollowing sample examples from Zoho website and tests in github of wrapper for Zoho in Python3, I implement something like this:įrom zoho_analytics_connector.report_client import ReportClient, ServerErrorįrom zoho_analytics_connector.enhanced_report_client import EnhancedZohoAnalyticsClient Zoho Report Client for Python is not compatible with Python 3. What I found out that the ReportClient provided by Zoho Analytics team Like soĬurl -X POST \ ' ZOHO_OUTPUT_FORMAT=JSON&ZOHO_ERROR_FORMAT=JSON&ZOHO_API_VERSION=1.0&ZOHO_IMPORT_TYPE=APPEND&ZOHO_AUTO_IDENTIFY=True&ZOHO_ON_IMPORT_ERROR=ABORT&ZOHO_CREATE_TABLE=False' \ -H 'Authorization: Zoho-oauthtoken *******' \ -H 'content-type: multipart/form-data boundary=-WebKitFormBoundary7MA4YWxkTrZu0gW' \ -F ZOHO_FILE='path_to_csv' I can successfully import some data using cURL commands.My goal is to write a script in Python3 that will push data in existing table in Zoho Analytics, the script will be used by a scheduler once a week.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |