We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4aac72c commit 8b55e96Copy full SHA for 8b55e96
sql/pg_net.sql
@@ -305,15 +305,15 @@ begin
305
from net._http_response
306
where id = request_id;
307
308
- if rec is null then
+ if rec is null or rec.error_msg is not null then
309
-- The request is either still processing or the request_id provided does not exist
310
311
-- TODO: request in progress is indistinguishable from request that doesn't exist
312
313
-- No request matching request_id found
314
return (
315
'ERROR',
316
- 'request matching request_id not found',
+ coalesce(rec.error_msg, 'request matching request_id not found'),
317
null
318
)::net.http_response_result;
319
0 commit comments