feat: Benchmark env with run scripts (no-changelog) (#10477)

This commit is contained in:
Tomi Turtiainen
2024-08-23 14:43:26 +03:00
committed by GitHub
parent 8403f4aa11
commit a1a1b0a7b4
22 changed files with 955 additions and 15 deletions

View File

@@ -49,6 +49,12 @@ export class N8nApiClient {
} else if (response.status === 400) {
if (responsePayload.message === 'Instance owner already setup')
console.log('Owner already set up');
} else if (response.status === 404) {
// The n8n instance setup owner endpoint not be available yet even tho
// the health endpoint returns ok. In this case we simply retry.
console.log('Owner setup endpoint not available yet, retrying in 1s...');
await this.delay(1000);
await this.setupOwnerIfNeeded(loginDetails);
} else {
throw new Error(
`Owner setup failed with status ${response.status}: ${responsePayload.message}`,