Using token API v8 return false

I tried to use the API here with my credentials but the curl_exec return false

I tried to print the request log. this is the output:

  • Trying **********************…
  • Connected to pulisa.com (***************) port 443 (#0)
  • ALPN, offering h2
  • ALPN, offering http/1.1
  • successfully set certificate verify locations:
  • CAfile: /usr/local/etc/openssl@1.1/cert.pem
    CApath: /usr/local/etc/openssl@1.1/certs
  • SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
  • ALPN, server accepted to use http/1.1
  • Server certificate:
  • subject: CN=*************
  • start date: Jun 2 00:00:00 2020 GMT
  • expire date: Aug 31 23:59:59 2020 GMT
  • subjectAltName: host β€œ**************” matched cert’s β€œ****************”
  • issuer: C=US; ST=TX; L=Houston; O=cPanel, Inc.; CN=cPanel, Inc. Certification Authority
  • SSL certificate verify ok.

POST /Api/access_token HTTP/1.1
Host: ******************
Content-type: application/vnd.api+json
Accept: application/vnd.api+json
Content-Length: 110

  • upload completely sent off: 110 out of 110 bytes
  • old SSL session ID is stale, removing
  • Mark bundle as not supporting multiuse
    < HTTP/1.1 500 Internal Server Error
    < Date: Wed, 03 Jun 2020 06:12:24 GMT
    < Server: Apache
    < Access-Control-Allow-Origin: *
    < Access-Control-Allow-Methods: POST, GET, OPTIONS, PUT
    < Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With
    < Strict-Transport-Security: max-age=63072000; includeSubDomains
    < X-Frame-Options: SAMEORIGIN
    < X-Content-Type-Options: nosniff
    < X-Content-Type-Options: nosniff
    < Content-Length: 0
    < Connection: close
    < Content-Type: text/html; charset=UTF-8
    <
  • Closing connection 0