词汇错误:数字格式错误,减号后需要一个数字?

Ada*_*per 5 algolia

尝试将对象发布到索引时,我收到以下响应:

{
  "message": "lexical error: malformed number, a digit is required after the minus sign. Around '------WebK' near line:1 column:1", "status": 400
}
Run Code Online (Sandbox Code Playgroud)

我能做些什么来解决这个问题?

pix*_*tic 3

您需要将数据作为 JSON 发布到 API 端点,而不是作为form-data表单提交。