nefertiti icon indicating copy to clipboard operation
nefertiti copied to clipboard

NEF in listen mode (aka as a HTTP server): DELETE requests always error

Open TaipeiHere opened this issue 3 years ago • 1 comments

In the medium.com post it says that when removing a bot you will not receive a response back by design. However, since we're using an HTTP request we still get a response even if it is an error. When sending a DELETE request, the hub deletes the bot fine but it always returns an ERROR status saying Connection was forcibly closed by a peer. I have tried to write conditionals to check for that specific error code so I can catch it, but seems like its a system error and I can't stop it from being thrown.

Can we change this to maybe use a HTTP 303 redirect, or send back any other status code that we can try to grab?

author: https://github.com/d00vy

TaipeiHere avatar Dec 21 '21 06:12 TaipeiHere

Originally posted by @d00vy in https://github.com/svanas/nefertiti/issues/48#issuecomment-977111707

TaipeiHere avatar Dec 21 '21 06:12 TaipeiHere