@hunt-labs/bytekit-mcp 0.1.3 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/README.md +1 -3
- package/dist/cli.d.ts +3 -5
- package/dist/cli.js +4 -6
- package/dist/client.d.ts +34 -12
- package/dist/client.js +111 -16
- package/dist/docs-bundle/docs-bundle.json +96 -76
- package/dist/docs-bundle/load-bundle.d.ts +7 -4
- package/dist/docs-bundle/load-bundle.js +10 -5
- package/dist/docs-bundle/load-bundle.test.d.ts +9 -0
- package/dist/docs-bundle/load-bundle.test.js +50 -0
- package/dist/lib/render-screenshot.d.ts +18 -0
- package/dist/lib/render-screenshot.js +38 -0
- package/dist/tools/get-account.js +3 -1
- package/dist/tools/get-doc.js +1 -1
- package/dist/tools/get-result.js +4 -12
- package/dist/tools/screenshot-url.js +5 -17
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,40 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
8
8
|
This file records only the delta between versions. For how to use the package
|
|
9
9
|
today, see [README.md](./README.md), which remains the authoritative usage guide.
|
|
10
10
|
|
|
11
|
+
## [0.2.0] - 2026-07-21
|
|
12
|
+
|
|
13
|
+
### Removed (**BREAKING**)
|
|
14
|
+
|
|
15
|
+
- The legacy `RAPIDCRAWL_API_KEY` environment-variable fallback (kept as a
|
|
16
|
+
one-minor-version bridge in #2421) is removed. Use `BYTEKIT_API_KEY` (or the
|
|
17
|
+
`--api-key` flag). (#2473)
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
|
|
21
|
+
- Tool-surface drift against the live API (#2477):
|
|
22
|
+
- `screenshot_url`'s `device` enum is now `desktop` / `mobile` — `tablet` was
|
|
23
|
+
422-rejected by the API.
|
|
24
|
+
- Screenshot results render the spec field names (`image_width`,
|
|
25
|
+
`image_height`, `file_size_bytes`); the removed `format` field is gone.
|
|
26
|
+
- `get_result` renders a failed job's envelope (`Status: failed` +
|
|
27
|
+
`error.code`/`error.message`) instead of `undefined` lines, and omits
|
|
28
|
+
`Credits: null` for pending rows.
|
|
29
|
+
- `get_account` no longer renders `Account: null` when the account has no
|
|
30
|
+
name.
|
|
31
|
+
- `get_doc`'s description example uses a real bundle key.
|
|
32
|
+
- Server errors now surface diagnostics instead of a generic failure: any
|
|
33
|
+
non-2xx with a parseable API envelope renders its `code` + `message`
|
|
34
|
+
(e.g. 503 `blocked`, 400 `invalid_url`), 422 includes `error.details`, and
|
|
35
|
+
`Retry-After` (including HTTP-date or garbage values) is parsed to a bounded
|
|
36
|
+
retry delay instead of `setTimeout(NaN)`. Specific 401/402/429 mappings still
|
|
37
|
+
win. (#2478)
|
|
38
|
+
|
|
39
|
+
### Changed
|
|
40
|
+
|
|
41
|
+
- The bundled offline docs (`get_doc`/`list_docs`/`search_docs`) are
|
|
42
|
+
regenerated: 96 pages, now including the TypeScript SDK `usage` and
|
|
43
|
+
`webhooks` reference pages and dropping removed content. (#2469)
|
|
44
|
+
|
|
11
45
|
## [0.1.3] - 2026-07-16
|
|
12
46
|
|
|
13
47
|
### Changed (**BREAKING**)
|
|
@@ -59,6 +93,7 @@ today, see [README.md](./README.md), which remains the authoritative usage guide
|
|
|
59
93
|
(scrape, screenshot, search, docs) to AI agents over the Model Context Protocol,
|
|
60
94
|
as a local stdio server or hosted.
|
|
61
95
|
|
|
96
|
+
[0.2.0]: https://github.com/Hunt-Labs-Inc/ByteKit/tree/main/packages/mcp-server
|
|
62
97
|
[0.1.3]: https://github.com/Hunt-Labs-Inc/ByteKit/tree/main/packages/mcp-server
|
|
63
98
|
[0.1.2]: https://github.com/Hunt-Labs-Inc/ByteKit/tree/main/packages/mcp-server
|
|
64
99
|
[0.1.1]: https://github.com/Hunt-Labs-Inc/ByteKit/tree/main/packages/mcp-server
|
package/README.md
CHANGED
|
@@ -84,12 +84,10 @@ Client config for a stdio server (`claude_desktop_config.json` and equivalents):
|
|
|
84
84
|
|
|
85
85
|
### API-key resolution order
|
|
86
86
|
|
|
87
|
-
The local server resolves the key in this order
|
|
88
|
-
working:
|
|
87
|
+
The local server resolves the key in this order:
|
|
89
88
|
|
|
90
89
|
1. `--api-key <key>` flag
|
|
91
90
|
2. `BYTEKIT_API_KEY` environment variable
|
|
92
|
-
3. `RAPIDCRAWL_API_KEY` environment variable (legacy fallback)
|
|
93
91
|
|
|
94
92
|
## Tool inventory
|
|
95
93
|
|
package/dist/cli.d.ts
CHANGED
|
@@ -9,10 +9,9 @@
|
|
|
9
9
|
/**
|
|
10
10
|
* Resolve the API key from, in precedence order:
|
|
11
11
|
* 1. the `--api-key` flag
|
|
12
|
-
* 2. the `BYTEKIT_API_KEY` env var
|
|
13
|
-
* 3. the `RAPIDCRAWL_API_KEY` env var (legacy fallback, kept working)
|
|
12
|
+
* 2. the `BYTEKIT_API_KEY` env var
|
|
14
13
|
*
|
|
15
|
-
* An empty-string / absent flag falls through to the env
|
|
14
|
+
* An empty-string / absent flag falls through to the env var. Returns
|
|
16
15
|
* `undefined` when no usable key is present.
|
|
17
16
|
*
|
|
18
17
|
* Exported (and factored out of the CLI bootstrap) so the precedence contract
|
|
@@ -35,13 +34,12 @@ export declare const DEFAULT_BASE_URL = "https://api.bytekit.com";
|
|
|
35
34
|
* Mirrors {@link resolveApiKey}'s shape (empty/absent flag falls through). This is the single
|
|
36
35
|
* base-URL resolution site for the binary; the `parseArgs` option deliberately carries NO
|
|
37
36
|
* `default:` so an absent flag yields `undefined` here rather than shadowing the env fallback.
|
|
38
|
-
* The MCP server never had a legacy `RAPIDCRAWL_BASE_URL` var, so none is honored.
|
|
39
37
|
*/
|
|
40
38
|
export declare function resolveBaseUrl(opts: {
|
|
41
39
|
flag?: string | undefined;
|
|
42
40
|
env: Record<string, string | undefined>;
|
|
43
41
|
}): string;
|
|
44
|
-
export declare const HELP_TEXT = "ByteKit MCP Server\n\nUsage:\n bytekit-mcp --api-key <key> [--base-url <url>] [--verbose]\n\nOptions:\n --api-key ByteKit API key. Resolution order: --api-key flag, then\n BYTEKIT_API_KEY
|
|
42
|
+
export declare const HELP_TEXT = "ByteKit MCP Server\n\nUsage:\n bytekit-mcp --api-key <key> [--base-url <url>] [--verbose]\n\nOptions:\n --api-key ByteKit API key. Resolution order: --api-key flag, then\n BYTEKIT_API_KEY.\n --base-url API base URL. Resolution order: --base-url flag, then\n BYTEKIT_BASE_URL (default: https://api.bytekit.com)\n --verbose Log requests to stderr\n --help Show this help message\n";
|
|
45
43
|
/**
|
|
46
44
|
* True when this module is the process entrypoint (run directly or via its bin),
|
|
47
45
|
* false when it is merely imported (e.g. the test suite exercising resolveApiKey).
|
package/dist/cli.js
CHANGED
|
@@ -14,10 +14,9 @@ import { createServer, BytekitClient } from './index.js';
|
|
|
14
14
|
/**
|
|
15
15
|
* Resolve the API key from, in precedence order:
|
|
16
16
|
* 1. the `--api-key` flag
|
|
17
|
-
* 2. the `BYTEKIT_API_KEY` env var
|
|
18
|
-
* 3. the `RAPIDCRAWL_API_KEY` env var (legacy fallback, kept working)
|
|
17
|
+
* 2. the `BYTEKIT_API_KEY` env var
|
|
19
18
|
*
|
|
20
|
-
* An empty-string / absent flag falls through to the env
|
|
19
|
+
* An empty-string / absent flag falls through to the env var. Returns
|
|
21
20
|
* `undefined` when no usable key is present.
|
|
22
21
|
*
|
|
23
22
|
* Exported (and factored out of the CLI bootstrap) so the precedence contract
|
|
@@ -26,7 +25,7 @@ import { createServer, BytekitClient } from './index.js';
|
|
|
26
25
|
*/
|
|
27
26
|
export function resolveApiKey(opts) {
|
|
28
27
|
const flag = opts.flag && opts.flag.length > 0 ? opts.flag : undefined;
|
|
29
|
-
return flag ?? opts.env['BYTEKIT_API_KEY']
|
|
28
|
+
return flag ?? opts.env['BYTEKIT_API_KEY'];
|
|
30
29
|
}
|
|
31
30
|
export const API_KEY_REQUIRED_MESSAGE = 'Error: API key required. Use --api-key or set the BYTEKIT_API_KEY environment variable.\n';
|
|
32
31
|
/** The API host the server defaults to when no flag and no env var resolve a base URL. */
|
|
@@ -40,7 +39,6 @@ export const DEFAULT_BASE_URL = 'https://api.bytekit.com';
|
|
|
40
39
|
* Mirrors {@link resolveApiKey}'s shape (empty/absent flag falls through). This is the single
|
|
41
40
|
* base-URL resolution site for the binary; the `parseArgs` option deliberately carries NO
|
|
42
41
|
* `default:` so an absent flag yields `undefined` here rather than shadowing the env fallback.
|
|
43
|
-
* The MCP server never had a legacy `RAPIDCRAWL_BASE_URL` var, so none is honored.
|
|
44
42
|
*/
|
|
45
43
|
export function resolveBaseUrl(opts) {
|
|
46
44
|
const flag = opts.flag && opts.flag.length > 0 ? opts.flag : undefined;
|
|
@@ -53,7 +51,7 @@ Usage:
|
|
|
53
51
|
|
|
54
52
|
Options:
|
|
55
53
|
--api-key ByteKit API key. Resolution order: --api-key flag, then
|
|
56
|
-
BYTEKIT_API_KEY
|
|
54
|
+
BYTEKIT_API_KEY.
|
|
57
55
|
--base-url API base URL. Resolution order: --base-url flag, then
|
|
58
56
|
BYTEKIT_BASE_URL (default: https://api.bytekit.com)
|
|
59
57
|
--verbose Log requests to stderr
|
package/dist/client.d.ts
CHANGED
|
@@ -55,27 +55,36 @@ export interface SearchResponse {
|
|
|
55
55
|
export interface ScreenshotParams {
|
|
56
56
|
url: string;
|
|
57
57
|
full_page?: boolean | undefined;
|
|
58
|
-
device?: 'desktop' | 'mobile' |
|
|
58
|
+
device?: 'desktop' | 'mobile' | undefined;
|
|
59
59
|
format?: 'png' | 'jpeg' | undefined;
|
|
60
60
|
}
|
|
61
|
+
/** Nested error shape carried by the #2027 failed-screenshot envelope. */
|
|
62
|
+
export interface ScreenshotError {
|
|
63
|
+
code?: string;
|
|
64
|
+
message?: string;
|
|
65
|
+
http_status?: number;
|
|
66
|
+
failed_at?: string;
|
|
67
|
+
}
|
|
61
68
|
export interface ScreenshotResult {
|
|
62
|
-
id
|
|
63
|
-
url
|
|
69
|
+
id?: string;
|
|
70
|
+
url?: string;
|
|
64
71
|
status: string;
|
|
65
|
-
image_url?: string;
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
credits_charged?: number;
|
|
72
|
+
image_url?: string | null;
|
|
73
|
+
page_title?: string | null;
|
|
74
|
+
image_width?: number | null;
|
|
75
|
+
image_height?: number | null;
|
|
76
|
+
file_size_bytes?: number | null;
|
|
77
|
+
credits_charged?: number | null;
|
|
78
|
+
/** Present only on the #2027 failed envelope. */
|
|
79
|
+
error?: ScreenshotError;
|
|
71
80
|
created_at?: string;
|
|
72
|
-
completed_at?: string;
|
|
73
|
-
expires_at?: string;
|
|
81
|
+
completed_at?: string | null;
|
|
82
|
+
expires_at?: string | null;
|
|
74
83
|
}
|
|
75
84
|
export interface AccountResult {
|
|
76
85
|
id: string;
|
|
77
86
|
email: string;
|
|
78
|
-
name: string;
|
|
87
|
+
name: string | null;
|
|
79
88
|
plan: {
|
|
80
89
|
id: string;
|
|
81
90
|
slug: string;
|
|
@@ -107,6 +116,19 @@ export declare class BytekitApiError extends Error {
|
|
|
107
116
|
readonly errorCode?: string | undefined;
|
|
108
117
|
constructor(message: string, statusCode: number, errorCode?: string | undefined);
|
|
109
118
|
}
|
|
119
|
+
/**
|
|
120
|
+
* Parse an HTTP `Retry-After` header into a bounded delay in milliseconds.
|
|
121
|
+
*
|
|
122
|
+
* Handles all three real-world forms without ever producing `NaN`:
|
|
123
|
+
* - delta-seconds (e.g. `"120"`) → seconds × 1000
|
|
124
|
+
* - HTTP-date (e.g. `"Wed, 21 Oct 2026 07:28:00 GMT"`) → milliseconds until that instant
|
|
125
|
+
* - absent / garbage → {@link DEFAULT_RETRY_AFTER_MS}
|
|
126
|
+
*
|
|
127
|
+
* The result is always clamped to `[0, MAX_RETRY_AFTER_MS]`. Before this guard,
|
|
128
|
+
* an HTTP-date header flowed through `parseInt` → `NaN` → `setTimeout(NaN)`,
|
|
129
|
+
* collapsing the backoff to an immediate retry (issue #2478).
|
|
130
|
+
*/
|
|
131
|
+
export declare function parseRetryAfterMs(headerValue: string | null | undefined): number;
|
|
110
132
|
export declare class BytekitClient {
|
|
111
133
|
private readonly baseUrl;
|
|
112
134
|
private readonly apiKey;
|
package/dist/client.js
CHANGED
|
@@ -12,6 +12,47 @@ export class BytekitApiError extends Error {
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
// ============================================================
|
|
15
|
+
// Retry-After parsing
|
|
16
|
+
// ============================================================
|
|
17
|
+
/** Default retry delay (ms) when Retry-After is absent or unparseable. */
|
|
18
|
+
const DEFAULT_RETRY_AFTER_MS = 1000;
|
|
19
|
+
/** Upper bound (ms) on any computed retry delay, so a hostile/huge header can't stall. */
|
|
20
|
+
const MAX_RETRY_AFTER_MS = 30_000;
|
|
21
|
+
/**
|
|
22
|
+
* Parse an HTTP `Retry-After` header into a bounded delay in milliseconds.
|
|
23
|
+
*
|
|
24
|
+
* Handles all three real-world forms without ever producing `NaN`:
|
|
25
|
+
* - delta-seconds (e.g. `"120"`) → seconds × 1000
|
|
26
|
+
* - HTTP-date (e.g. `"Wed, 21 Oct 2026 07:28:00 GMT"`) → milliseconds until that instant
|
|
27
|
+
* - absent / garbage → {@link DEFAULT_RETRY_AFTER_MS}
|
|
28
|
+
*
|
|
29
|
+
* The result is always clamped to `[0, MAX_RETRY_AFTER_MS]`. Before this guard,
|
|
30
|
+
* an HTTP-date header flowed through `parseInt` → `NaN` → `setTimeout(NaN)`,
|
|
31
|
+
* collapsing the backoff to an immediate retry (issue #2478).
|
|
32
|
+
*/
|
|
33
|
+
export function parseRetryAfterMs(headerValue) {
|
|
34
|
+
if (headerValue == null)
|
|
35
|
+
return DEFAULT_RETRY_AFTER_MS;
|
|
36
|
+
const trimmed = headerValue.trim();
|
|
37
|
+
if (trimmed === '')
|
|
38
|
+
return DEFAULT_RETRY_AFTER_MS;
|
|
39
|
+
// delta-seconds: a bare non-negative integer.
|
|
40
|
+
if (/^\d+$/.test(trimmed)) {
|
|
41
|
+
const seconds = Number(trimmed);
|
|
42
|
+
if (!Number.isFinite(seconds))
|
|
43
|
+
return DEFAULT_RETRY_AFTER_MS;
|
|
44
|
+
return Math.min(Math.max(seconds * 1000, 0), MAX_RETRY_AFTER_MS);
|
|
45
|
+
}
|
|
46
|
+
// HTTP-date form.
|
|
47
|
+
const whenMs = Date.parse(trimmed);
|
|
48
|
+
if (!Number.isNaN(whenMs)) {
|
|
49
|
+
const deltaMs = whenMs - Date.now();
|
|
50
|
+
return Math.min(Math.max(deltaMs, 0), MAX_RETRY_AFTER_MS);
|
|
51
|
+
}
|
|
52
|
+
// Unparseable garbage.
|
|
53
|
+
return DEFAULT_RETRY_AFTER_MS;
|
|
54
|
+
}
|
|
55
|
+
// ============================================================
|
|
15
56
|
// Client
|
|
16
57
|
// ============================================================
|
|
17
58
|
export class BytekitClient {
|
|
@@ -98,7 +139,7 @@ export class BytekitClient {
|
|
|
98
139
|
// 429: retry once with Retry-After
|
|
99
140
|
if (response.status === 429) {
|
|
100
141
|
const retryAfter = response.headers.get('Retry-After');
|
|
101
|
-
const waitMs =
|
|
142
|
+
const waitMs = parseRetryAfterMs(retryAfter);
|
|
102
143
|
if (this.verbose) {
|
|
103
144
|
process.stderr.write(`[mcp] Rate limited, retrying after ${waitMs}ms\n`);
|
|
104
145
|
}
|
|
@@ -132,6 +173,13 @@ export class BytekitClient {
|
|
|
132
173
|
}
|
|
133
174
|
async handleErrorResponse(response) {
|
|
134
175
|
const status = response.status;
|
|
176
|
+
// Parse the body once, tolerating a non-JSON payload (e.g. a load-balancer
|
|
177
|
+
// HTML error page) without crashing. Prefer the canonical unified envelope
|
|
178
|
+
// ({ error: { code, message, details } }, gateway issue #699).
|
|
179
|
+
const envelope = await parseErrorEnvelope(response);
|
|
180
|
+
// ── Specific status mappings win over the generic envelope (precedence) ──
|
|
181
|
+
// These carry deliberate, actionable guidance and must beat the raw
|
|
182
|
+
// server-supplied code/message even when an envelope is present (issue #2478).
|
|
135
183
|
if (status === 401) {
|
|
136
184
|
throw new BytekitApiError('Invalid API key. Check your BYTEKIT_API_KEY.', 401, 'invalid_api_key');
|
|
137
185
|
}
|
|
@@ -139,24 +187,71 @@ export class BytekitClient {
|
|
|
139
187
|
throw new BytekitApiError('Bandwidth quota exhausted. Check usage with get_account.', 402, 'quota_exceeded');
|
|
140
188
|
}
|
|
141
189
|
if (status === 422) {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
const envelopeMsg = typeof body.error === 'object' ? body.error?.message : undefined;
|
|
146
|
-
detail =
|
|
147
|
-
envelopeMsg ??
|
|
148
|
-
body.message ??
|
|
149
|
-
(typeof body.error === 'string' ? body.error : undefined) ??
|
|
150
|
-
detail;
|
|
151
|
-
}
|
|
152
|
-
catch {
|
|
153
|
-
// ignore parse errors
|
|
154
|
-
}
|
|
155
|
-
throw new BytekitApiError(detail, 422, 'validation_error');
|
|
190
|
+
const base = envelope.message ?? 'Validation error.';
|
|
191
|
+
const detail = envelope.details !== undefined ? `${base} (${formatErrorDetails(envelope.details)})` : base;
|
|
192
|
+
throw new BytekitApiError(detail, 422, envelope.code ?? 'validation_error');
|
|
156
193
|
}
|
|
194
|
+
// ── Generic envelope rendering: any other non-2xx that carried a parseable
|
|
195
|
+
// API envelope surfaces the server's own code + message so the agent can act
|
|
196
|
+
// on it (e.g. 503 `blocked`, 400 `invalid_url`, 404 `not_found`). ──
|
|
197
|
+
if (envelope.code !== undefined && envelope.message !== undefined) {
|
|
198
|
+
throw new BytekitApiError(`${envelope.code}: ${envelope.message}`, status, envelope.code);
|
|
199
|
+
}
|
|
200
|
+
// ── Fallbacks: no parseable envelope. Report the status line, never a
|
|
201
|
+
// misleading retry hint (retrying a non-retryable failure won't help). ──
|
|
157
202
|
if (status >= 500) {
|
|
158
|
-
throw new BytekitApiError(
|
|
203
|
+
throw new BytekitApiError(`ByteKit API error (HTTP ${status}).`, status, 'server_error');
|
|
159
204
|
}
|
|
160
205
|
throw new BytekitApiError(`Unexpected API error (HTTP ${status}).`, status, 'unknown_error');
|
|
161
206
|
}
|
|
162
207
|
}
|
|
208
|
+
/**
|
|
209
|
+
* Read an error response body into a normalized `{ code, message, details }`
|
|
210
|
+
* envelope. Recognizes the canonical unified shape
|
|
211
|
+
* (`{ error: { code, message, details } }`) and legacy flat shapes
|
|
212
|
+
* (`{ message }`, `{ error: '<string>' }`). Returns an empty object for a
|
|
213
|
+
* non-JSON or non-object body — the caller then falls back to a status-line
|
|
214
|
+
* message instead of crashing (issue #2478, E1).
|
|
215
|
+
*/
|
|
216
|
+
async function parseErrorEnvelope(response) {
|
|
217
|
+
let body;
|
|
218
|
+
try {
|
|
219
|
+
body = await response.json();
|
|
220
|
+
}
|
|
221
|
+
catch {
|
|
222
|
+
return {};
|
|
223
|
+
}
|
|
224
|
+
if (typeof body !== 'object' || body === null)
|
|
225
|
+
return {};
|
|
226
|
+
const b = body;
|
|
227
|
+
// Canonical unified envelope: `error` is an object with code/message/details.
|
|
228
|
+
if (typeof b.error === 'object' && b.error !== null) {
|
|
229
|
+
const err = b.error;
|
|
230
|
+
const parsed = {};
|
|
231
|
+
if (typeof err.code === 'string')
|
|
232
|
+
parsed.code = err.code;
|
|
233
|
+
if (typeof err.message === 'string')
|
|
234
|
+
parsed.message = err.message;
|
|
235
|
+
if (err.details !== undefined)
|
|
236
|
+
parsed.details = err.details;
|
|
237
|
+
return parsed;
|
|
238
|
+
}
|
|
239
|
+
// Legacy flat shapes: a top-level `message`, or an `error` string.
|
|
240
|
+
const parsed = {};
|
|
241
|
+
if (typeof b.message === 'string')
|
|
242
|
+
parsed.message = b.message;
|
|
243
|
+
else if (typeof b.error === 'string')
|
|
244
|
+
parsed.message = b.error;
|
|
245
|
+
return parsed;
|
|
246
|
+
}
|
|
247
|
+
/** Render an error `details` value as a compact human-readable string. */
|
|
248
|
+
function formatErrorDetails(details) {
|
|
249
|
+
if (typeof details === 'string')
|
|
250
|
+
return details;
|
|
251
|
+
try {
|
|
252
|
+
return JSON.stringify(details);
|
|
253
|
+
}
|
|
254
|
+
catch {
|
|
255
|
+
return String(details);
|
|
256
|
+
}
|
|
257
|
+
}
|