IBM Support

How to fix "NetworkError when attempting to fetch resource" error when executing a time consuming query?

How To


Summary

You might receive the following error when executing a long running query:

The query:
V('DB2_GRAPH.MY_OBJ::myid_xxxxxxx').repeat(both()).until(hasLabel('my label')).path().timeLimit(60000)

Returned the following error:
NetworkError when attempting to fetch resource.

This timeout issue you are encountering is not related to Db2 Graph at all. It is coming from the haproxy configuration in the cluster. In the file /etc/haproxy/haproxy.cfg the settings for timeout client and timeout server were set to 1 minute. In this scenario, the http connection would be closed after one minute of inactivity.

Document Location

Worldwide


[{"Type":"MASTER","Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSEPGG","label":"Db2 for Linux, UNIX and Windows"},"ARM Category":[{"code":"a8m500000008PkpAAE","label":"OTHER - Uncategorized"}],"ARM Case Number":"TS009829699","Platform":[{"code":"PF016","label":"Linux"}],"Version":"11.5.7"}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

More support for:
Db2 for Linux, UNIX and Windows

Component:
OTHER - Uncategorized

Software version:
11.5.7

Operating system(s):
Linux

Document number:
6606261

Modified date:
30 April 2025

UID

ibm16606261

Manage My Notification Subscriptions