NOT A BUG: List Bucket or Files from Custom S3 (PHP/Wappler Exp. Mode)

======== TEMPLATE BUG FORM ========

Wappler Version : 3.5.7
Operating System : macOS Big Sur
Server Model: PHP
Database Type: -
Hosting Type: Own Server

Expected behavior

What do you think should happen?

List Buckets or Files from S3 from IONOS on PHP Site

Actual behavior

What actually happens?

I get the following error:

{"code":0,"file":"\/usr\/www\/users\/webcode\/dmxConnectLib\/aws\/Aws\/WrappedHttpHandler.php","line":195,"message":"Error executing \"ListBuckets\" on \"https:\/\/https\/\/s3-de-central.profitbricks.com\"; AWS HTTP error: cURL error 6: Could not resolve host: https (see https:\/\/curl.haxx.se\/libcurl\/c\/libcurl-errors.html)","trace":"#0 \/usr\/www\/users\/webcode\/dmxConnectLib\/aws\/Aws\/WrappedHttpHandler.php(97): Aws\\WrappedHttpHandler->parseError(Array, Object(GuzzleHttp\\Psr7\\Request), Object(Aws\\Command), Array)\n#1 \/usr\/www\/users\/webcode\/dmxConnectLib\/aws\/GuzzleHttp\/Promise\/Promise.php(203): Aws\\WrappedHttpHandler->Aws\\{closure}(Array)\n#2 \/usr\/www\/users\/webcode\/dmxConnectLib\/aws\/GuzzleHttp\/Promise\/Promise.php(174): GuzzleHttp\\Promise\\Promise::callHandler(2, Array, Array)\n#3 \/usr\/www\/users\/webcode\/dmxConnectLib\/aws\/GuzzleHttp\/Promise\/RejectedPromise.php(40): GuzzleHttp\\Promise\\Promise::GuzzleHttp\\Promise\\{closure}(Array)\n#4 \/usr\/www\/users\/webcode\/dmxConnectLib\/aws\/GuzzleHttp\/Promise\/TaskQueue.php(47): GuzzleHttp\\Promise\\RejectedPromise::GuzzleHttp\\Promise\\{closure}()\n#5 \/usr\/www\/users\/webcode\/dmxConnectLib\/aws\/GuzzleHttp\/Handler\/CurlMultiHandler.php(118): GuzzleHttp\\Promise\\TaskQueue->run()\n#6 \/usr\/www\/users\/webcode\/dmxConnectLib\/aws\/GuzzleHttp\/Handler\/CurlMultiHandler.php(145): GuzzleHttp\\Handler\\CurlMultiHandler->tick()\n#7 \/usr\/www\/users\/webcode\/dmxConnectLib\/aws\/GuzzleHttp\/Promise\/Promise.php(246): GuzzleHttp\\Handler\\CurlMultiHandler->execute(true)\n#8 \/usr\/www\/users\/webcode\/dmxConnectLib\/aws\/GuzzleHttp\/Promise\/Promise.php(223): GuzzleHttp\\Promise\\Promise->invokeWaitFn()\n#9 \/usr\/www\/users\/webcode\/dmxConnectLib\/aws\/GuzzleHttp\/Promise\/Promise.php(267): GuzzleHttp\\Promise\\Promise->waitIfPending()\n#10 \/usr\/www\/users\/webcode\/dmxConnectLib\/aws\/GuzzleHttp\/Promise\/Promise.php(225): GuzzleHttp\\Promise\\Promise->invokeWaitList()\n#11 \/usr\/www\/users\/webcode\/dmxConnectLib\/aws\/GuzzleHttp\/Promise\/Promise.php(267): GuzzleHttp\\Promise\\Promise->waitIfPending()\n#12 \/usr\/www\/users\/webcode\/dmxConnectLib\/aws\/GuzzleHttp\/Promise\/Promise.php(225): GuzzleHttp\\Promise\\Promise->invokeWaitList()\n#13 \/usr\/www\/users\/webcode\/dmxConnectLib\/aws\/GuzzleHttp\/Promise\/Promise.php(62): GuzzleHttp\\Promise\\Promise->waitIfPending()\n#14 \/usr\/www\/users\/webcode\/dmxConnectLib\/aws\/Aws\/AwsClientTrait.php(58): GuzzleHttp\\Promise\\Promise->wait()\n#15 \/usr\/www\/users\/webcode\/dmxConnectLib\/aws\/Aws\/AwsClientTrait.php(86): Aws\\AwsClient->execute(Object(Aws\\Command))\n#16 \/usr\/www\/users\/webcode\/dmxConnectLib\/modules\/s3.php(80): Aws\\AwsClient->__call('listBuckets', Array)\n#17 \/usr\/www\/users\/webcode\/dmxConnectLib\/lib\/App.php(193): modules\\s3->listBuckets(Object(stdClass), 'listFiles')\n#18 \/usr\/www\/users\/webcode\/dmxConnectLib\/lib\/App.php(127): lib\\App->execSteps(Object(stdClass))\n#19 \/usr\/www\/users\/webcode\/dmxConnectLib\/lib\/App.php(94): lib\\App->exec(Object(stdClass))\n#20 \/usr\/www\/users\/webcode\/dmxConnect\/api\/s3.php(8): lib\\App->define(Object(stdClass))\n#21 {main}"}

How to reproduce

  • Detail a step by step guide to reproduce the issue
  • A screenshot or short video indicating the problem
  • A copy of your code would help. Include: JS, HTML.
  • Test your steps on a clean page to see if you still have an issue

I’m using experimental mode on
Define S3 Provider

Create Server Action with either List Bucket or List Files from S3

=> I don’t have any problems with NodeJS - only PHP

Use endpoint without the https://, so it becomes s3-de-central.profitbricks.com.

1 Like

@patrick thank you for your help. I have it set up with https:// in NodeJS and it works, that’s why I was wondering.