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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

All changes that impact users of this module are documented in this file, in the [Common Changelog](https://common-changelog.org) format with some additional specifications defined in the CONTRIBUTING file. This codebase adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased [patch]

> Development of this release was supported by the [European Commission](https://commission.europa.eu/) for its [VLOPs/VLOSEs instance](https://code.europa.eu/dsa/terms-and-conditions-database/vlops-and-vloses/).

### Fixed

- Fix tracking when proxy configuration is provided

## 9.2.0 - 2025-11-05

_Full changeset and discussions: [#1173](https://github.com/OpenTermsArchive/engine/pull/1173)._
Expand Down
4 changes: 2 additions & 2 deletions src/archivist/fetcher/htmlOnlyFetcher.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import AbortController from 'abort-controller';
import convertBody from 'fetch-charset-detection'; // eslint-disable-line import/no-unresolved
import HttpProxyAgent from 'http-proxy-agent';
import HttpsProxyAgent from 'https-proxy-agent';
import { HttpProxyAgent } from 'http-proxy-agent';
import { HttpsProxyAgent } from 'https-proxy-agent';
import nodeFetch, { AbortError } from 'node-fetch';

import { resolveProxyConfiguration } from './proxyUtils.js';
Expand Down
7 changes: 5 additions & 2 deletions src/archivist/recorder/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ export default class Recorder {
return Promise.all([ this.versionsRepository.initialize(), this.snapshotsRepository.initialize() ]);
}

finalize() {
return Promise.all([ this.versionsRepository.finalize(), this.snapshotsRepository.finalize() ]);
async finalize() {
// Close repositories sequentially to avoid race conditions when both repositories use the same MongoDB connection (same server/database).
// Parallel closing can cause "Operation interrupted because client was closed" errors, especially on Windows.
await this.versionsRepository.finalize();
await this.snapshotsRepository.finalize();
}

getLatestSnapshot(terms, sourceDocumentId) {
Expand Down
Loading