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
After update insomnia version, When i send request as usual, the plugin throw a error Response hook failed SyntaxError: Unexpected token 'o', "[object Promise]" is not valid JSON
The respBody.toString('utf-8') turn to [object Promise] instead of the original response body buffer.
How can i get the original response body buffer in the new version insomnia?
Actual Behavior
The respBody.toString('utf-8') turn to [object Promise] instead of the original response body buffer.
Expected Behavior
I had wrote a local plugin to post-process response. The code as follows:
After update insomnia version, When i send request as usual, the plugin throw a error
Response hook failed SyntaxError: Unexpected token 'o', "[object Promise]" is not valid JSON
The
respBody.toString('utf-8')
turn to[object Promise]
instead of the original response body buffer.How can i get the original response body buffer in the new version insomnia?
Actual Behavior
The respBody.toString('utf-8') turn to [object Promise] instead of the original response body buffer.
Reproduction Steps
No response
Is there an existing issue for this?
Which sync method do you use?
Additional Information
No response
Insomnia Version
Insomnia 11.0.1
What operating system are you using?
macOS
Operating System Version
Darwin arm64 24.0.0
Installation method
download from insomnia.rest
Last Known Working Insomnia version
No response
The text was updated successfully, but these errors were encountered: