Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rdfc/sparql-ingest-processor-ts",
"version": "2.1.6",
"version": "2.1.7",
"description": "SPARQL Update function to be within RDF-Connect pipelines",
"author": "Julián Rojas",
"contributors": [
Expand Down Expand Up @@ -53,4 +53,4 @@
"vite-tsconfig-paths": "^6.1.1",
"vitest": "^4.0.18"
}
}
}
4 changes: 4 additions & 0 deletions src/Utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ export async function doSPARQLRequest(
if (!res.ok) {
throw new Error(`HTTP request failed with code ${res.status} and message: \n${await res.text()}`);
}
// Consume the response body to prevent memory leaks
await res.text();
return;
}

Expand Down Expand Up @@ -199,6 +201,8 @@ export async function doSPARQLRequest(
if (!res.ok) {
throw new Error(`HTTP request failed with code ${res.status} and message: \n${await res.text()}`);
}
// Consume the response body to prevent memory leaks
await res.text();
}
} catch (err: unknown) {
logger.error(`Error while executing SPARQL request: ${(<Error>err).message} - ${(<Error>err).cause}`);
Expand Down