Couldn't create a unique link, please select a longer sequence of words.
The thing is the fragment-generation-utils returns a status which specifies numerous different reasons for fragment generation failure.
export const GenerateFragmentStatus = {
SUCCESS: 0, // A fragment was generated.
INVALID_SELECTION: 1, // The selection provided could not be used.
AMBIGUOUS: 2, // No unique fragment could be identified for this selection.
TIMEOUT: 3, // Computation could not complete in time.
EXECUTION_FAILED: 4 // An exception was raised during generation.
};
In the instance referenced above the util fails due to timeout. When I overwrite the timeoutDurationMs to be 2000 (instead of 500) I am able to obtain a link with text fragment.
When I try to make a particular text fragment on a particular document that is super long the extension fails and I am presented with a message that says:
The thing is the fragment-generation-utils returns a status which specifies numerous different reasons for fragment generation failure.
But the extension reports them to the user all in the same way.
In the instance referenced above the util fails due to timeout. When I overwrite the
timeoutDurationMs
to be 2000 (instead of 500) I am able to obtain a link with text fragment.