Skip to content

Commit

Permalink
core: downgrade to node v18 for keep alive issues on fetch (#304)
Browse files Browse the repository at this point in the history
  • Loading branch information
ramiroaisen authored Apr 21, 2024
2 parents cd242d1 + ac87d3a commit c581ba3
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/front-admin-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

strategy:
matrix:
node-version: [20.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/front-admin-typecheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

strategy:
matrix:
node-version: [20.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/front-server-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:

strategy:
matrix:
node-version: [20.x]
node-version: [18.x]

steps:
- name: Skip Duplicate Actions
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/front-server-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

strategy:
matrix:
node-version: [20.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/front-studio-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

strategy:
matrix:
node-version: [20.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/front-studio-typecheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

strategy:
matrix:
node-version: [20.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
node-version: [20.x]
node-version: [18.x]

steps:

Expand Down
6 changes: 3 additions & 3 deletions front/packages/client/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ const qss = (v: any) => {
return qs.stringify(v, { addQueryPrefix: true, skipNulls: true })
}

const http_agent = new http.Agent({ keepAlive: true });
const https_agent = new https.Agent({ keepAlive: true });
const http_agent = new http.Agent({ keepAlive: false });
const https_agent = new https.Agent({ keepAlive: false });

export class Client {

Expand Down Expand Up @@ -624,7 +624,7 @@ export class StationFiles {
return await this.client.delete(ip, ua, token, `/stations/${station_id}/files/${file_id}`);
}

async post(ip: string | null, ua: string | null, token: string, station_id: string, content_type: string, content_length: number, query: import("./defs/api/stations/[station]/files/POST/Query.js").Query, data: Readable): Promise<import("./defs/api/stations/[station]/files/POST/Output.js").Output> {
async post(ip: string | null, ua: string | null, token: string, station_id: string, content_type: string, content_length: number, query: import("./defs/api/stations/[station]/files/POST/Query.js").Query, data: Readable | Buffer): Promise<import("./defs/api/stations/[station]/files/POST/Output.js").Output> {

const headers = new Headers();

Expand Down

0 comments on commit c581ba3

Please sign in to comment.