noted issue

Signed-off-by: rgrgogu <obsequio.rus@gmail.com>
This commit is contained in:
rgrgogu
2026-07-08 12:18:02 +08:00
parent 8c55b61e29
commit 86fba50b95
2 changed files with 17 additions and 4 deletions
+4
View File
@@ -210,6 +210,9 @@ exports.issueToken = async (req, res) => {
// 3. Requester IP matches the IP that issued the token
//
// Range requests for the same token are allowed (browser seeking).
// TEMPORARY:
// Same with problem from s3.service.js (Line 168-171)
// Investigate the issue ourselves.
exports.streamAsset = async (req, res) => {
const { token } = req.params;
@@ -257,6 +260,7 @@ exports.streamAsset = async (req, res) => {
let presignedUrl;
try {
presignedUrl = await s3.getSignedDownloadUrl(storage_key, 60);
console.log("Presigned URL:", presignedUrl);
} catch (err) {
console.error("[CLIENT][MEDIA][STREAM] Pre-sign failed:", err.message);
return res.status(500).json({ message: "Could not resolve media stream." });