phdbutbachelor opened a new issue, #1950: URL: https://github.com/apache/shiro/issues/1950
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/shiro/issues?q=is%3Aissue) and found no similar issues. ### Question I'm developing a Springboot Application, I want to return a SseEmitter to front end: ` @PostMapping("/chat") public SseEmitter chat(@RequestBody JsonObject data) throws IOException { String _conversationId = Optional.ofNullable(data.get("conversationId")) .map(i -> i.isJsonNull() ? null : i.getAsString()).orElse(null); String _cardId = data.get("cardId").getAsString(); String _message = data.get("message").getAsString(); Result<Card> _record = cardRepository.get(_cardId, false); if (_record.isOK()) { return llmService.chat(_conversationId, _record.data.getEnterprise().getDataBaseId(), _message); } else { SseEmitter _sse = new SseEmitter(0L); _sse.send(_record); _sse.complete(); return _sse; } } ` when the program reached _sse.complete(), it throws a Exception, here are the stacks: -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@shiro.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@shiro.apache.org For additional commands, e-mail: issues-h...@shiro.apache.org