Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🔨 chore(@upstash/qstash): debug 400 error not shown issue (#11000)

Neko2c86cfd877a8
diff --git a/patches/@upstash__qstash.patch b/patches/@upstash__qstash.patch
new file mode 100644
index 00000000000..8d793d36e9b
--- /dev/null
+++ b/patches/@upstash__qstash.patch
@@ -0,0 +1,25 @@
+diff --git a/chunk-RQPZUJXG.mjs b/chunk-RQPZUJXG.mjs
+index d1a9b4a460efc59304ec30e6bc63a127f1aac6d6..6653a61b539aaf91253300436a8072c6c5f666ee 100644
+--- a/chunk-RQPZUJXG.mjs
++++ b/chunk-RQPZUJXG.mjs
+@@ -326,6 +326,20 @@ var HttpClient = class {
+ }
+ if (response.status < 200 || response.status >= 300) {
+ const body = await response.text();
++ // Debug aid: log non-2xx responses to trace publish failures (e.g., 400) with context
++ try {
++ console.error(
++ "[upstash-qstash] request failed",
++ JSON.stringify({
++ status: response.status,
++ url: response.url,
++ headers: Object.fromEntries(response.headers.entries()),
++ body
++ })
++ );
++ } catch {
++ // ignore logging failures to preserve original throw path
++ }
+ throw new QstashError(
+ body.length > 0 ? body : `Error: status=${response.status}`,
+ response.status
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index 13656da796d..bd82441b545 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -1,17 +1,18 @@
packages:
- - 'packages/**'
- - '.'
- - 'e2e'
- - 'apps/desktop/src/main'
+ - packages/**
+ - .
+ - e2e
+ - apps/desktop/src/main
+
+onlyBuiltDependencies:
+ - '@vercel/speed-insights'
overrides:
- jose: ^6.1.3
- stylelint-config-clean-order: 7.0.0
'@lobehub/chat-plugin-sdk>swagger-client': 3.36.0
'@swagger-api/apidom-reference': 1.1.0
+ jose: ^6.1.3
+ stylelint-config-clean-order: 7.0.0
patchedDependencies:
'@swagger-api/apidom-reference': patches/@swagger-api__apidom-reference.patch
-
-onlyBuiltDependencies:
- - '@vercel/speed-insights'
+ '@upstash/qstash': patches/@upstash__qstash.patch