Timeout Error during GetResponse method

Timeout Error during GetResponse method

We are using the Zoho API to edit documents with our web application.

 

One of our users has been using the zoho interface on our web site to edit their excel document. Till recently they were able to edit the document “AR WRS Inventory Control Reports Draft II.xlsx” (tried to attach, but, getting blank error while attaching).

 

Then they made some changes to it “AR WRS Inventory Control Reports Draft III.xlsx” (tried to attach, but, getting blank error while attaching), and the document cannot be pulled up in Zoho.

 

The error that we are getting is “The operation has timed out”, when  the GetResponse method is invoked.

 

Please help!

 

Here is the block of code which contains the GetResponse method that we are calling (line where error is happening is highlighted in yellow):

 

    Private Function getHttpWebResponse(ByVal sPostURL As String, ByVal sQueryStrParam As String, ByRef vError As String) As String

        Dim objRequest As System.Net.HttpWebRequest = Nothing

        Dim objResponse As System.Net.HttpWebResponse = Nothing

        Dim sResponseStr As String = String.Empty

        Try

            ' Do  web request  here 

            objRequest = DirectCast(WebRequest.Create(sPostURL), HttpWebRequest)

 

            objRequest.Method = "POST"

            'When Special characters are available in PostData then to get actual number of bytes else get the error.

            objRequest.ContentLength = Encoding.UTF8.GetBytes(sQueryStrParam).Length

            objRequest.ContentType = "application/x-www-form-urlencoded"

 

            Dim objWriter As StreamWriter = Nothing

            Try

                objWriter = New StreamWriter(objRequest.GetRequestStream())

                objWriter.Write(sQueryStrParam)

            Catch ex As Exception

                LogException("", "", G_UnexpectedError, ex)

                Throw ex

            Finally

                If Not objWriter Is Nothing Then

                    objWriter.Close()

                End If

            End Try

 

            Dim objreader As StreamReader

            Try

                ' Get response  

                objResponse = DirectCast(objRequest.GetResponse(), HttpWebResponse)

 

                ' Get the response stream into a reader  

                objreader = New StreamReader(objResponse.GetResponseStream())

 

                'Response string

                sResponseStr = objreader.ReadToEnd()

            Catch ex As Exception

                'there was an error communicating with server

                LogException("", "", "Error occured while Getting Zoho Response. QueryStringParam :" & sQueryStrParam & "; PostURL:" & sPostURL, ex)

                vError = "e1045:Error occured while Getting Zoho Response."

            Finally

                If Not objResponse Is Nothing Then

                    objResponse.Close()

                End If

            End Try

        Catch ex As Exception

            vError = G_UnexpectedError

            LogException("", "", "( Post Url:" & sPostURL & sQueryStrParam & " ) ", ex)

        End Try

        Return sResponseStr

    Access your files securely from anywhere

        All-in-one knowledge management and training platform for your employees and customers.






                              Zoho Developer Community




                                                    • Desk Community Learning Series


                                                    • Digest


                                                    • Functions


                                                    • Meetups


                                                    • Kbase


                                                    • Resources


                                                    • Glossary


                                                    • Desk Marketplace


                                                    • MVP Corner


                                                    • Word of the Day


                                                    • Ask the Experts



                                                              • Sticky Posts

                                                              • What's new in Zoho Sheet: Simplify data entry and collaboration

                                                                Hello, Zoho Sheet community! Last year, our team was focused on research and development so we could deliver updates that enhance your spreadsheet experience. This year, we’re excited to deliver those enhancements—but we'll be rolling them out incrementally
                                                              • New Features: Repeat Last Action, Insert Cut/Copied Rows/Columns and Hyperlink

                                                                You might have noticed the constant updates to Zoho Sheet of late. Here are 3 more features that have been added to Zoho Sheet recently: F4 - Repeat Last Action Insert Cut/Copied Rows and Columns Insert Hyperlink Here is a screen cast demonstrating each of these features. Read further below to learn more about these new features. F4 - Repeat Last Action: You can now repeat the last action you made on your spreadsheet by using the keyboard shortcut, F4. It is quite handy and helps you get your work
                                                              • Introducing Forms in Zoho Sheet

                                                                We hereby bring you the power of ​forms in Zoho Sheet. ​Now, build and create your own customized forms using Zoho Sheet. Be it compiling a questionnaire or rolling out a survey, Zoho Sheet can do it all for you. Forms is an excellent feature that helps you collect information in the simplest of ways and having it in Zoho Sheet takes it a notch higher. Build Simple yet Powerful forms Building forms using Zoho Sheet is fairly simple. The exclusive 'Form' tab lets you create one quickly. Whether you
                                                              • Slicers are now available in Zoho Sheet—filter your data interactively

                                                                At Zoho Sheet, we diligently track user requests and feedback. In line with this, based on extensive user requests, we've integrated Slicers to pivot tables and are delighted to announce its release. Slicers are interactive visual filters that have add,
                                                              • Introducing Data Bars: Graphically represent changes in data within the cells

                                                                Conditional formatting has helped millions of spreadsheet users analyze and highlight their data more efficiently. In addition to the classic rules, color scales, and icon sets available in Zoho Sheet, you can now apply Data Bars, a convenient method


                                                              Manage your brands on social media



                                                                    Zoho TeamInbox Resources



                                                                        Zoho CRM Plus Resources

                                                                          Zoho Books Resources


                                                                            Zoho Subscriptions Resources

                                                                              Zoho Projects Resources


                                                                                Zoho Sprints Resources


                                                                                  Qntrl Resources


                                                                                    Zoho Creator 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


                                                                                              Zoho Show Resources

                                                                                                Zoho Writer

                                                                                                Get Started. Write Away!

                                                                                                Writer is a powerful online word processor, designed for collaborative work.

                                                                                                  Zoho CRM コンテンツ




                                                                                                    Nederlandse Hulpbronnen


                                                                                                        ご検討中の方