DocumentReference External URL Handling
# support
b
Hi Medplum team, I’m running into an issue with DocumentReference resources that use external URLs, specifically those coming from Medsender’s fax service. Previously, our fax workflow worked seamlessly. A bot would create a DocumentReference with an external URL (for example, storage.googleapis.com/m7r-rec/...). The system would then automatically process that file — downloading it, uploading it into Medplum’s binary storage, and updating the DocumentReference to point to the Medplum-hosted URL. After that, users could safely tag or rename the document within the app. Recently, the automatic “System” processing step seems to have stopped happening. The DocumentReference resources are still created with external URLs, but they’re never copied into Medplum’s storage. After a few minutes, those external URLs expire and the files become unavailable. When I compare working and non-working examples, healthy records show three versions — Bot → System → User — while the recent ones skip the system step entirely, showing only Bot → User. There haven’t been any code changes on our side, so this behavior appears to have started recently. Could you clarify whether Medplum previously had a built-in feature that automatically processed external URLs in DocumentReference resources? If so, has that feature been changed, disabled, or removed? Thank you so much for your help, Borna
c
Hi @Borna Doroudi | Empallo - the auto downloading feature is still live. Do you have an example of a DocumentReference resource ID that failed to automatically process? There was an intermittent issue for about ~1 hour on Monday due to an AWS bug processing files over 5 MB. We rolled it back as soon as the issue was identified, but there was a brief period where large uploads failed. Perhaps that could be related? If you send a DocumentReference ID, we can take a look. Apologies for any inconveniences.
b
Hi Cody, thank you for the clarification. Unfortunately the issue still persists. We received a fax today and the System step is missing. The DocumentReference ID is: 4c320b55-67eb-4646-b51d-87e02db983e2 I really appreciate your help! https://cdn.discordapp.com/attachments/1425207240272515092/1425529018026819716/Screenshot_2025-10-08_at_1.01.26_PM.png?ex=68e7eada&is=68e6995a&hm=ce89d476f40e4606205c6fff4482cbc4bd0285e9d3539e91b33c8a06f5a87d6c&
r
HI @Borna Doroudi | Empallo we're working on resolving this issue - we appreciate your patience
b
Hi Rahul, thank you I very much appreciate it.
Hi team, checking in if there are any updates regarding this issue? Thank you!
r
HI @Borna Doroudi | Empallo , the underlying issue was a backup in our background donwloading queue
We're working with some of our customers to whitelist some of their traffic to reduce load on the downloaders
@Borna Doroudi | Empallo we've made this fix - hopefully you can see improved performance now
b
Thank you Rahul and team. Very much appreciated!
61 Views