Shazam Core

BEZAHLT
Durch Tipsters CO | Aktualisiert il y a 9 jours | Music
Popularität

9.9 / 10

Latenz

1,403ms

Service Level

100%

Health Check

100%

Zurück zu allen Diskussionen

Getting javascript fetch 422, 400 errors

Rapid account: Hardboiledartguy
hardboiledartguy
il y a 2 ans

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 il y a 2 ans

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 il y a 2 ans

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 il y a 2 ans

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

Nehmen Sie an der Diskussion teil - fügen Sie unten einen Kommentar hinzu:

Anmelden / Registrieren, um neue Kommentare zu veröffentlichen