~mlb/linkhut#11: 
Descriptions getting truncated?

Most of my descriptions are getting truncated as I post them with the API. Maybe I'm running into the character limit for GET requests.

Status
RESOLVED NOT_OUR_BUG
Submitter
Sandra Snan
Assigned to
Submitted
7 months ago
Updated
4 months ago
Labels
No labels applied.

~mlb 7 months ago

Could you share some examples? There are hard limits in the schema for the title and the notes of a link, but I'm surprised that the request succeeds with a truncated string instead of simply failing.

~mlb closed duplicate ticket #12 7 months ago

~mlb closed duplicate ticket #12 7 months ago

Sandra Snan 7 months ago · edit

I don't know how to link to entries on ln.ht but my username on there is 2097 and one examplemis when I linked to http://lists.squeakfoundation.org/pipermail/squeak-dev/1998-October/017019.HTML with the description:

“I’m sorry that I long ago coined the term “objects” for this topic because it gets many people to focus on the lesser idea.

The big idea is “messaging”.“

I dunno—I think everyone who survived SICP will run up to the limits of message-passing dispatch sooner rather than later. I’d rather have multimethods (which is why I implemented pattern-matching generics that can dispatch on any predicate, not just interned strings). But, standing on the shoulders of etc.

and it got truncated to

“I

This could be a bug on my end, I'm not sure.

~mlb 7 months ago

It's interesting that it cut just before the single quote ('), depending on how you invoked the API it could have been the result of not escaping appropriately the string payload.

As for the size, it seems to be below 500 chars, so well within the limit of the notes field.

$ wc -c << EOF
“I’m sorry that I long ago coined the term “objects” for this topic because it gets many people to focus on the lesser idea.
The big idea is “messaging”.“
I dunno—I think everyone who survived SICP will run up to the limits of message-passing dispatch sooner rather than later. I’d rather have multimethods (which is why I implemented pattern-matching generics that can dispatch on any predicate, not just interned strings). But, standing on the shoulders of etc.
EOF
482

Sandra Snan 7 months ago · edit

Here is another example:

https://lemmy.world/post/465785

It got truncated to

A good list of Lemmy

from:

A good list of Lemmy apps. I sometimes browse around in mlmym a bit, but mostly I just use an RSS reader since Lemmy’s RSS support is so good.

Sandra Snan 7 months ago · edit

I think the bug is on my end. I use a couple of different scripts to interact with ln.ht—the ones written in dash shell (using curl) have never had a problem, the one written in Apple's dumb "Shortcuts" app often has.

Sandra Snan 5 months ago · edit

The problem was definitively on my end. This issue can be closed. Thank you for taking a look at it.

~mlb REPORTED NOT_OUR_BUG 4 months ago

Register here or Log in to comment, or comment via email.