Skip to content

Flaky rdme update docs: Unexpected token Error #1325

@hschmidtchen

Description

@hschmidtchen

We are running the following command in our CI (multiple times a day):

npx -y [email protected] docs upload ./docs --key=${README_API_KEY} --branch=v1

The job fails in about 20% of the pipeline runs with the following error on one of the uploaded files:

Unexpected token '<', "<!DOCTYPE "... is not valid JSON

The files have not changed in the past days in between the CI runs and yet we see this error from time to time.

I assume that there is an HTTP error thrown from the readme API that is not properly handled by the rdme lib.
Is there a way to debug this like turning on verbose debug logs for the rdme lib?
Knowing the kind of error would probably hint towards a possible solution.

Happy to provide more details if needed!

Metadata

Metadata

Assignees

No one assigned

    Labels

    APIUnderlying issue is with the ReadMe API and not necessarily the `rdme` client itselfbugSomething isn't workingcommand:pagesIssues pertaining to page upload commands (e.g., `docs`, `reference`, `changelog`, `custompages`)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions