Skip to content
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

query.execute_a crashes at least on raspberry pi 4B #45

Open
243826 opened this issue Jun 25, 2023 · 4 comments
Open

query.execute_a crashes at least on raspberry pi 4B #45

243826 opened this issue Jun 25, 2023 · 4 comments

Comments

@243826
Copy link

243826 commented Jun 25, 2023

pi@raspberrypi:~/work/ble $ node dist/run_with_execute_a.js
Successfully connected to TDengine
Segmentation fault (core dumped)

pi@raspberrypi:~/work/ble $ node dist/run_with_execute.js
Successfully connected to TDengine

                              name                               | 
===================================================================
information_schema                                               | 
performance_schema                                               | 
demo                                                             | 
test                                                             | 
Connection is closed

The source code for the run_with_execute_a.ts

import taos from '@tdengine/client'

const connection = taos.connect()
const cursor = connection.cursor()

// replacing execute_a with execute below works
cursor.query("show databases").execute_a()
   .then((result: { pretty: () => any }) => result.pretty())
   .then(() => {
      cursor.close()
      connection.close()
   })

@sangshuduo
Copy link
Contributor

@243826 Sorry about that. We are preparing to refactor the Node.js connector to work with a broad environment in the near future. Do you mind using another language's connector? Thanks.

@243826
Copy link
Author

243826 commented Sep 3, 2023

@sangshuduo Since I am coding in js, this is the connector. However I am able to move forward with the not async version.

Please let me know when your refactor is complete.

@sangshuduo
Copy link
Contributor

@sangshuduo Since I am coding in js, this is the connector. However I am able to move forward with the not async version.

Please let me know when your refactor is complete.

The first release of refactored NodeJS connector is coming soon. But it will support WebSocket only first then native addon support will be later.

@243826
Copy link
Author

243826 commented Sep 5, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants