video-maker icon indicating copy to clipboard operation
video-maker copied to clipboard

"Request contains an invalid argument"

Open iamgoncalo opened this issue 4 years ago • 4 comments

Olá Pessoal,

Vocês podem-me ajudar? O que deve ser o argumento inválido?


> [text-robot] Sentence: "Beyoncé continued her acting career with starring roles in The Pink Panther , Dreamgirls , and Obsessed ."
> [text-robot] Keywords: acting career, Pink Panther, Beyoncé, roles, Dreamgirls

> [image-robot] Starting...
> [image-robot] Querying Google Images with: "Beyonce"
(node:24986) UnhandledPromiseRejectionWarning: Error: Request contains an invalid argument.
    at Gaxios.<anonymous> (/Users/goncalo/Desktop/Robot/video-maker/node_modules/gaxios/build/src/gaxios.js:73:27)
    at Generator.next (<anonymous>)
    at fulfilled (/Users/goncalo/Desktop/Robot/video-maker/node_modules/gaxios/build/src/gaxios.js:16:58)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:24986) 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:24986) [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.

Muito obrigado!

iamgoncalo avatar Apr 22 '20 10:04 iamgoncalo

Olá Pessoal,

Vocês podem-me ajudar? O que deve ser o argumento inválido?


> [text-robot] Sentence: "Beyoncé continued her acting career with starring roles in The Pink Panther , Dreamgirls , and Obsessed ."
> [text-robot] Keywords: acting career, Pink Panther, Beyoncé, roles, Dreamgirls

> [image-robot] Starting...
> [image-robot] Querying Google Images with: "Beyonce"
(node:24986) UnhandledPromiseRejectionWarning: Error: Request contains an invalid argument.
    at Gaxios.<anonymous> (/Users/goncalo/Desktop/Robot/video-maker/node_modules/gaxios/build/src/gaxios.js:73:27)
    at Generator.next (<anonymous>)
    at fulfilled (/Users/goncalo/Desktop/Robot/video-maker/node_modules/gaxios/build/src/gaxios.js:16:58)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:24986) 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:24986) [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.

Muito obrigado!

Joga o seu código do text-robot aqui pra vermos.

antonino3g avatar Apr 23 '20 18:04 antonino3g

Olá Pessoal, Vocês podem-me ajudar? O que deve ser o argumento inválido?


> [text-robot] Sentence: "Beyoncé continued her acting career with starring roles in The Pink Panther , Dreamgirls , and Obsessed ."
> [text-robot] Keywords: acting career, Pink Panther, Beyoncé, roles, Dreamgirls

> [image-robot] Starting...
> [image-robot] Querying Google Images with: "Beyonce"
(node:24986) UnhandledPromiseRejectionWarning: Error: Request contains an invalid argument.
    at Gaxios.<anonymous> (/Users/goncalo/Desktop/Robot/video-maker/node_modules/gaxios/build/src/gaxios.js:73:27)
    at Generator.next (<anonymous>)
    at fulfilled (/Users/goncalo/Desktop/Robot/video-maker/node_modules/gaxios/build/src/gaxios.js:16:58)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:24986) 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:24986) [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.

Muito obrigado!

Joga o seu código do text-robot aqui pra vermos.

Muito obrigado. Já pus na outra issue!

iamgoncalo avatar Apr 23 '20 20:04 iamgoncalo

UnhandledPromiseRejectionWarning

@iamgoncalo vi seu código, tá tudo certo. Tentei simular seu erro aqui comigo e consegui repetí-lo errando os nomes das variáveis do arquivo /credentials/google-search.json. Verifica se está exatamente igual:

{
  "apiKey": "api_here",
  "searchEngineId": "api_here"
}

antonino3g avatar Apr 24 '20 01:04 antonino3g

Ok consegui! Muito obrigado!!!

iamgoncalo avatar Apr 24 '20 12:04 iamgoncalo