-
Notifications
You must be signed in to change notification settings - Fork 9
Description
Is this a hackmd.io issue?
Yes
- Yes, the bug happens on https://hackmd.io
- No. If it's a self-hosted CodiMD instance, please fire up the issue in the repo of CodiMD: https://github.com/hackmdio/codimd
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:
- Set up a server on the US East region or use an internet connection with bandwidth between 20-70 Mbps.
- Attempt to pull notes using the HackMD API.
- Observe that the notes fail to display.
- Switch to a server on the US West region or use GitHub Codespaces.
- Attempt to pull notes using the same HackMD API.
- 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.