Skip to content

Getting "script" content seems to truncate characters after a limit #244

Description

@oliv23

Hi,

First of all, thank you for Osmosis! I've been using it for a few years now (yikes) and have only run into a handful of edge-cases issues since.

I'm trying to scrape the content of a <script type="text/json"> tag, and it works to some degree but when I save the output to a file, it's clear that the contents are not full and were truncated at a certain point.

I've logged the length of the content in the console and apparently the portion of the script I'm able to retrieve is 45825 characters. Now the strange thing is, I just tried this again, and now the length is 45873.

I suspect there is something wrong with the parsing of big strings or a hard-coded limit somewhere? Do you have any idea what this could be?

Best,
Olivier

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions