AnWeber / httpbook

Quickly and easily send REST, Soap, GraphQL, GRPC, MQTT and WebSocket requests directly within Visual Studio Code
https://httpyac.github.io/
MIT License
58 stars 4 forks source link

websocket response inaccurate rendered as a cell #51

Closed zuisong closed 2 years ago

zuisong commented 2 years ago

steps:

  1. create a notebook has follow content
WS wss://demo.piesocket.com/v3/channel_1?api_key=oCdCMcMPQpbvNjUIzqtvF1d2X2okWpDQj4AwARJuAgtjhzKxVEjQU6IdCjwm&notify_self
  1. send request

them, response has been render as a cell

image

AnWeber commented 2 years ago

@zuisong Hello, thank you for reporting. I have overlooked that. The cause is that the response is written to the * .http file by default, but is not recognized as a response when parsing (only http works, error only with websocket, grpc, sse, ...). Workaround would currently be to disable the setting httpbook.saveWithOutputs, then the response is not saved.

zuisong commented 2 years ago

It works for me, thanks

image

AnWeber commented 2 years ago

But I will also add that it works without workaround :-)

AnWeber commented 2 years ago

Fix will be delivered with the next version of vscode-httpyac. httpbook does not need any update. thx