Git Product home page Git Product logo

Comments (7)

tom-james-watson avatar tom-james-watson commented on June 2, 2024 2

You can also use xvfb-run from the xvfb package.

e.g. on circleci:

- run:                                                                    
    name: Run Tests                                                       
    command: xvfb-run npm t

from clipboardy.

tom-james-watson avatar tom-james-watson commented on June 2, 2024 1

If you manage to log the underling error you'll likely see something like the following:

xsel: Can't open display: (null)
      : Inappropriate ioctl for device

It looks like the library doesn't work in a headless environment.

I'm not sure about Jenkins, but on GitHub Actions you can use this action - https://github.com/marketplace/actions/gabrielbb-xvfb-action - to provide a virtual display whilst running the tests.

from clipboardy.

esatterwhite avatar esatterwhite commented on June 2, 2024

I just ran into this problem as well on jenkins. Not sure if it is a jenkins specific thing as this build run in docker containers.

However, it works find on Node 12 and 14. But fails with this error on node 15

from clipboardy.

github0013 avatar github0013 commented on June 2, 2024

I solved this like this #65

from clipboardy.

kadistudio avatar kadistudio commented on June 2, 2024

error = new Error('Couldn't find the xsel binary and fallback didn't work. On Debian/Ubuntu you can install xsel with: sudo apt install xsel');

I also encounter this error when i try to host my Discord Bot using Heroku, when using my own terminal node . everything is fine. btw im using 2.3.0 version because the 3.0.0 gives me error

from clipboardy.

sankalpguptasymphony avatar sankalpguptasymphony commented on June 2, 2024

@iuriigrynykha Were you able to solve this problem?

"Both xsel and fallback failed"

from clipboardy.

pgibler avatar pgibler commented on June 2, 2024

Also having this issue.

from clipboardy.

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.