hitrov / oci-arm-host-capacity

This script allows to bypass Oracle Cloud Infrastructure 'Out of host capacity' error immediately when additional OCI capacity will appear in your Home Region / Availability domain.
MIT License
898 stars 449 forks source link

PHP Fatal error: Uncaught Error: Undefined constant "Hitrov\CURLOPT_URL" in /home/asnct/oci-arm-host-capacity/src/OciApi.php:243 #122

Closed asnct closed 4 months ago

asnct commented 4 months ago

After I filled out the .env according to the instructions in the README, I try to run the script and get this:

PHP Fatal error:  Uncaught Error: Undefined constant "Hitrov\CURLOPT_URL" in /home/asnct/oci-arm-host-capacity/src/OciApi.php:243
Stack trace:
#0 /home/asnct/oci-arm-host-capacity/src/OciApi.php(132): Hitrov\OciApi->call()
#1 /home/asnct/oci-arm-host-capacity/index.php(74): Hitrov\OciApi->getInstances()
#2 {main}
  thrown in /home/asnct/oci-arm-host-capacity/src/OciApi.php on line 243
heliopr commented 4 months ago

what did you do to solve this? I'm getting the same error

asnct commented 4 months ago

what did you do to solve this? I'm getting the same error

I installed php-curl

heliopr commented 4 months ago

worked, thank you. that saved me a lot of time