We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c12a2a6 commit e158375Copy full SHA for e158375
src/Exception/ApiException.php
@@ -10,11 +10,6 @@ class ApiException extends UKFastException
10
11
protected $response;
12
13
- /**
14
- * @var string
15
- */
16
- protected $requestId = null;
17
-
18
public function __construct($response)
19
{
20
$response->getBody()->rewind();
@@ -70,7 +65,11 @@ public function getResponse()
70
65
71
66
public function getRequestId()
72
67
73
- return $this->requestId;
68
+ if (!empty($this->response->getHeader('Request-ID'))) {
69
+ return $this->response->getHeader('Request-ID')[0];
+ }
+
+ return null;
74
}
75
76
private function getErrorsFromBody($body)
0 commit comments