# I am getting issue when creating dwolla customer in sandbox

**URL:** <https://discuss.dwolla.com/t/i-am-getting-issue-when-creating-dwolla-customer-in-sandbox/7997>\
**Category:** Customers\
**Created:** [April 13, 2022, 11:16am UTC](https://discuss.dwolla.com/t/i-am-getting-issue-when-creating-dwolla-customer-in-sandbox/7997 "2022-04-13T11:16:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohammad\_Javed\_khan](https://sea2.discourse-cdn.com/dwolla/user_avatar/discuss.dwolla.com/mohammad_javed_khan/32/3465_2.png) [@Mohammad\_Javed\_khan](https://discuss.dwolla.com/u/Mohammad_Javed_khan)\
**Post date:** [April 13, 2022, 11:16am UTC](https://discuss.dwolla.com/t/i-am-getting-issue-when-creating-dwolla-customer-in-sandbox/7997/1 "2022-04-13T11:16:56Z")

</div>

DwollaSwagger\ApiException {#542 ▼  
#response\_body: null  
#response\_headers: null  
#message: “API call to [https://api-sandbox.dwolla.com/token](https://api-sandbox.dwolla.com/token) timed out: a:37:{s:3:“url”;s:36:“[https://api-sandbox.dwolla.com/token";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:20;s:14:“redirect\_count”;i:0;s:10:“total\_time”;d:0.123356;s:15:“namelookup\_time”;d:0.042251;s:12:“connect\_time”;d:0.078174;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:13:“104.18.123.12”;s:8:“certinfo”;a:0:{}s:12:“primary\_port”;i:443;s:8:“local\_ip”;s:13:“192.168.101.4”;s:10:“local\_port”;i:55549;s:12:“http\_version”;i:0;s:8:“protocol”;i:2;s:16:“ssl\_verifyresult”;i:0;s:6:“scheme”;s:5:“HTTPS”;s:18:“appconnect\_time\_us”;i:0;s:15:“connect\_time\_us”;i:78174;s:18:“namelookup\_time\_us”;i:42251;s:19:“pretransfer\_time\_us”;i:0;s:16:“redirect\_time\_us”;i:0;s:21:“starttransfer\_time\_us”;i:0;s:13:"total\_time\_us](https://api-sandbox.dwolla.com/token%22;s:12:%22content_type%22;N;s:9:%22http_code%22;i:0;s:11:%22header_size%22;i:0;s:12:%22request_size%22;i:0;s:8:%22filetime%22;i:-1;s:17:%22ssl_verify_result%22;i:20;s:14:%22redirect_count%22;i:0;s:10:%22total_time%22;d:0.123356;s:15:%22namelookup_time%22;d:0.042251;s:12:%22connect_time%22;d:0.078174;s:16:%22pretransfer_time%22;d:0;s:11:%22size_upload%22;d:0;s:13:%22size_download%22;d:0;s:14:%22speed_download%22;d:0;s:12:%22speed_upload%22;d:0;s:23:%22download_content_length%22;d:-1;s:21:%22upload_content_length%22;d:-1;s:18:%22starttransfer_time%22;d:0;s:13:%22redirect_time%22;d:0;s:12:%22redirect_url%22;s:0:%22%22;s:10:%22primary_ip%22;s:13:%22104.18.123.12%22;s:8:%22certinfo%22;a:0:%7B%7Ds:12:%22primary_port%22;i:443;s:8:%22local_ip%22;s:13:%22192.168.101.4%22;s:10:%22local_port%22;i:55549;s:12:%22http_version%22;i:0;s:8:%22protocol%22;i:2;s:16:%22ssl_verifyresult%22;i:0;s:6:%22scheme%22;s:5:%22HTTPS%22;s:18:%22appconnect_time_us%22;i:0;s:15:%22connect_time_us%22;i:78174;s:18:%22namelookup_time_us%22;i:42251;s:19:%22pretransfer_time_us%22;i:0;s:16:%22redirect_time_us%22;i:0;s:21:%22starttransfer_time_us%22;i:0;s:13:%22total_time_us)”;i:123356;} ◀”  
#code: 0  
#file: “D:\xampp\htdocs\KlickChing\_admin\vendor\dwolla\dwollaswagger\lib\ApiClient.php”  
#line: 308  
trace: {▶}  
}

Using this code  
try{  
\DwollaSwagger\Configuration::$username = $this-\>dwolla\_username;  
\DwollaSwagger\Configuration::$password = $this-\>dwolla\_password;  
$apiClient = new \DwollaSwagger\ApiClient($this-\>dwolla\_link);  
$tokensApi = new \DwollaSwagger\TokensApi($apiClient);  
$appToken = $tokensApi-\>token();  
\DwollaSwagger\Configuration::$access\_token = $appToken-\>access\_token;

```
   $customersApi = new \DwollaSwagger\CustomersApi($apiClient);
    
    $customer = $customersApi->create([
      'firstName' => 'First Name',
      'lastName' => 'Last Name',
      'email' => 'anc@gmail.com',
      'type' => 'personal',
      'address1' => 'chowk',
      'city' => 'Lucknow',
      'state' => 'UP',
      'postalCode' => 226003,
      'dateOfBirth' => 18-02-2000,
      'ssn' => 12545
    ]);
  return $customer;
```

---

<div class="post-metadata">

**Author:** ![shreya](https://sea2.discourse-cdn.com/dwolla/user_avatar/discuss.dwolla.com/shreya/32/2154_2.png) [@shreya](https://discuss.dwolla.com/u/shreya)\
**Post date:** [April 13, 2022, 2:55pm UTC](https://discuss.dwolla.com/t/i-am-getting-issue-when-creating-dwolla-customer-in-sandbox/7997/2 "2022-04-13T14:55:37Z")

</div>

Hi @Mohammad_Javed_khan – thanks for reporting! Are there any timestamps you can share when these timeouts occurred and/or any request IDs?

---

<div class="post-metadata">

**Author:** ![Mohammad\_Javed\_khan](https://sea2.discourse-cdn.com/dwolla/user_avatar/discuss.dwolla.com/mohammad_javed_khan/32/3465_2.png) [@Mohammad\_Javed\_khan](https://discuss.dwolla.com/u/Mohammad_Javed_khan)\
**Post date:** [April 20, 2022, 10:23am UTC](https://discuss.dwolla.com/t/i-am-getting-issue-when-creating-dwolla-customer-in-sandbox/7997/3 "2022-04-20T10:23:54Z")

</div>

Thanks problem solved
