R
RunPod2d ago
light

Stuck when run is triggered via API call but not on dashboard?

I have a project that let's me upload videos on google cloud storage (it is very bare and that's the only thing that it does at the moment). If I trigger the request form serverless dashboard, the job gets completed, but if it is triggered via API it is stuck forever this is what the code looks like:
const requestConfig = {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${runpod.api_key}`,
},
body: JSON.stringify({
input: {
video_path,
audio_path,
},
}),
};

const response = await fetch(https://api.runpod.ai/v2/*****/run`, requestConfig);
const requestConfig = {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${runpod.api_key}`,
},
body: JSON.stringify({
input: {
video_path,
audio_path,
},
}),
};

const response = await fetch(https://api.runpod.ai/v2/*****/run`, requestConfig);
Any Ideas?
No description
No description
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?