Coder Social home page Coder Social logo

Comments (4)

schlagmichdoch avatar schlagmichdoch commented on May 22, 2024

Thanks for all the information! Makes debugging much easier!
Your Nginx config looks good and as files sharing works the issue is not to be found there.

TypeError: Cannot read property 'getRandomValues' of undefined

means that crypto.webcrypto does not exist for the node server. This is an unexpectected error that causes the server to crash and restart.

I'll try to reproduce the issue and come back to you

from pairdrop.

schlagmichdoch avatar schlagmichdoch commented on May 22, 2024

crypto.webcrypto and crypto.webcrypto.getRandomValues(typedArray) need Node.js v15.0.0 or above.

When I use the given docker-compose file I cannot reproduce your issue as node:lts-alpine is used which currently points to v18.14.0.
When I replace node:lts-alpine with node:14-alpine version v14.21.2 is installed and the behaviour is exactly as you described.

  • Have you changed the docker-compose.yml?
  • What is the output of docker-compose run node node -v

from pairdrop.

chaosbunker avatar chaosbunker commented on May 22, 2024

Ha! Not a bug, then - just a silly oversight on my end. You pointed me in the right direction by referencing the correct node version. I had an outdated and unused node:lts-alpine image 'lying around', so when i did docker-compose up -d it just used that and I didn't notice. Good reminder to purge unused docker images:)

Now running PairDrop with the most recent node:lts-alpine and pairing works as expected. I'm so happy, this is incredibly useful! Thanks so much:)

from pairdrop.

schlagmichdoch avatar schlagmichdoch commented on May 22, 2024

Perfect!
It appears you can prevent this by running docker-compose pull before which pulls the latest image if an update is available.
https://www.baeldung.com/ops/docker-compose-latest-image
I guess I will add this to the documentation.

Glad it works now and you like it :)

from pairdrop.

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.