提问人:Dhamotharan R 提问时间:11/17/2023 最后编辑:Dhamotharan R 更新时间:11/17/2023 访问量:36
io.netty.handler.codec.http.multipart.HttpPostRequestEncoder$ErrorDataEncoderException:java.io.FileNotFoundException
io.netty.handler.codec.http.multipart.HttpPostRequestEncoder$ErrorDataEncoderException: java.io.FileNotFoundException
问:
你能帮我解决这个问题吗(我遇到错误):
Data:
{
"file":"bird.jpeg"
}
My Graphql query:
mutation UpdateProfilePicture ($file: Upload!) {
singleUpload(file: $file){
done
}
}
功能文件:
Feature: get parent players
Background:
* url baseUrl
Scenario: get parent players details
* def result = call read(loginPath)
* def accessToken = result.accessToken
* print "Access Token : ", accessToken
And header Authorization = 'Bearer ' + accessToken
Given def query = read(gqlBase +'updateProfilePicture.gql')
And request { query: '#(query)'}
* multipart file file = {read:'bird.jpeg', filename:'bird.jpeg',Content-type:'image/jpeg'}
When method post
Then status 200
* print 'response: ', response.data
当我尝试上传图片时,出现以下错误:
io.netty.handler.codec.http.multipart.HttpPostRequestEncoder$ErrorDataEncoderException:java.io.FileNotFoundException]
答: 暂无答案
上一个:角度测试 - 排除特定规范文件
评论