on 2020 Mar 03 10:04 AM
In a stored function/procedure I want to handle the HTTP error code received from a HTTP:POST procedure. I tried with on exception resume and with try catch but both don't seem to be able to catch the error.
What I'm trying to do is in a function I use a cursor to loop through records and post a json to a web service. However when I receive a HTTP error the cursor stops and all the remaining records are not processed.
How can I achieve that the HTTP error code is caught and the cursor continues?
Request clarification before answering.
Are you using v17.0.4 or above?
If so, the following FAQ may be of help. At least the error message looks alike.
I suspect you need to change the web client function to a web client procedure in order to get the HTTP Status, AFAIK functions do only return the response's body, not the full response. Note, that's just from my memory...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
54 | |
6 | |
6 | |
5 | |
5 | |
5 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.