Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

SM functions in JavaScript need to follow JS exception model

SM functions in JavaScript need to follow JS exception model

When an SM global function like doHTTPRequest() for doSoapRequest() is called in JavaScript, it can fail.

However, it is not possible to catch this failure by JavaScript try..catch.. exception handling.

 

It should be possible to handle exceptional failures by SM functions used in JavaScript.

 

References already exist:

QCCR1E135862 Request RTE Errors thrown in a JavaScript try/catch statement to be suppressed 

QCCR1E133784 doHTTPRequest function shows errors even if the call is made between try/catch 

QCCR1E32208 Cannot use JS 'try'/'catch' block to mask exceptions thrown in HttpClientProxy or SoapClientProxy

 

7 Comments
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor
Status changed to: Waiting for Votes
 
Dharmakrishnan
New Member.

Hi All,

We are facing the same issue in our customer environment as well.

I am unable to vote so leaving this comment.

Thanks,

Dharmakrishnan Thomas

New Member.. Daniele Ancona
New Member..

It's a very useful idea.

Visitor.. arturclemente
Visitor..

Same problem. It's really necessary to handle failures in Javascript

Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

this idea has been accepted on our product roadmap, timing TBD. Subscribe to receive updates. (This is not a formal commitment, and subject to change)

Micro Focus Frequent Contributor
Micro Focus Frequent Contributor
Status changed to: Accepted
 
Micro Focus Expert
Micro Focus Expert

There is another QCCR to be referenced here:

QCCR1E102028: doHTTPRequest() can't return a response while HTTP return code is 400

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.