You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried converting HAR with Headers and Query Parameters to Powershell, which worked as expected. But when provided with body it throws this error.
TypeError: Cannot read properties of undefined (reading 'toString')
at escapeString (escape.js?056a:43:1)
at convert (common.js?aa75:formatted:54:35)
at eval (httpsnippet.js?8e8e:238:67)
at Array.map (<anonymous>)
at HTTPSnippet.convert (httpsnippet.js?8e8e:238:1)
at CodeView (index.js?c905:33:43)
at renderWithHooks (react-dom.development.js?3c4a:16305:1)
at updateFunctionComponent (react-dom.development.js?3c4a:19588:1)
at beginWork (react-dom.development.js?3c4a:21601:1)
at beginWork$1 (react-dom.development.js?3c4a:27426:1)
at performUnitOfWork (react-dom.development.js?3c4a:26557:1)
at workLoopSync (react-dom.development.js?3c4a:26466:1)
at renderRootSync (react-dom.development.js?3c4a:26434:1)
at performSyncWorkOnRoot (react-dom.development.js?3c4a:26085:1)
at flushSyncCallbacks (react-dom.development.js?3c4a:12042:1)
at eval (react-dom.development.js?3c4a:25651:1)
Did you happen to try the same, but without newline characters in the body? I wonder if it has to do with the escape character used for newlines in PowerShell strings being a backtick instead of a backslash. Removing the newlines to see if that works would be a worthwhile test.
Another test worth running would be doubly-escaping the newlines (i.e. "text": "{\\n \"name\": \"somename\"\\n}",, since you're not trying to escape the n characters in the json property value, but in the converted string.
I tried converting HAR with
Headers
andQuery Parameters
to Powershell, which worked as expected. But when provided with body it throws this error.The HAR request
The text was updated successfully, but these errors were encountered: