summaryrefslogtreecommitdiff
path: root/issues/cd-gn3-configurations.gmi
blob: a9e23600f73398225c843e0e451ae8df4cd26209 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# GN3 API Configurations on CD

## Tags

* assigned: alexm, Bonfacem
* keywords: configurations, CD, API, genenetwork3
* type: bug
* priority: high

## Description

The issue is that there is no straightforward way of knowing how to call the GN3 API from GN2. Multiple configurations, such as GN_SERVER_URL and GN3_LOCAL_URL, exist, making it difficult to understand how to debug.

The `GN_SERVER_URL` which from  config is running on port 8880 results into this error:

```
"HTTPConnectionPool(host='localhost', port=8880): Max retries exceeded with URL: /api/llm/gnqna (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fdd45a8d5a0>: Failed to establish a new connection: [Errno 111] Connection refused'))"
```


## Notes  08/01/2024

The problem arises from GN3's default Gunicorn timeout setting of 30 seconds, causing worker termination if exceeded. Fixing the issue involves adjusting the timeout to 1200, as done in GN2.