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 https://api-uat.dwolla.com/customers timed out: a:26:{s:3:“url”;s:36:“https://api-uat.dwolla.com/customers";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:“198.41.189.225”;s:8:“certinfo”;a:0:{}s:12:“primary_port”;i:443;s:8:“local_ip”;s:12:“10.11.14.209”;s:10:"local_port”;i:55794;}’

Below is my code :slightly_smiling:
error_reporting(E_ALL);
require(‘vendor/autoload.php’);
DwollaSwagger\Configuration::$access_token = ‘mHm2ctwzIZTzIJX12gVmQKDKUfnFLbhpfvpaYSi7tMAFGDWeFA’;
$apiClient = new DwollaSwagger\ApiClient(“https://api-uat.dwolla.com”);

$customersApi = new DwollaSwagger\CustomersApi($apiClient);
$new_customer = $customersApi->create([
‘firstName’ => ‘Jane’,
‘lastName’ => ‘Merchant’,
‘email’ => ‘jmerchant@nomail.net’,
‘ipAddress’ => ‘99.99.99.99’
]);

print($new_customer);


(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”], ‘https://api-uat.dwolla.com/customers/a6e57ad8-a096-4795-a940-a06eb557d695’);

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: amandeep.singh@mobilyte.com,. 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: https://developers.dwolla.com/resources/sandbox-console.html

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!