Skip to content

Commit 4f9b7f3

Browse files
committed
SCAL-103002 check direct ping to host
1 parent 03e17eb commit 4f9b7f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/embed/base.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,14 +209,14 @@ export const init = (embedConfig: EmbedConfig): AuthEventEmitter => {
209209
if (getEmbedConfig().callPrefetch) {
210210
prefetch(getEmbedConfig().thoughtSpotHost);
211211
}
212-
validateThoughtSpotHost(embedConfig.thoughtSpotHost, authEE);
212+
validateThoughtSpotHost(embedConfig.thoughtSpotHost);
213213
return authEE as AuthEventEmitter;
214214
};
215215

216216

217-
const validateThoughtSpotHost = async (thoughtSpotHost: string, authEE: EventEmitter<AuthStatus | AuthEvent>) => {
217+
const validateThoughtSpotHost = async (thoughtSpotHost: string) => {
218218
try {
219-
const response = await fetch(`${thoughtSpotHost}/config`);
219+
const response = await fetch(`${thoughtSpotHost}`);
220220
if (response.status !== 200) {
221221
logger.error(`Check if Thoughtspot Host is Valid: ${response.statusText}`);
222222
notifyAuthFailure(AuthFailureType.INVALID_TS_HOST);

0 commit comments

Comments
 (0)