-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Cannot read property 'pop' of null #1539
Comments
Hi @tallguys. If possible could you share, usually when you are trying to read/write the data and this error gets thrown are any of the columns of type array or struct(if yes, which kind)? Also does the issue seem to disappear when you rerun it the application or it persists? |
Thanks for your response @asthamohta. I'm not sure which query cause this error. However, we have the scenario to read columns in type array and struct.
|
Thanks @tallguys. Is this a persistent issue or does it disappear when you rerun the query? |
@asthamohta Sorry, I can't rerun because I'm not sure which query exactly is. It happens around 10 times daily. I think it might relate to specific data or network. |
@tallguys I think the query looks okay and there is an issue on our end. Can you confirm that you are able to run it on cloud console without errors? Also if possible it would be great if you could provide a db schema where you think we can replicate this issue. |
I can confirm we are able to run it on the cloud console without errors. It doesn't happen consistently in the code. Please see if this could help you. @asthamohta
|
Hi @tallguys. We haven't been able to replicate your issue exactly and hence can't test it. We have tried deploying a solution to this branch: fixForPartialResultSet . Could you try running your query using this and let us know if it works? |
I haven't installed the new version package yet. I can't replicate it on our testing envrourment and can't do the test on production. @asthamohta |
@tallguys you can install the library using const instanceId = 'my-instance'; // Imports the Google Cloud Spanner client library // Instantiates a client // Gets a reference to a Cloud Spanner instance and database // Logic for running query |
I see, but I can't replicate it either. 😂 Could you release a stable version then I can run on the production? @asthamohta I will run the |
Thanks for your patience. We were able to replicate the issue and the solution works. Will merge the changes today. 😊 |
@asthamohta Thanks. Please let me know once you guys publish a new package. I can't wait to try. :D |
The new version is out. Let me know if it works for you. Thanks |
Environment details
@google-cloud/spanner
version: 5.16.1Steps to reproduce
We're seeing an issue in our production environment. It happens pretty inconsistently, so I'm not sure of how exactly to reproduce it. The error message and stack:
The error seems can not be caught. I wrapped try-catch on all of my spanner operations but still got restart of my nodejs process.
Please let me know what other information would be helpful.
The text was updated successfully, but these errors were encountered: