plank223
plank223

Reputation: 29

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.

Upvotes: 1

Views: 1510

Answers (1)

Aaron Chen
Aaron Chen

Reputation: 9950

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

Upvotes: 4

Related Questions