mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3825] [Issue]: Bound and classify Giphy proxy failures #2065
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#2065
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Xelvanis on GitHub (Jul 19, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3825
Summary
The Giphy proxy has no explicit outbound timeout and does not map network failures or malformed upstream responses into stable API errors.
Expected behavior
Giphy requests should stop after a bounded interval. Timeouts should return
504, while network failures, non-success responses, and invalid response bodies should return a stable502without exposing upstream bodies or producing unusable GIF entries.Actual behavior
The route calls
fetchwithout an explicit timeout. A rejected fetch can escape the route's response mapping, and response data is projected with looseanyaccess that can emit entries with empty URLs when Giphy returns an unexpected shape.Steps to reproduce
GIPHY_API_KEYin a source checkout./api/gifs/searchwith the upstream connection stalled, rejected, or returning an invalid response shape.Environment
Logs, screenshots, or video
Focused local route proof confirmed Undici timeout errors are promise rejections that require explicit mapping. No API key or upstream response body is included here.
Additional context
The client already has a distinct setup state for a missing Giphy key. This issue concerns requests made after a key is configured.
Template check