COMMON_INTERNAL_SERVER_ERROR

COMMON_INTERNAL_SERVER_ERROR

Hello,

I am getting error one send post request via python( ) to Zoho analytics, the error is COMMON_INTERNAL_SERVER_ERROR.
how to fix it?
 
***I don't want to use the SDK package**

error:
{"status":"failure","summary":"COMMON_INTERNAL_SERVER_ERROR","data":{"errorCode":7005,"errorMessage":"Sorry, an unexpected error occurred when performing this operation. The error has been logged and will be looked into.\n\nIt would be of great help if you could provide us with additional information using the ''Feedback'' link."}}




code:
api_url = 'https://analyticsapi.zoho.com/restapi/v2/workspaces/xxxxxx/views/xxxxxxx/data'
print(api_url)

headers = {
"Authorization": f"Zoho-oauthtoken {access_token}"
}

csv_file_path = '/Users/xxxxxx/Downloads/data.csv'

with open(csv_file_path, 'rb') as csv_file:
csv_bytes = csv_file.read()

files = {'file': ('data.csv', csv_bytes, 'text/csv')}

data = {"importType": "updateadd",
"fileType": "csv",
"autoIdentify": "true"
}

response = requests.post(api_url, headers=headers, files=files, data=data)
print(response.text)

    Access your files securely from anywhere

        Zoho Developer Community




                                  Zoho Desk Resources

                                  • Desk Community Learning Series


                                  • Digest


                                  • Functions


                                  • Meetups


                                  • Kbase


                                  • Resources


                                  • Glossary


                                  • Desk Marketplace


                                  • MVP Corner


                                  • Word of the Day



                                      Zoho Marketing Automation


                                              Manage your brands on social media



                                                    Zoho TeamInbox Resources

                                                      Zoho DataPrep Resources



                                                        Zoho CRM Plus Resources

                                                          Zoho Books Resources


                                                            Zoho Subscriptions Resources

                                                              Zoho Projects Resources


                                                                Zoho Sprints Resources


                                                                  Qntrl Resources


                                                                    Zoho Creator Resources



                                                                        Zoho Campaigns Resources


                                                                          Zoho CRM Resources

                                                                          • CRM Community Learning Series

                                                                            CRM Community Learning Series


                                                                          • Kaizen

                                                                            Kaizen

                                                                          • Functions

                                                                            Functions

                                                                          • Meetups

                                                                            Meetups

                                                                          • Kbase

                                                                            Kbase

                                                                          • Resources

                                                                            Resources

                                                                          • Digest

                                                                            Digest

                                                                          • CRM Marketplace

                                                                            CRM Marketplace

                                                                          • MVP Corner

                                                                            MVP Corner





                                                                              Design. Discuss. Deliver.

                                                                              Create visually engaging stories with Zoho Show.

                                                                              Get Started Now