Shazam Core

PAGO
Por Tipsters CO | Atualizado 10 giorni fa | Music
Popularidade

9.9 / 10

Latência

1,403ms

Nível de serviço

100%

Health Check

100%

Voltar para todas as discussões

Getting javascript fetch 422, 400 errors

Rapid account: Hardboiledartguy

Keep getting 422, 400 errors sending mp3 file through fetch. detail: "There was an error parsing the body"
What is the best way to add a file to the body. Code snippet does not include body declaration.

Rapid account: Hardboiledartguy
hardboiledartguy Commented 2 anni fa

Make sure you name input field correctly.
input field has to have a name=“file” attribute as API requires it.

Rapid account: Hardboiledartguy
hardboiledartguy Commented 2 anni fa

Failed to load resource: the server responded with a status of 422 () RapidAPI.js?9bbf:30

Success: Object
detail: Array(1)
0:
loc: Array(2)
0: “body”
1: “file”
length: 2
[[Prototype]]: Array(0)
msg: “field required”
type: “value_error.missing”
[[Prototype]]: Object
length: 1
[[Prototype]]: Array(0)
[[Prototype]]: Object

What field am I missing??

Rapid account: Tipsters
tipsters Commented 2 anni fa

Hi. Email me or telegraph me. And give me examples of the request.

Junte-se à discussão - adicione o comentário abaixo:

Efetue login / inscreva-se para postar novos comentários