所以我决定从 Postman 切换到 Insomnia,因为某种原因我的 Postman 应用程序一直挂起。一切都很顺利,但我在使用 Insomnia 的多部分表单时遇到了麻烦。我如何在 Insomnia 中访问它?在 Postman 中,我只需要将 profile{location} 作为字段,它就可以工作,但是 Insomnia 给了我一个错误can't read property '0' of undefined
对象结构如下
{
"id": "5e76dd60d49dfd6827688908",
"username": "TLCFan",
"email": "tlc@fan.com",
"profile": {
"avatar": {
"url": "/static/img/defaultAvatar.png"
},
"header": {
"url": "/static/img/defaultBG.png"
},
"forHire": false,
"location": "Bimingham",
"bio": "Design is my life, but this is my story"
}
}