fix: attempt to stringify request body before parsing (#36586)

This commit is contained in:
Lakshan Perera authored and GitHub committed 2025-06-22 16:11:09 +08:00
1 parent ab3ed82c60
commit 7960046c96
1 file changed
+1 -1
@@ -159,7 +159,7 @@ export const EdgeFunctionTesterSheet = ({ visible, onClose }: EdgeFunctionTester
// Validate that the body is valid JSON
try {
JSON.parse(values.body)
JSON.parse(JSON.stringify(values.body))
} catch (e) {
form.setError('body', { message: 'Must be a valid JSON string' })
return