Getting timeout Error while using API

(Amandeep Singh) #1

Hi Team,

I am trying to implement API in php but i am getting belwo error. Please check this

Fatal error: Uncaught exception ‘DwollaSwagger\ApiException’ with message ‘API call to timed out: a:26:{s:3:“url”;s:36:“";s:12:“content_type”;N;s:9:“http_code”;i:0;s:11:“header_size”;i:0;s:12:“request_size”;i:0;s:8:“filetime”;i:-1;s:17:“ssl_verify_result”;i:1;s:14:“redirect_count”;i:0;s:10:“total_time”;d:0.0309999999999999997779553950749686919152736663818359375;s:15:“namelookup_time”;d:0;s:12:“connect_time”;d:0.01600000000000000033306690738754696212708950042724609375;s:16:“pretransfer_time”;d:0;s:11:“size_upload”;d:0;s:13:“size_download”;d:0;s:14:“speed_download”;d:0;s:12:“speed_upload”;d:0;s:23:“download_content_length”;d:-1;s:21:“upload_content_length”;d:-1;s:18:“starttransfer_time”;d:0;s:13:“redirect_time”;d:0;s:12:“redirect_url”;s:0:"";s:10:“primary_ip”;s:14:“”;s:8:“certinfo”;a:0:{}s:12:“primary_port”;i:443;s:8:“local_ip”;s:12:“”;s:10:"local_port”;i:55794;}’

Below is my code :slightly_smiling:
DwollaSwagger\Configuration::$access_token = ‘mHm2ctwzIZTzIJX12gVmQKDKUfnFLbhpfvpaYSi7tMAFGDWeFA’;
$apiClient = new DwollaSwagger\ApiClient(“”);

$customersApi = new DwollaSwagger\CustomersApi($apiClient);
$new_customer = $customersApi->create([
‘firstName’ => ‘Jane’,
‘lastName’ => ‘Merchant’,
‘email’ => ‘’,
‘ipAddress’ => ‘’


(Spencer Hunter) #2

@Amandeep_singh, I am unable to recreate the issue. Were you able to retry this same request with any success, and are you running into this when calling any other endpoints?

(Amandeep Singh) #3

@spencer, I am trying to add this code for add funding but getting blank in responce:

$fundingApi = new DwollaSwagger\FundingsourcesApi($apiClient);

$new_fs = $fundingApi->createCustomerFundingSource(
[“routingNumber”: “021000021”,
“accountNumber”: “9900009606”,
“type”: “saving”,
“name”: “amandeep”], ‘’);

And how i can check these user in sandbox. please update me.

(Spencer Hunter) #4

@Amandeep_singh, We should be responding with a 400 ValidationError as saving is an invalid funding source type. Can you try updating the value to savings to see if you are able to successfully create a new funding source for the Customer?

(Amandeep Singh) #5

I have create a lot of user Using API but can’t see those user in sandbox admin. please tell me how i can check those users. I have create a sandbox account with email:,. Please update me how i can check my own funding id or customer id. so i can add id in transfer API.

(Spencer Hunter) #6

Hi @Amandeep_singh, Are you creating white label Customers via API v2? If you wish to check if the Customer was successfully created you can either: a.) call List Customers, using the access token of the Dwolla account that created that white label Customer. or b.) Login to the White Label Sandbox Console with the account you used to create the Customer. More info on the Sandbox Console here:

Through the API you can GET the Customer by Id, from there you can follow a link to the associated Customer to retrieve the list of funding sources for that Customer.

Reply back if you continue to run into issues and we’d be happy to go into greater detail!