Skip to content

Fix: repos with a lot of links causes axios timeout #12

@Tamir198

Description

@Tamir198

This service is calling another service:

https://github.com/Deadlink-Hunter/Broken-Link-Checker

That returns a list of links with broken or not status, it looks like this:

const links = await githubRepoService.getLinksFromReadme(randomRepo);

This is inside the server.ts file.

The problem is that when we have a repo with a lot of links those requests takes too much time and we are getting out of time error form axios.

We need to incread API_TIMEOUT constant to 45000 so that the server will be able to run for more than 10 seconds

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions