Skip to content

Commit

Permalink
reset
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Kanzer authored and Aaron Kanzer committed Nov 18, 2024
1 parent 8a85d9f commit 25c21f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/datasource/trk/frontend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,8 @@ export class TrkDataSource extends DataSourceProvider {
options.credentialsManager,
);

console.log(url)

let metadata: any;
try {
metadata = await getMetadata();
Expand All @@ -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(
Expand All @@ -555,7 +560,6 @@ export class TrkDataSource extends DataSourceProvider {
},
);
}

completeUrl(options: CompleteUrlOptions) {
return completeHttpPath(
options.credentialsManager,
Expand Down
1 change: 1 addition & 0 deletions src/datasource/trk/reader/trackProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 25c21f2

Please sign in to comment.