Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImageOutpaint报Parse Request Parameters Error #12

Open
yoke1990 opened this issue Jul 10, 2023 · 0 comments
Open

ImageOutpaint报Parse Request Parameters Error #12

yoke1990 opened this issue Jul 10, 2023 · 0 comments

Comments

@yoke1990
Copy link

报错信息:
{
"code": 400,
"data": {
"code": 50204,
"data": null,
"message": "Parse Request Parameters Error",
"request_id": "202307101705470DEE307B7865AF28F183",
"status": 50204,
"time_elapsed": "6.005664ms"
},
"msg": "Parse Request Parameters Error"
}

检查多次,调整多种方式,依然这个报错。Volc\Base\V4Curl 请求的方法,我们也认真看了,实在没发现哪里参数错了,图像增强和人脸融合我们已经成功接入,就这个死活接不进去

请求参数:

定义了:
'ImageOutpaint' => [
'url' => '/',
'method' => 'post',
'config' => [
'query' => [
'Action' => 'ImageOutpaint',
'Version' => '2020-08-26',
],
],
],

BODY:
$body['image_base64'] = [base64_encode(file_get_contents($file))];
$body['x_pref']= 'both';
$body['y_pref']= 'both';
$body['ratio']= 1; //1.00 "1.00"都尝试过
$response = $client->ImageOutpaint(['​form_params​' =>$body]);

Header:
Content-Type : application/x-www-form-urlencoded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant