davla
02/04/2022, 6:12 PMstring key [filecontent] doesn't exist
To try and mitigate this occasional error I run the cfhttp in a while loop and give it up to 4 attempts to call the api. However, I still see the above error more often than should be possible. Is there anything I can do to further mitigate this issue - is there an issue with cfhttp?bdw429s
02/04/2022, 6:19 PMdavla
02/04/2022, 6:22 PMThe key [filecontent] does not exist, only the following keys are available: [errordetail].
So I guess I need to output that error detail. The problem is that I can’t replicate the issue consistently to debug. I’ll have to add some extra debugging and then just wait and see.bdw429s
02/04/2022, 6:24 PMbdw429s
02/04/2022, 6:24 PMbdw429s
02/04/2022, 6:25 PM200 OK
, to not try and parse the responsebdw429s
02/04/2022, 6:25 PMdavla
02/04/2022, 6:37 PMAdam Cameron
however it’s also our api and I know it’s responding with a 200 every timeIf yer calling code can't reach yer API... it's not gonna get a 200OK.
Adam Cameron
Blindly parsing an HTTP response without checking the status codeIt's un-frickin-believable how much code I see that doesn't do this. I mean... the status code is there for a reason