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

changing php version 7.4 to 8.0 causes the error - curl_setopt_array(): Argument #2 ($options) must contain only valid cURL options #233

Open
Shohan494 opened this issue Jan 25, 2024 · 0 comments

Comments

@Shohan494
Copy link

Shohan494 commented Jan 25, 2024

Steps to reproduce:

  1. changing php version to 8.0 from 7.4

What should happen:

  1. natuarally it should create the apiContext and continue processing

What happens:

  1. error occurs curl_setopt_array(): Argument 2 ($options) must contain only valid cURL options

Traceback

ValueError:
curl_setopt_array(): Argument #2 ($options) must contain only valid cURL options

  at /var/www/vhosts/domainname/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:70
  at curl_setopt_array()
     (/var/www/vhosts/domainname/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:70)
  at GuzzleHttp\Handler\CurlFactory->create()
     (/var/www/vhosts/domainname/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php:43)
  at GuzzleHttp\Handler\CurlHandler->__invoke()
     (/var/www/vhosts/domainname/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php:28)
  at GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}()
     (/var/www/vhosts/domainname/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php:48)
  at GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}()
     (/var/www/vhosts/domainname/vendor/bunq/sdk_php/src/Http/Handler/HandlerUtil.php:40)
  at bunq\Http\Handler\HandlerUtil::bunq\Http\Handler\{closure}()
     (/var/www/vhosts/domainname/vendor/bunq/sdk_php/src/Http/Handler/HandlerUtil.php:40)
  at bunq\Http\Handler\HandlerUtil::bunq\Http\Handler\{closure}()
     (/var/www/vhosts/domainname/vendor/bunq/sdk_php/src/Http/Handler/HandlerUtil.php:23)
  at bunq\Http\Handler\HandlerUtil::bunq\Http\Handler\{closure}()
     (/var/www/vhosts/domainname/vendor/bunq/sdk_php/src/Http/Handler/HandlerUtil.php:23)
  at bunq\Http\Handler\HandlerUtil::bunq\Http\Handler\{closure}()
     (/var/www/vhosts/domainname/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php:64)
  at GuzzleHttp\PrepareBodyMiddleware->__invoke()
     (/var/www/vhosts/domainname/vendor/guzzlehttp/guzzle/src/Middleware.php:31)
  at GuzzleHttp\Middleware::GuzzleHttp\{closure}()
     (/var/www/vhosts/domainname/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php:71)
  at GuzzleHttp\RedirectMiddleware->__invoke()
     (/var/www/vhosts/domainname/vendor/guzzlehttp/guzzle/src/Middleware.php:63)
  at GuzzleHttp\Middleware::GuzzleHttp\{closure}()
     (/var/www/vhosts/domainname/vendor/guzzlehttp/guzzle/src/HandlerStack.php:75)
  at GuzzleHttp\HandlerStack->__invoke()
     (/var/www/vhosts/domainname/vendor/guzzlehttp/guzzle/src/Client.php:333)
  at GuzzleHttp\Client->transfer()
     (/var/www/vhosts/domainname/vendor/guzzlehttp/guzzle/src/Client.php:169)
  at GuzzleHttp\Client->requestAsync()
     (/var/www/vhosts/domainname/vendor/guzzlehttp/guzzle/src/Client.php:189)
  at GuzzleHttp\Client->request()
     (/var/www/vhosts/domainname/vendor/bunq/sdk_php/src/Http/ApiClient.php:220)
  at bunq\Http\ApiClient->request()
     (/var/www/vhosts/domainname/vendor/bunq/sdk_php/src/Http/ApiClient.php:485)
  at bunq\Http\ApiClient->post()
     (/var/www/vhosts/domainname/vendor/bunq/sdk_php/src/Model/Core/SessionServer.php:67)
  at bunq\Model\Core\SessionServer::create()
     (/var/www/vhosts/domainname/vendor/bunq/sdk_php/src/Context/ApiContext.php:247)
  at bunq\Context\ApiContext->initializeSessionContext()
     (/var/www/vhosts/domainname/vendor/bunq/sdk_php/src/Context/ApiContext.php:392)
  at bunq\Context\ApiContext->resetSession()
     (/var/www/vhosts/domainname/vendor/bunq/sdk_php/src/Context/ApiContext.php:363)
  at bunq\Context\ApiContext->ensureSessionActive()
     (/var/www/vhosts/domainname/vendor/bunq/sdk_php/src/Http/ApiClient.php:238)
  at bunq\Http\ApiClient->initialize()
     (/var/www/vhosts/domainname/vendor/bunq/sdk_php/src/Http/ApiClient.php:214)
  at bunq\Http\ApiClient->request()
     (/var/www/vhosts/domainname/vendor/bunq/sdk_php/src/Http/ApiClient.php:194)
  at bunq\Http\ApiClient->get()
     (/var/www/vhosts/domainname/vendor/bunq/sdk_php/src/Model/Generated/Endpoint/MonetaryAccountBank.php:514)
  at bunq\Model\Generated\Endpoint\MonetaryAccountBank::listing()
     (/var/www/vhosts/domainname/vendor/bunq/sdk_php/src/Context/UserContext.php:112)
  at bunq\Context\UserContext->initMainMonetaryAccount()
     (/var/www/vhosts/domainname/vendor/bunq/sdk_php/src/Context/BunqContext.php:42)
  at bunq\Context\BunqContext::loadApiContext()
     (/var/www/vhosts/domainname/app/Http/Controllers/WefactController.php:370)
  at App\Http\Controllers\WefactController->wefactTest()
     (/var/www/vhosts/domainname/vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54)
  at Illuminate\Routing\Controller->callAction()
     (/var/www/vhosts/domainname/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:45)
  at Illuminate\Routing\ControllerDispatcher->dispatch()
     (/var/www/vhosts/domainname/vendor/laravel/framework/src/Illuminate/Routing/Route.php:262)
  at Illuminate\Routing\Route->runController()
     (/var/www/vhosts/domainname/vendor/laravel/framework/src/Illuminate/Routing/Route.php:205)
  at Illuminate\Routing\Route->run()
     (/var/www/vhosts/domainname/vendor/laravel/framework/src/Illuminate/Routing/Router.php:721)
  at Illuminate\Routing\Router->Illuminate\Routing\{closure}()
     (/var/www/vhosts/domainname/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:128)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
     (/var/www/vhosts/domainname/app/Http/Middleware/IsNotVoiceOfSecretary.php:16)
  at App\Http\Middleware\IsNotVoiceOfSecretary->handle()
     (/var/www/vhosts/domainname/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
     (/var/www/vhosts/domainname/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php:50)
  at Illuminate\Routing\Middleware\SubstituteBindings->handle()
     (/var/www/vhosts/domainname/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
     (/var/www/vhosts/domainname/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php:44)
  at Illuminate\Auth\Middleware\Authenticate->handle()
     (/var/www/vhosts/domainname/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
     (/var/www/vhosts/domainname/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:78)
  at Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle()
     (/var/www/vhosts/domainname/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
     (/var/www/vhosts/domainname/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49)
  at Illuminate\View\Middleware\ShareErrorsFromSession->handle()
     (/var/www/vhosts/domainname/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
     (/var/www/vhosts/domainname/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:121)
  at Illuminate\Session\Middleware\StartSession->handleStatefulRequest()
     (/var/www/vhosts/domainname/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:64)
  at Illuminate\Session\Middleware\StartSession->handle()
     (/var/www/vhosts/domainname/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
     (/var/www/vhosts/domainname/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37)
  at Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle()
     (/var/www/vhosts/domainname/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
     (/var/www/vhosts/domainname/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:67)
  at Illuminate\Cookie\Middleware\EncryptCookies->handle()
     (/var/www/vhosts/domainname/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
     (/var/www/vhosts/domainname/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:103)
  at Illuminate\Pipeline\Pipeline->then()
     (/var/www/vhosts/domainname/vendor/laravel/framework/src/Illuminate/Routing/Router.php:723)
  at Illuminate\Routing\Router->runRouteWithinStack()
     (/var/www/vhosts/domainname/vendor/laravel/framework/src/Illuminate/Routing/Router.php:698)
  at Illuminate\Routing\Router->runRoute()
     (/var/www/vhosts/domainname/vendor/laravel/framework/src/Illuminate/Routing/Router.php:662)
  at Illuminate\Routing\Router->dispatchToRoute()
     (/var/www/vhosts/domainname/vendor/laravel/framework/src/Illuminate/Routing/Router.php:651)
  at Illuminate\Routing\Router->dispatch()
     (/var/www/vhosts/domainname/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:167)
  at Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}()
     (/var/www/vhosts/domainname/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:128)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
     (/var/www/vhosts/domainname/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21)
  at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle()
     (/var/www/vhosts/domainname/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php:31)
  at Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle()
     (/var/www/vhosts/domainname/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
     (/var/www/vhosts/domainname/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21)
  at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle()
     (/var/www/vhosts/domainname/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php:40)
  at Illuminate\Foundation\Http\Middleware\TrimStrings->handle()
     (/var/www/vhosts/domainname/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
     (/var/www/vhosts/domainname/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27)
  at Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle()
     (/var/www/vhosts/domainname/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
     (/var/www/vhosts/domainname/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php:86)
  at Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle()
     (/var/www/vhosts/domainname/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
     (/var/www/vhosts/domainname/vendor/fruitcake/laravel-cors/src/HandleCors.php:38)
  at Fruitcake\Cors\HandleCors->handle()
     (/var/www/vhosts/domainname/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
     (/var/www/vhosts/domainname/vendor/fideloper/proxy/src/TrustProxies.php:57)
  at Fideloper\Proxy\TrustProxies->handle()
     (/var/www/vhosts/domainname/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
     (/var/www/vhosts/domainname/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:103)
  at Illuminate\Pipeline\Pipeline->then()
     (/var/www/vhosts/domainname/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:142)
  at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()
     (/var/www/vhosts/domainname/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:111)
  at Illuminate\Foundation\Http\Kernel->handle()
     (/var/www/vhosts/domainname/public/index.php:52)              

SDK version and environment

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

1 participant