agrc / api-client

The official UGRC API client
https://gis.utah.gov/products/sgid/address/api-client/
MIT License
4 stars 2 forks source link

Error invoking remote method 'geocode': TypeError: Cannot read properties of undefined (reading 'statusCode') #122

Closed jessehawkley closed 2 years ago

jessehawkley commented 2 years ago

What happened?

API Client Crashes after processing several hundred rows

Steps To Reproduce

Running the app. I've tried to run the three times and it seems to crash after running for around 20 minutes. So far restarting the app hasn't seemed to have helped.

App Version

1.5.7

Electron Version

17.0.0

Operating System

Windows 10

Relevant log output

Error message

Error invoking remote method 'geocode': TypeError: Cannot read properties of undefined (reading 'statusCode')

Stack trace

Error: Error invoking remote method 'geocode': TypeError: Cannot read properties of undefined (reading 'statusCode')
steveoh commented 2 years ago

Thanks. We will take a look.

steveoh commented 2 years ago

Is there a certain record that fails or is it more of a duration thing? I'm trying to tell if it's more of a data issue or a network issue.

jessehawkley commented 2 years ago

I'm not actually sure. I assumed it was a duration thing since I'm geocoding fairly large files - 40K rows. The first month that I did it in the office I managed to run the whole file in the background without issue. The next time I tried to run that many rows at home I would consistently have network issues where the job would just stop, so I had to break it into four chunks (This was on my home network).

This most recent time I tried it it would time out and give the error after 20 or so minutes of running - both a 10K row chunk and the full 40K rows. I just tried running it from a different part of the data rather than from the start to see if it may be a particular row setting it off and it still stopped after about 20 minutes. So, I'd assume it's a network issue unless there's multiple new rows causing issues that haven't existed in previous files.

On Thu, Mar 3, 2022 at 12:37 PM steveoh @.***> wrote:

Is there a certain record that fails or is it more of a duration thing? I'm trying to tell if it's more of a data issue or a network issue.

— Reply to this email directly, view it on GitHub https://github.com/agrc/api-client/issues/122#issuecomment-1058415541, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXGNGS3ZDQCVJTZUBQTQAE3U6EIGXANCNFSM5PVDEFEA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

-- IMPORTANT MESSAGE This message, including any attachments, may contain confidential information intended for a specific individual and purpose, and is protected by law.  If you are not the intended recipient, delete this message, including from trash, and notify me by telephone or email.

If you are not the intended recipient, any distributions or copying of this message, or the taking of any action based on its content is strictly prohibited.

steveoh commented 2 years ago

Is your computer going to sleep or something goofy? This almost doesn't sound related to the client but maybe a home networking/computer issue.

We will still look into how we can defend against the issue. Thank you for the update!

steveoh commented 2 years ago

Are you able to try running the job with one of our other clients? Using the geocoding toolbox in arcmap/pro?

jessehawkley commented 2 years ago

I don't actually have a license for ArcGIS Pro - I don't suppose I can run that in an open-source option, can I?

On Thu, Mar 3, 2022 at 4:00 PM steveoh @.***> wrote:

Are you able to try running the job with one of our other clients? Using the geocoding toolbox https://github.com/agrc/geocoding-toolbox in arcmap/pro?

— Reply to this email directly, view it on GitHub https://github.com/agrc/api-client/issues/122#issuecomment-1058610562, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXGNGS4TMSIU77QPFAZGB4DU6E77RANCNFSM5PVDEFEA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

-- IMPORTANT MESSAGE This message, including any attachments, may contain confidential information intended for a specific individual and purpose, and is protected by law.  If you are not the intended recipient, delete this message, including from trash, and notify me by telephone or email.

If you are not the intended recipient, any distributions or copying of this message, or the taking of any action based on its content is strictly prohibited.

stdavis commented 2 years ago

I have another user (Cindy) that is experiencing the same issue. She has previously been able to successfully run batches of 5K-25K without issue but is now getting the same error message. She verified that attempting to run a previously successful batch is now returning the error message.

The last successful batch was run by her on Mar 12, 2022 6:13 PM.

steveoh commented 2 years ago

Ok, interesting. We haven't made any app changes since Feb.