Code Monkey home page Code Monkey logo

aliyun-sms's People

Contributors

missmycat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

aliyun-sms's Issues

laravel5.4支持吗?

我是laravel5.4...每次刷新都报错如下:
{#1677 ▼
+"Message": "未开通云通信产品的阿里云客户"
+"RequestId": "9A1FF519-FD2E-45BE-9236-35FB55B0E3DC"
+"Code": "isv.PRODUCT_UN_SUBSCRIPT"
}
配置都是对的,,,工单也问了,服务确实开了,请问是不支持laravel5.4吗?

GuzzleHttp\Exception\BadResponseException

TypeError: Argument 2 passed to GuzzleHttp\Exception\BadResponseException::__construct() must be an instance of Psr\Http\Message\RequestInterface, string given, called in vendor\mrgoon\aliyun-sms-sdk\aliyun-php-sdk-core\DefaultAcsClient.php on line 122

ClientException not found

Mrgoon\AliyunSmsSdk\Http\HttpHelper
未引用 Mrgoon\AliyunSmsSdk\Exception\ClientException
64行throw new ClientException("Server unreachable: Errno: " . curl_errno($ch) . " " . curl_error($ch), "SDK.ServerUnreachable");会出现not found错误

GuzzleHttp\\Exception\\BadResponseException 错误

在使用过程中提示找不到
GuzzleHttp\Exception\ServerException

查看composer,没有安装 guzzlehttp/guzzle,
安装:
composer require guzzlehttp/guzzle

之后出现错误:
Argument 2 passed to GuzzleHttp\Exception\BadResponseException::__construct() must be an instance of Psr\Http\Message\RequestInterface, string given, called in /home/chen/laravel/huayujy/vendor/mrgoon/aliyun-sms-sdk/aliyun-php-sdk-core/DefaultAcsClient.php on line 122

暂时我将其修改为 throw new \Exception()之后解决,出现错误讯息:
Specified access key is not found.

Throw Exception Error

Argument 2 passed to GuzzleHttp\Exception\BadResponseException::__construct() must implement interface Psr\Http\Message\RequestInterface, string given, called in /.../.../vendor/mrgoon/aliyun-sms-sdk/aliyun-php-sdk-core/DefaultAcsClient.php on line 122

(Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Argument 2 passed to GuzzleHttp\Exception\BadResponseException::__construct() must implement interface Psr\Http\Message\RequestInterface, string given, called in /.../.../vendor/mrgoon/aliyun-sms-sdk/aliyun-php-sdk-core/DefaultAcsClient.php on line 122 at

看了下源码,有个参数传的貌似有问题?

引用的GuzzleHttp包是哪个版本的?

我的laravel5.4好像没有这个包,引入"guzzlehttp/guzzle": "~6.0"提示构造函数参数类型不对

Type error: Argument 2 passed to GuzzleHttp\Exception\BadResponseException::__construct() must be an instance of Psr\Http\Message\RequestInterface, string given, called in X:\Users\bajian\Desktop\code\server\washingcar\vendor\mrgoon\aliyun-sms-sdk\aliyun-php-sdk-core\DefaultAcsClient.php on line 122

 
引用

throw new ServerException($respObject->Message, $respObject->Code, $httpStatus, $respObject->RequestId);

类中构造函数

public function __construct(
        $message,
        RequestInterface $request,
        ResponseInterface $response = null,
        \Exception $previous = null,
        array $handlerContext = []
    )

未开通云通信产品的阿里云客户

{#1461 ▼
+"Message": "未开通云通信产品的阿里云客户"
+"RequestId": "982DDFD1-621D-495A-81B9-77DE64C42E42"
+"Code": "isv.PRODUCT_UN_SUBSCRIPT"
}

明明在阿里控制台已经开通了啊

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.