Skip to content

HackMd API fails to pull notes on lower band-with connections #382

@Taombawkry

Description

@Taombawkry

Is this a hackmd.io issue?

Yes

Read our Official tutorial

It's on https://hackmd.io/c/tutorials/

或是中文版 https://hackmd.io/c/tutorials-tw/

What's the problem

Current behaviour

I am experiencing an issue where the HackMD API fails to pull notes when using US East servers or with lower bandwidth/internet speed providers (averaging 20-70 Mbps). The notes do not display unless I run my API in GitHub Codespaces or change my server location to US West.

Screenshot (optional)

Provide steps to reproduce:

  1. Set up a server on the US East region or use an internet connection with bandwidth between 20-70 Mbps.
  2. Attempt to pull notes using the HackMD API.
  3. Observe that the notes fail to display.
  4. Switch to a server on the US West region or use GitHub Codespaces.
  5. Attempt to pull notes using the same HackMD API.
  6. Observe that the notes display successfully.

Here is a link to the relevant HackMD API file: HackMD API File.

Expected behaviour

The HackMD API should be able to pull and display notes consistently, regardless of the server location (US East or US West) or the bandwidth/internet speed of the provider (within reasonable limits like 20-70 Mbps).

Environment

I use HackMD on:

Desktop

  • OS: Ubuntu (WSL2)
  • Browser: Firefox
  • Browser Version: 90

Mobile

  • Device: Samsung Galaxy S20
  • OS: Android 11
  • Browser: Chrome
  • Version: 91

Additional context

This issue seems to be related to either a bandwidth requirement or a region-specific rendering issue. I have already added rate limiting logic as well as timeout retries, but the problem persists. It only works when using higher-speed connections or servers located in the US West region. This suggests a potential problem with how the HackMD API handles lower bandwidth or specific regions.

My HackMD API file: HackMD API File.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions