PHP - Guzzle\Http\Exception\CurlException - Craft CMS

I'm running into an error with CURL on our staging server when trying to connect to the EventBrite API, despite local and production servers connecting just fine:

[curl] 6: Could not resolve host: www.eventbriteapi.com; Name or service not known [url] https://www.eventbriteapi.com/v3/users/me/owned_events/?status=live%2Cstarted&order_by=start_asc&expand=category%2Cvenue%2Csubcategory%2Cformat%2Corganizer

We checked the curl command on the staging server which is also running normally. Any idea how to fix this?

1 answer

  • answered 2018-05-16 04:35 Shibon

    Check your curl url

    [url] https://www.eventbriteapi.com/v3/users/me/owned_events/?status=live%2Cstarted&order_by=start_asc&expand=category%2Cvenue%2Csubcategory%2Cformat%2Corganizer
    

    change this to

    [url] https://www.eventbriteapi.com/v3/users/me/owned_events?status=live%2Cstarted&order_by=start_asc&expand=category%2Cvenue%2Csubcategory%2Cformat%2Corganizer
    

    remove / after owned_events