简体   繁体   中英

I'm trying to connect to an Azure service bus queue using PHP and I keep getting this error

Fatal error: Uncaught exception 'GuzzleHttp\\Exception\\RequestException' with message 'cURL error 1: Protocol "sb" not supported or disabled in libcurl (see http://curl.haxx.se/libcurl/c/libcurl-errors.html )' in /Applications/XAMPP/xamppfiles/htdocs/297R/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:187 Stack trace: #0 /Applications/XAMPP/xamppfiles/htdocs/297R/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(150): GuzzleHttp\\Handler\\CurlFactory::createRejection(Object(GuzzleHttp\\Handler\\EasyHandle), Array) #1 /Applications/XAMPP/xamppfiles/htdocs/297R/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(103): GuzzleHttp\\Handler\\CurlFactory::finishError(Object(GuzzleHttp\\Handler\\CurlHandler), Object(GuzzleHttp\\Handler\\EasyHandle), Object(GuzzleHttp\\Handler\\CurlFactory)) #2 /Applications/XAMPP/xamppfiles/htdocs/297R/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(43): GuzzleHttp\\Handler\\CurlFactory::finish(Object(GuzzleHttp\\Handler\\CurlHandler), Object(GuzzleHttp\\Handler \\EasyHandle), Object(GuzzleHttp\\Handle in /Applications/XAMPP/xamppfiles/htdocs/297R/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 187

I can't find anything regarding sb protocol online and I can't do anything with this error.

The Service Bus Endpoint is typically of the format https://[yourNamespace].servicebus.windows.net .

So, to avoid this error you need to replace the Protocol sb with https .

Reference: https://github.com/Azure/azure-sdk-for-php

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM