Another round of lots of updates to fix little bugs here there and everywhere.
This commit is contained in:
@@ -14,7 +14,7 @@ export let get_object = async function get_object(
|
||||
params = {},
|
||||
data = {},
|
||||
timeout = 60000,
|
||||
// return_meta = false,
|
||||
return_meta = false,
|
||||
return_blob = false,
|
||||
filename = '',
|
||||
auto_download = false,
|
||||
@@ -30,7 +30,7 @@ export let get_object = async function get_object(
|
||||
params?: any,
|
||||
data?: any,
|
||||
timeout?: number,
|
||||
// return_meta?: boolean,
|
||||
return_meta?: boolean,
|
||||
return_blob?: boolean,
|
||||
filename?: null | string,
|
||||
auto_download?: boolean,
|
||||
@@ -105,7 +105,7 @@ export let get_object = async function get_object(
|
||||
for (let attempt = 1; attempt <= retry_count; attempt++) {
|
||||
try {
|
||||
const response = await fetch_method(url.toString(), fetchOptions)
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('API GET Object *fetch* request was aborted or failed in an unexpected way.', error);
|
||||
});
|
||||
clearTimeout(timeoutId);
|
||||
|
||||
Reference in New Issue
Block a user