AlexeyDmitriev / JHelper

GNU Lesser General Public License v3.0
119 stars 31 forks source link

"ChromeParser: Got response without body. Ignore." notifications #118

Closed GoBigorGoHome closed 4 years ago

GoBigorGoHome commented 4 years ago

I occasionally saw "ChromeParser: Got response without body. Ignore." message in CLion's Event Log after adding a task through Competitive Companion while there seems nothing wrong. What does that message mean and how to avoid them?

event_log

AlexeyDmitriev commented 4 years ago

CHelper plugin and competitive companoin plugin work in the following way: 1) HTTP server is created on localhost 2) When you click plus button, your browser connects to this HTTP server and sends description of the problem

So, probably either one of the plugins is sending incorrect request or something else is connected to this server. Are you trying to parse some problem at this moment? You can try to investigate further by changing code here https://github.com/AlexeyDmitriev/JHelper/blob/afab6a92e32b0884287a13a1a7d666864ef7e32c/src/name/admitriev/jhelper/network/SimpleHttpServer.java#L36

GoBigorGoHome commented 4 years ago

I just tried to add another task from AtCoder. The same message pops again a few (about 10) seconds after the I click the plus button on the web page and the task added. I have little experience in Java and JetBrains plugin, so I'm afraid there is not much I can do at the moment.

AlexeyDmitriev commented 4 years ago

So you are saying that tasked was added just fine?

GoBigorGoHome commented 4 years ago

Yes.

AlexeyDmitriev commented 4 years ago

Hmm, that's interesting. I'll try to reproduce when I have time. Can you send me the link to the problem which you parsed and let me know which of the extensions have you used? (Competitive companion or CHelper)

GoBigorGoHome commented 4 years ago

I use Competitive companion on Chrome. Try parse this problem https://atcoder.jp/contests/abc164/tasks/abc164_f. I can provide a sample of my CLion project if needed. I use JHelper 0.16.3 and CLion 2020.1.

AlexeyDmitriev commented 4 years ago

No, the project won't be needed, thanks.

AlexeyDmitriev commented 4 years ago

I couldn't reproduce that, I guess something else is trying to connect to your open port. I decided to allow only localhost connections just in case. Change is in master 4697dc230c56f56d6a65a2ecf3d0f1 and will be published in the next version along with next changes