Skip to content

Cannot get property 'link' of undefined. #9

@xaxa-0x3F

Description

@xaxa-0x3F
info: The url return a wrong status code. Maybe the website is down for the moment.
info: [object Object]
(node:1001) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'link' of undefined
    at Object.stream (/home/runner/ahega0/node_modules/@justalk/anime-api/src/animeland/search.js:32:74)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async Promise.all (index 0)
    at async Object.stream (/home/runner/ahega0/node_modules/@justalk/anime-api/src/index.js:35:13)
    at async Command.callback [as _callback] (/home/runner/ahega0/commands/ani.js:30:18)
(node:1001) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:1001) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
info: The url return a wrong status code. Maybe the website is down for the moment.
info: [object Object]

Code I am calling:

const stream = await animeapi.stream('naruto shippuden', 387);

const embed = new MessageEmbed()
.setColor('#FFB6C1')
.setTitle(`Results for Naruto Shippuden | Episode 100`)
.setDescription(stream);

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