Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: POST snapshots to the right endpoint #271

Merged
merged 1 commit into from
Jul 2, 2019
Merged
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 src/utils/sdk-utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Axios from 'axios'
import * as path from 'path'
import {DEFAULT_PORT, HEALTHCHECK_PATH} from '../services/agent-service-constants'
import {DEFAULT_PORT, HEALTHCHECK_PATH, SNAPSHOT_PATH} from '../services/agent-service-constants'
import {logError} from './logger'

export function agentJsFilename() {
Expand All @@ -23,7 +23,7 @@ export async function isAgentRunning() {
}

export async function postSnapshot(body: any) {
const URL = `http://localhost:${DEFAULT_PORT}${HEALTHCHECK_PATH}`
const URL = `http://localhost:${DEFAULT_PORT}${SNAPSHOT_PATH}`
const ONE_HUNDRED_MB_IN_BYTES = 100_000_000

return Axios({
Expand Down