CFHTTP add more detail to exception for throwOnError=true

Description

Currently when CFHTTP throws an exception when throwOnError=true is set, it just includes the status code, which lacks context.

lets add request method and the url attribute to the detail of the exception

Message: 404 not found

Detail : GET http://lucee.org/missing.html

but let’s use the update provider to test a 404, not the prod website

Attachments

1
  • 31 May 2022, 11:40 am

Activity

Show:

Pothys - MitrahSoft 1 June 2022 at 07:16

I've checked this ticket with the lucee latest build 5.3.10.13-SNAPSHOT. Now cfhttp thorwonerror includes the method and url attribute in error detail.

Pothys - MitrahSoft 31 May 2022 at 11:40

I added a fix and testcase to this ticket
Pull Request: https://github.com/lucee/Lucee/pull/1653

 

Fixed

Details

Assignee

Reporter

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Fix versions

Priority

Created 31 May 2022 at 09:09
Updated 24 May 2023 at 08:08
Resolved 1 June 2022 at 07:16

Flag notifications