alibaba / alibaba/fastjson2

[QUESTION] 使用FastJsonHttpMessageConverter,sseEmitter.send的数据浏览器无法识别为event stream

Open
#2,454 8 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Java
Stars
4.4k
Forks
613
Avg merge
1d 22h
Merged PRs (30d)
6

Description

![image](https://github.com/alibaba/fastjson2/assets/46948334/c1fbd3ce-5c2c-4d83-9f7c-3098bf7a32b9)
如截图,响应多了双引号,导致数据不符合eventstream格式

Contributor guide

Open the contributing guide

Research direction

Start by examining how FastJsonHttpMessageConverter handles data passed to sseEmitter.send and compare the response with the event-stream format shown in the issue. Reproduce the response and confirm that the completed output is recognized by the browser as an event stream without the extra quotes.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.