8月 31, 2023 - Linux, php开发    nginx请求报错504–upstream timed out (110: Connection timed out) while reading response header from upstream已关闭评论

nginx请求报错504–upstream timed out (110: Connection timed out) while reading response header from upstream

批量下载视频链接,开始用的是GET请求的方式,发现当选择的视频过多,当超过1600视频时,会因为参数过大导致报错.一般get参数的长度支持2k.
解决办法:
换成POST的形式,但是会出现超时的问题:如下
upstream timed out (110: Connection timed out) while reading response header from upstream, client: 121.xx.103.xxx, server: mpace.ivideoforce.com, request: “POST /api/v1/org/1/cp/75/video/bulk/e[……]

Read more

7月 17, 2023 - laravel, php开发    aws的athena的使用-php已关闭评论

aws的athena的使用-php

laravel自带支持aws的s3,故可以直接使用AthenaClient.

2_1先new AthenaClient,初始化参数,如key,secret :

$athena_client = new AthenaClient([
    'version' => 'latest',
    'region' => env('AWS_DEFAULT_REGION'),
    'credentials' => [
        'key' => env('AWS_ACCESS_KEY_ID'),
        'secret' => env([......]

Read more

页面:«1...6789101112...42»