-
Notifications
You must be signed in to change notification settings - Fork 93
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
Error: decoded.map is not a function #198
Comments
This is likely #180 as well, sadly. |
Re-opening this following the discussion in #180. The issue is currently resulting in an unhandled rejection with the above error which seems to cause the promise from the library to never resolve or reject causing our tasks to freeze up. |
@walshie4 |
🙇 Thank you for the branch @crwilcox. I've tested it next to my current latest and can confirm it does in fact resolve this issue. |
Quick Update: We are still testing this branch and handling a few edge cases. |
Branch has been updated as we have corrected some corner cases that regressed. As soon as we finish authoring some new tests this fix will be merged. |
Fixes #180 and #198 by reworking the way we process streamed rows from PartialResultStream on Spanner. The high-level difference is this - use RowBuilder for all streams. We had two code paths previously - do not block on returning until we have a non-chunked row. We can hold the final value of a chunked segment and begin returning other data - handle partial segments. Occasionally we will get a partial row and shouldn't try to send that to the user.
A patch release is published that includes this fix. https://www.npmjs.com/package/@google-cloud/spanner |
@crwilcox I am still encountering this exact same issue using
|
@sourcec0de Thanks for reporting. Do you have any code, and/or information about the data and query, that we could use to try to reproduce? |
@stephenplusplus I have been banging my head on the wall trying to resolve this issue for a few days. I honestly thought it may have been a conflict with other installations of I've been using Switching to Should have waited a little longer before reporting. Thank you for being so prompt, though. It's great to see you guys active in here. |
Environment details
@google-cloud/spanner
version: v1.4.1Steps to reproduce
This error is occasionally happening when running the same query as in #197.
The text was updated successfully, but these errors were encountered: