Shazam Core

ÜCRETLİ
Taraf Tipsters CO | Güncelleyen 9 дней назад | Music
Popülerlik

9.9 / 10

Gecikme

1,403ms

Hizmet Düzeyi

100%

Health Check

100%

Tüm Tartışmalara Dön

Getting javascript fetch 422, 400 errors

Rapid account: Hardboiledartguy
hardboiledartguy
2 года назад

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 года назад

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 года назад

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 года назад

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

Aşağıya yorum ekleyerek tartışmaya katılın:

Yeni yorumlar göndermek için giriş yapın / kaydolun