Skip to content

Commit

Permalink
Debug https connection.
Browse files Browse the repository at this point in the history
  • Loading branch information
soniacq committed Dec 20, 2023
1 parent 09cbf1b commit a2f766e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion frontend/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ export const API_URL = 'https://argus-api.hsrn.nyu.edu';
export const RECORDINGS_STATIC_PATH = '/recordings/static/';
export const TEST_USER = 'test';
export const TEST_PASS = 'test';
export const WS_API_URL = API_URL.replace('https://', 'wss://');
// export const WS_API_URL = API_URL.replace('https://', 'wss://');
// export const WS_API_URL = API_URL.replace('http://', 'ws://');
export const WS_API_URL = API_URL.replace('https://', 'wss://').replace('http://', 'ws://');
export const REASONING_CHECK_STREAM = 'reasoning:check_status';
export const REASONING_ENTITIES_STREAM = 'reasoning:entities';
export const DETIC_IMAGE_STREAM = 'detic:image:misc';
Expand Down
9 changes: 7 additions & 2 deletions frontend/src/tabs/LiveDataView/LiveDataView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useEffect } from 'react';
import { Alert, Box, Button, Paper, Typography, Chip } from '@mui/material';
import { useToken } from '../../api/TokenContext';
import { Login } from '../../tabs/RecipesCollectionView/RecipesView';
import { REASONING_CHECK_STREAM, CLIP_ACTION_STEPS_STREAM, DETIC_IMAGE_STREAM, MAIN_STREAM, TEST_PASS, TEST_USER } from '../../config';
import { REASONING_CHECK_STREAM, CLIP_ACTION_STEPS_STREAM, DETIC_IMAGE_STREAM, MAIN_STREAM, TEST_PASS, TEST_USER, API_URL, WS_API_URL } from '../../config';


import LoadingButton from '@mui/lab/LoadingButton';
Expand All @@ -15,7 +15,7 @@ import { ImageView } from './components/StreamDataView/ImageView';
import { ClipOutputsLiveView } from './components/StreamDataView/PerceptionOutputsView';
import { ReasoningOutputsView } from './components/StreamDataView/ReasoningOutputsView';
import DebuggingDataView from '../DebuggingDataView/DebuggingDataView';

import { log } from 'console';

const RecordingControls = () => {
const { recordingId, recordingData, recordingDataError, startError, stopError, finishedRecording, startRecording, stopRecording } = useRecordingControls();
Expand Down Expand Up @@ -60,6 +60,11 @@ const RecordingControls = () => {
const parseTime = (tstr) => new Date(Date.parse(tstr + ' GMT')).toLocaleTimeString()

function LiveVideo() {
console.log("API_URL");
console.log(API_URL);
console.log("WS_API_URL");
console.log(WS_API_URL);

return (
<Box display='flex' justifyContent='center' alignItems='top' height='100%' width='100%'>
<Box
Expand Down

0 comments on commit a2f766e

Please sign in to comment.