Skip to content

Error: options.uri is a required argumentΒ #32

@mikedirty

Description

@mikedirty

name: "🐞 Bug report"
about: Report a bug
title: "[Bug] animeidhentai.com downloads not working"
labels: "bug"

Describe the bug
I run anigrab inside a node container, and try to download any video from animeidhentai.com

Command You Entered

docker run -it node:latest bash

apt update
apt install aria2 -y
npm install -g npm
npm install -g anigrab
anigrab https://animeidhentai.com/31547/kounai-shasei-episode-1/

Expected behavior

Video will download

Actual behavior

root@3b712987592d:/# anigrab https://animeidhentai.com/31547/kounai-shasei-episode-1/
Extracting https://animeidhentai.com/31547/kounai-shasei-episode-1/
/usr/local/lib/node_modules/anigrab/src/request.js:48
            throw new Error('Request Error', { cause: error });
                  ^

Error: Request Error
    at request (/usr/local/lib/node_modules/anigrab/src/request.js:48:19)
    at async Object.get (/usr/local/lib/node_modules/anigrab/src/request.js:55:20)
    at async Object.getAnime (/usr/local/lib/node_modules/anigrab/src/sites/animeidhentai.js:93:12)
    at async main (/usr/local/lib/node_modules/anigrab/src/cli/index.js:135:19) {
  [cause]: RequestError: Error: options.uri is a required argument
      at plumbing.callback (/usr/local/lib/node_modules/anigrab/node_modules/request-promise-core/lib/plumbing.js:87:29)
      at Request.RP$callback [as _callback] (/usr/local/lib/node_modules/anigrab/node_modules/request-promise-core/lib/plumbing.js:46:31)
      at self.callback (/usr/local/lib/node_modules/anigrab/node_modules/request/request.js:185:22)
      at Request.emit (node:events:507:28)
      at Request.init (/usr/local/lib/node_modules/anigrab/node_modules/request/request.js:231:17)
      at Request.RP$initInterceptor [as init] (/usr/local/lib/node_modules/anigrab/node_modules/request-promise-core/configure/request2.js:45:29)
      ... 6 lines matching cause stack trace ...
      at async main (/usr/local/lib/node_modules/anigrab/src/cli/index.js:135:19) {
    [cause]: Error: options.uri is a required argument
        at Request.init (/usr/local/lib/node_modules/anigrab/node_modules/request/request.js:231:31)
        at Request.RP$initInterceptor [as init] (/usr/local/lib/node_modules/anigrab/node_modules/request-promise-core/configure/request2.js:45:29)
        at new Request (/usr/local/lib/node_modules/anigrab/node_modules/request/request.js:127:8)
        at request (/usr/local/lib/node_modules/anigrab/node_modules/request/index.js:53:10)
        at /usr/local/lib/node_modules/anigrab/node_modules/request/index.js:100:12
        at request (/usr/local/lib/node_modules/anigrab/src/request.js:39:34)
        at async Object.get (/usr/local/lib/node_modules/anigrab/src/request.js:55:20)
        at async Object.getAnime (/usr/local/lib/node_modules/anigrab/src/sites/animeidhentai.js:93:12)
        at async main (/usr/local/lib/node_modules/anigrab/src/cli/index.js:135:19)
  }
}

Node.js v23.8.0

Other details

anigrab version used:

root@3b712987592d:/# anigrab --version
1.11.0

aria2c version:

root@3b712987592d:/# aria2c --version
aria2 version 1.36.0
Copyright (C) 2006, 2019 Tatsuhiro Tsujikawa

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

** Configuration **
Enabled Features: Async DNS, BitTorrent, Firefox3 Cookie, GZip, HTTPS, Message Digest, Metalink, XML-RPC, SFTP
Hash Algorithms: sha-1, sha-224, sha-256, sha-384, sha-512, md5, adler32
Libraries: zlib/1.2.11 libxml2/2.9.10 sqlite3/3.34.1 GnuTLS/3.7.1 nettle GMP/6.2.1 c-ares/1.17.2 libssh2/1.9.0
Compiler: gcc 10.2.1 20210110
  built by  x86_64-pc-linux-gnu
  on        Aug 21 2021 15:26:28
System: Linux 5.15.167.4-microsoft-standard-WSL2 #1 SMP Tue Nov 5 00:21:55 UTC 2024 x86_64

Report bugs to https://github.com/aria2/aria2/issues
Visit https://aria2.github.io/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions