flood icon indicating copy to clipboard operation
flood copied to clipboard

Deprecated Dependency [http_parser]

Open CodyRWhite opened this issue 3 years ago • 9 comments

Type: Bug Report

  • [ x ] Try to follow the update procedure described in the README and try again before opening this issue.

Your Environment

  • Version used:
    • Version 4.6.1
  • Environment name and version:
    • Node.js version node --version v16.4.1
    • npm version npm --version 7.19.1
    • Web browser name and version N/A
  • Operating system and version: RockyLinux 8.4
  • Torrent client and version: rTorrent - Latest

Summary

After installing flood and running on the latest version I am seeing deprecation warnings.

Expected Behavior

Current Behavior

[rtorrent@SERVER-001 ~]$ flood -h 0.0.0.0
Flood server 4.6.1 starting on http://0.0.0.0:3000

(node:12027) [DEP0111] DeprecationWarning: Access to process.binding('http_parser') is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)

Possible Solution

Steps to Reproduce

### install Flood
dnf install nodejs -y

su rtorrent 
cd /home/rtorrent
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion

nvm install node
npm install -g npm
npm install -g flood

flood -h 0.0.0.0

Context

CodyRWhite avatar Jul 05 '21 14:07 CodyRWhite

I am working on it: https://github.com/jesec/flood/projects/6#card-59708842, #327 .

jesec avatar Jul 06 '21 19:07 jesec

Sorry I tried looking there first, but I was not able to find an exact reference to the update.

CodyRWhite avatar Jul 08 '21 02:07 CodyRWhite

I fresh installed qbittorrent and flood and I am getting this error. Is there a way to use flood by bypassing this error somehow? Whenever I try to go to port 3000 I get "unable to connect" on Firefox. I am on RaspbianOS armhf.

raaron773 avatar Oct 01 '21 04:10 raaron773

This is a warning. It does not indicate any defective behavior.

If you are not able to connect, you have to take a look at something else. Are you sure that you exposed Flood to other machines in your network (often done with --host 0.0.0.0)?

jesec avatar Oct 01 '21 05:10 jesec

Sorry, I am noob I don't know what you mean or how to use --host 0.0.0.0 Been trying to get this to work for quite some time now and don't know what else to do

raaron773 avatar Oct 01 '21 06:10 raaron773

It is a command line argument. If you was running Flood with flood, run it with flood --host 0.0.0.0.

basically tells Flood to respond to any request instead of only the localhost (default).

jesec avatar Oct 01 '21 06:10 jesec

Like this? https://pastebin.com/sTtrcu3R

edit: but this doesn't work either on port 3001

raaron773 avatar Oct 01 '21 06:10 raaron773

If you use Docker, you don't need --host 0.0.0.0.

Instead, expose the service to your LAN with Docker options. For instance, in your compose file:

    ports:
      - 0.0.0.0:3001:3001

jesec avatar Oct 01 '21 06:10 jesec

oh man! I have been trying to get this to work for a really long time!

Thank you very much!! I really appreciate your help for this!! I finally got it to work!! yay!!

raaron773 avatar Oct 01 '21 06:10 raaron773

should be fixed

trim21 avatar May 01 '24 13:05 trim21