~core/follow/
tries to parse non-JSON out of messages.content
and explodes
#94
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Whenever I go to http://127.0.0.1:12345/~core/follow/ on TildeFriends 0.0.26, I get an error:
here's a screenshot of it happening.
According to the code, it is trying to parse JSON from the
content
column of themessages
table at this point. So something other than JSON has managed to get into that table and also survive thejson_extract
query oncontent
?If I stick in:
Then I get:
Which is indeed not JSON.
I think we meant to
SELECT json(content) FROM messages AS content
, and notSELECT content FROM messages
, because internally it is JSONB and you need the function to convert to text.Nope it has to be
SELECT json(content) AS content FROM messages
, but that works.Yep, that's exactly it. A while back I migrated that column to jsonb and never updated that particular app. Oops! Thanks.