{"record":{"id":"f33ba4e042c8c75e","repo":"twentyhq/twenty","slug":"no-response-from-server","errorCode":null,"errorMessage":"No response from server","messagePattern":"No response from server","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/http-request-action/hooks/useTestHttpRequest.ts","lineNumber":105,"sourceCode":"          ? substitutedBodyRaw\n          : undefined;\n\n      const input: TestHttpRequestInput = {\n        url: substitutedUrl as string,\n        method: httpRequestFormData.method,\n        headers: substitutedHeaders as Record<string, string>,\n        body: substitutedBody,\n      };\n\n      const result = await mutate({\n        variables: { input },\n      });\n\n      const duration = Date.now() - startTime;\n      const response = result?.data?.testHttpRequest;\n\n      if (!response) {\n        throw new Error('No response from server');\n      }\n\n      if (response.success === true) {\n        const resultData = isString(response.result)\n          ? response.result\n          : JSON.stringify(response.result, null, 2);\n        const language = isObject(response.result) ? 'json' : 'plaintext';\n\n        setHttpRequestTestData((prev) => ({\n          ...prev,\n          output: {\n            data: resultData,\n            status: response.status ?? 200,\n            statusText: response.statusText ?? 'OK',\n            headers: response.headers ?? {},\n            duration,\n            error: undefined,\n          },","sourceCodeStart":87,"sourceCodeEnd":123,"githubUrl":"https://github.com/twentyhq/twenty/blob/1f5dd2bbd2a8da3419c8cfd52dd545c0024df1a6/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/http-request-action/hooks/useTestHttpRequest.ts#L87-L123","documentation":"Thrown inside useTestHttpRequest when the Apollo `testHttpRequest` mutation resolves but `result.data.testHttpRequest` is undefined/falsy. The request did not surface a server-side error (no GraphQL error thrown by Apollo), yet no payload came back, indicating a partial/empty response or a selection-set/codegen mismatch.","triggerScenarios":"GraphQL response returns 200 with the testHttpRequest field missing from data (e.g., only partial data due to a server exception caught into the errors array that Apollo swallowed). Apollo cache returns a stale object without the field. Codegen drift where the selection set no longer matches the operation document.","commonSituations":"Network hiccup producing a partial response. Server-side exception during the outbound HTTP probe that the resolver catches and returns as `{ data: null }`. Mismatched generated GraphQL types after a schema change without re-running graphql:generate.","solutions":["Check the network response in DevTools for the testHttpRequest query and inspect both data and errors.","Re-run `npx nx run twenty-front:graphql:generate` to resync operation documents with the schema.","Verify the backend testHttpRequest resolver is not silently returning null on caught errors."],"exampleFix":"const response = result?.data?.testHttpRequest;\n// before: if (!response) { throw new Error('No response from server'); }\n// after:  if (!response) {\n//           throw new Error(result?.errors?.[0]?.message ?? 'No response from server');\n//         }","handlingStrategy":"try-catch","validationCode":"const hasTestHttpRequestPayload = (r: typeof result): boolean =>\n  isDefined(r?.data?.testHttpRequest);","typeGuard":"type TestHttpResp = NonNullable<NonNullable<TestHttpRequestMutation['testHttpRequest']>>;\nconst isTestHttpResponse = (v: unknown): v is TestHttpResp =>\n  typeof v === 'object' && v !== null && 'success' in v;","tryCatchPattern":"// already wrapped in try/catch in the hook; enrich the 'No response' branch:\nif (!response) {\n  throw new Error(result?.errors?.[0]?.message ?? 'No response from server');\n}","preventionTips":["Keep generated GraphQL operations in sync: re-run graphql:generate after schema changes.","Log the raw mutation result (data + errors) when testHttpRequest is unexpectedly absent to diagnose partial responses.","Have the resolver throw instead of returning null on internal exceptions."],"tags":["graphql","apollo","network","workflow","http-request"],"backgroundTag":null,"analyzedSha":"1f5dd2bbd2a8da3419c8cfd52dd545c0024df1a6","analyzedAt":"2026-08-12T15:37:27.593Z","schemaVersion":2},"datasetVersion":"2026-08-12T18:17:37.767Z"}