diff --git a/src/datasource/trk/frontend.ts b/src/datasource/trk/frontend.ts index e6efe50f9..b4d4fe9f3 100644 --- a/src/datasource/trk/frontend.ts +++ b/src/datasource/trk/frontend.ts @@ -513,6 +513,8 @@ export class TrkDataSource extends DataSourceProvider { options.credentialsManager, ); + console.log(url) + let metadata: any; try { metadata = await getMetadata(); @@ -533,7 +535,10 @@ export class TrkDataSource extends DataSourceProvider { throw new RedirectError(redirect); } const t = verifyOptionalObjectProperty(metadata, "@type", verifyString); - + console.log(t) + console.log(options) + console.log(credentialsProvider) + console.log(url) switch (t) { case "neuroglancer_skeletons": return await getSkeletonsDataSource( @@ -555,7 +560,6 @@ export class TrkDataSource extends DataSourceProvider { }, ); } - completeUrl(options: CompleteUrlOptions) { return completeHttpPath( options.credentialsManager, diff --git a/src/datasource/trk/reader/trackProcessor.ts b/src/datasource/trk/reader/trackProcessor.ts index c22c3c74e..35424144f 100644 --- a/src/datasource/trk/reader/trackProcessor.ts +++ b/src/datasource/trk/reader/trackProcessor.ts @@ -45,6 +45,7 @@ export class TrackProcessor { * @param {number} end - The end byte position for the range request. */ async streamAndProcessHeader(url: string, start: number, end: number) { + try { const response = await axios.get(url, { responseType: 'arraybuffer',