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

无法传到阿里oss 报错如下: #31

Closed
yuzeng84 opened this issue Jul 7, 2022 · 3 comments
Closed

无法传到阿里oss 报错如下: #31

yuzeng84 opened this issue Jul 7, 2022 · 3 comments

Comments

@yuzeng84
Copy link

yuzeng84 commented Jul 7, 2022

http://127.0.0.1:8000/convert/html2image?u=doctron&p=lampnick&uploadKey=1123123123&url=http://www.baidu.com&customClip=true&clipX=0&clipY=0&clipWidth=400&clipHeight=1500&clipScale=2&format=jpeg&Quality=80

报错信息:
{"code":30000000,"message":"worker run process failed.job request timed out","data":null}

/doctron.yaml信息如下:

{

"Doctron": {

    "MaxConvertWorker": 50,

    "Env": "prod",

    "Retry": true,

    "MaxConvertQueue": 60,

    "ConvertTimeout": 10,

    "Uploader": "alioss",

    "Domain": "0.0.0.0:8080",

    "TLSCertFile": "certfile",

    "TLSKeyFile": "keyfile",

    "User": [

        {

            "Username": "doctron",

            "Password": "lampnick"

        }

    ]

},

"Oss": {

    "Endpoint": "oss-cn-hangzhou-internal.aliyuncs.com",

    "AccessKeyId": "LTAI5t7U",

    "AccessKeySecret": "gbFg5soa",

    "BucketName": "images",

    "PrivateServerDomain": "images.r3434.cn"

}

}

另外 ,如何设置 保存到特定目录,如:images/test/

@lampnick
Copy link
Owner

lampnick commented Jul 7, 2022

http://127.0.0.1:8000/convert/html2image?u=doctron&p=lampnick&uploadKey=1123123123&url=http://www.baidu.com&customClip=true&clipX=0&clipY=0&clipWidth=400&clipHeight=1500&clipScale=2&format=jpeg&Quality=80

报错信息: {"code":30000000,"message":"worker run process failed.job request timed out","data":null}

/doctron.yaml信息如下:

{

"Doctron": {

    "MaxConvertWorker": 50,

    "Env": "prod",

    "Retry": true,

    "MaxConvertQueue": 60,

    "ConvertTimeout": 10,

    "Uploader": "alioss",

    "Domain": "0.0.0.0:8080",

    "TLSCertFile": "certfile",

    "TLSKeyFile": "keyfile",

    "User": [

        {

            "Username": "doctron",

            "Password": "lampnick"

        }

    ]

},

"Oss": {

    "Endpoint": "oss-cn-hangzhou-internal.aliyuncs.com",

    "AccessKeyId": "LTAI5t7U",

    "AccessKeySecret": "gbFg5soa",

    "BucketName": "images",

    "PrivateServerDomain": "images.r3434.cn"

}

}

另外 ,如何设置 保存到特定目录,如:images/test/

oss-cn-hangzhou-internal.aliyuncs.com修改成oss-cn-hangzhou.aliyuncs.com

@lampnick
Copy link
Owner

lampnick commented Jul 7, 2022

保存到指定目录: URL 传参数:uploadKey=images/test/test.pdf,这样就行了

@yuzeng84
Copy link
Author

yuzeng84 commented Jul 7, 2022

ok 谢谢 全都解决了

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

2 participants