mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-22 17:46:08 +03:00
1bf2832714
**Before:**
```
WARNING - POST-11 - Unable to parse JSON: Expecting value: line 1 column 1 (char 0) (b'')
```
**After:**
```
WARNING - POST-11 - Unable to parse JSON from POST /_matrix/client/v3/join/%21ZlmJtelqFroDRJYZaq:hs1?server_name=hs1 response: Expecting value: line 1 column 1 (char 0) (b'')
```
---
It's possible to figure out which endpoint these warnings were coming from before but you had to follow the request ID `POST-11` to the log line that says `Completed request [...]`. Including this key information next to the JSON parsing error makes it much easier to reason whether it matters or not.
```
2022-09-29T08:23:25.7875506Z synapse_main | 2022-09-29 08:21:10,336 - synapse.http.matrixfederationclient - 299 - INFO - POST-11 - {GET-O-13} [hs1] Completed request: 200 OK in 0.53 secs, got 450 bytes - GET matrix://hs1/_matrix/federation/v1/make_join/%21ohtKoQiXlPePSycXwp%3Ahs1/%40charlie%3Ahs2?ver=1&ver=2&ver=3&ver=4&ver=5&ver=6&ver=org.matrix.msc2176&ver=7&ver=8&ver=9&ver=org.matrix.msc3787&ver=10&ver=org.matrix.msc2716v4
```
---
As a note, having no `body` is normal for the `/join` endpoint and it can handle it.
|
||
---|---|---|
.. | ||
.gitignore | ||
13776.feature | ||
13824.feature | ||
13877.feature | ||
13878.feature | ||
13955.docker | ||
13983.misc | ||
13984.misc | ||
13985.misc | ||
13986.misc | ||
13987.misc | ||
13988.misc | ||
13991.misc | ||
13996.feature | ||
13997.feature | ||
14006.misc | ||
14032.feature | ||
14033.misc | ||
14034.bugfix | ||
14040.misc | ||
14041.misc | ||
14043.misc | ||
14044.misc | ||
14046.misc | ||
14050.feature | ||
14053.bugfix | ||
14054.feature | ||
14063.misc | ||
14065.misc | ||
14072.misc | ||
14077.doc | ||
14078.doc | ||
14081.doc | ||
14087.doc | ||
14089.bugfix | ||
14092.misc | ||
14093.doc | ||
14097.misc | ||
14106.removal |