gokatz
06/09/2022, 3:01 AMOperation timed out after 5001 milliseconds with 0 bytes received
when my API used in the cron is taking a long time to resolve. Any idea how to increase the timeout?Needle
06/09/2022, 3:01 AMgaryaustin
06/09/2022, 3:29 AMBy default a 5 second timeout is set for the completion of a request. If a different timeout is desired the following GUC variable can be used to set it in milliseconds:
gokatz
06/09/2022, 3:38 AMgokatz
06/09/2022, 3:39 AMcreate extension if not exists http;
SELECT http_set_curlopt("CURLOPT_TIMEOUT_MS", 1000);
but got column "CURLOPT_TIMEOUT_MS" does not exist
gokatz
06/09/2022, 3:40 AMgokatz
06/09/2022, 3:40 AMgaryaustin
06/09/2022, 3:42 AM