forked from farhoodlabs/paperclip
fix(runtime): handle empty dev runner responses
This commit is contained in:
@@ -74,7 +74,7 @@ export async function parseJsonResponseWithLimit<T>(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!response.body) {
|
if (!response.body) {
|
||||||
return JSON.parse("") as T;
|
throw new Error("Response has no body");
|
||||||
}
|
}
|
||||||
|
|
||||||
const reader = response.body.getReader();
|
const reader = response.body.getReader();
|
||||||
|
|||||||
Reference in New Issue
Block a user