Git Product home page Git Product logo

Comments (8)

mxschmitt avatar mxschmitt commented on September 4, 2024

hello from the Playwright team! In the past a few users ran into this issue with using the library, which broke Playwright. We are unsure if its an issue on our or on your side. When I was debugging it, I saw that after we load the native ibm binding, it stops working, maybe you have a clue on whats going on there. See microsoft/playwright#28846 (comment).

Thanks!

from node-ibm_db.

bimalkjha avatar bimalkjha commented on September 4, 2024

@mxschmitt @54995610 what was the previous version of ibm_db which was working?
In the shared code, I see you are promisifying ibmdb.open() as const open = util.promisify(ibmdb.open). It may be the cause of issue as open api returns promise in latest version if you do not pass a callback function. In fact, all ibmdb apis returns promise and you can use it for async-await programming. Please check and update. thanks.

from node-ibm_db.

mxschmitt avatar mxschmitt commented on September 4, 2024

I think it was never working. It only reproduces on Windows and it also reproduced without util.promisify.

from node-ibm_db.

54995610 avatar 54995610 commented on September 4, 2024

That's correct we are also seeing this issue even without using util,promisify.

from node-ibm_db.

bimalkjha avatar bimalkjha commented on September 4, 2024

@54995610 Could you please share simplified steps to reproduce this issue on my Windows system? I have not used Playwright yet. Thanks.

from node-ibm_db.

mxschmitt avatar mxschmitt commented on September 4, 2024

OS: Windows

npm init playwright my-project
cd my-project
// put the require inside tests/example.spec.ts
npx playwright test

Actual: throws with a weird error (via a Windows MessageBox) when we launch PrintDeps.exe via child_process.spawn
Expected: Does not

Note: We mitigated it on the Playwright side for now, @54995610 has not confirmed yet, that it works for him, but for me did not reproduce anymore.

from node-ibm_db.

bimalkjha avatar bimalkjha commented on September 4, 2024

@mxschmitt Thanks for sharing the repro steps. I am able to reproduce the issue and getting test result as below:

C:\nodework\defects\my-proj>npx playwright test

Running 6 tests using 4 workers
  6 passed (37.6s)

To open last HTML report run:

  npx playwright show-report


C:\nodework\defects\my-proj>

The reason for these pop-ups only for require('ibm_db') is unknown for me. We need detailed info from playwright team about this behavior, then we can look further. Thanks.

from node-ibm_db.

bimalkjha avatar bimalkjha commented on September 4, 2024

Closing the issue now as issue seems with playwright. Once, you have input from playwrite team with detail, you can post here and we can reopen the issue. Thanks.

from node-ibm_db.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.