fix(meteor-backend): PulseVault upload reliability fixes#449
Open
Dharp02 wants to merge 1 commit into
Open
Conversation
Dharp02
commented
Jul 24, 2026
Collaborator
- Upgrade @mieweb/pulsevault 0.1.0 -> 0.1.1 (fixes missing dist/core.js crash on boot in this workspace's installed artifact state)
- Normalize x-forwarded-proto header (comma-separated/odd-cased values from upstream proxy chain caused 400 'Invalid x-forwarded-proto')
- Tune Node HTTP server timeouts (requestTimeout=0, keepAliveTimeout=75s) so slow mobile video uploads aren't killed mid-transfer (was causing uploads to stall at random % and restart from 0)
- Add stale-upload cleanup: retried TUS create POSTs for artifacts whose earlier attempt aborted (ECONNRESET) no longer 409 forever; token-gated so only the upload's own capability token can trigger cleanup
- Persist upload reservations in Mongo (pulsevault_reservations, 24h TTL) instead of an in-memory Map so a server restart between upload-finish and attachment-creation doesn't orphan the file
- Finalize orphaned 'ready' uploads that never got attached
- Fix pulsevault.reserve reusing a completed existingVideoid from the client's stale localStorage cache, which caused the same video to be re-attached to a ticket on every QR re-scan and 409'd real new uploads
- Upgrade @mieweb/pulsevault 0.1.0 -> 0.1.1 (fixes missing dist/core.js crash on boot in this workspace's installed artifact state) - Normalize x-forwarded-proto header (comma-separated/odd-cased values from upstream proxy chain caused 400 'Invalid x-forwarded-proto') - Tune Node HTTP server timeouts (requestTimeout=0, keepAliveTimeout=75s) so slow mobile video uploads aren't killed mid-transfer (was causing uploads to stall at random % and restart from 0) - Add stale-upload cleanup: retried TUS create POSTs for artifacts whose earlier attempt aborted (ECONNRESET) no longer 409 forever; token-gated so only the upload's own capability token can trigger cleanup - Persist upload reservations in Mongo (pulsevault_reservations, 24h TTL) instead of an in-memory Map so a server restart between upload-finish and attachment-creation doesn't orphan the file - Finalize orphaned 'ready' uploads that never got attached - Fix pulsevault.reserve reusing a completed existingVideoid from the client's stale localStorage cache, which caused the same video to be re-attached to a ticket on every QR re-scan and 409'd real new uploads
🚀 Preview Deployment Ready
Preview auto-deletes when this PR is closed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.