Created on 30 November 2022
icon_unfollowing
Login to follow
xmlhttprequest-open-intercept

XMLHttpRequest Open Intercept

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded on 30 November 2022 by 
xmlhttprequest-open-intercept

XMLHttpRequest Open Intercept

Details
Interceptor library for the native XMLHttpRequest Open command
Read more

XMLHttpRequestOpenIntercept_Lib can be used to intercept client call made by the platform.


On Reactive Apps, aggregates, data actions and server actions there's a timeout (default to 10 seconds). Whenever those actions are called, and they exceeded the timeout defined, the request is aborted in the client side by the platform, and a 'The connection has timed out' error is thrown.


OutSystems does however log this exception on Service Center, but it's generic for all errors, with little to no information on which screen or action it actually timed out. This make it really hard to understand which actions are taking more time than the one defined in the timeout property.


With this library, it's possible to catch those calls that got canceled by the platform due to the timeout defined, and you can just log them to the General Log in Service Center or log them to the Error Log.


From this:

The connection has timed out

to this:

[ERROR] ScreenService: /XMLHttpRequestOpenInterceptDemo/screenservices/XMLHttpRequestOpenInterceptDemo/MainFlow/Demo/DataActionDataAction_TimeoutDemo


Release notes (1.0.0)
Reviews (1)
by 
2023-08-29
in version 1.0.0
Powerful troubleshooting tool
Category
Functional libraries & utilities, Network
Support options
This asset is not supported by OutSystems. You may use the discussion forums to leave suggestions or obtain best-effort support from the community, including from  who created this asset.
Dependencies
XMLHttpRequest Open Intercept has no dependencies.
Application Objects
XMLHttpRequest Open Intercept has 0 AOs.
Team
Compatible with
Version 11
11.9.2 or higher
11.7.6 to 11.9.0
11.0.528 to 11.0.615
Database:
All
Asset consumers
No consumers yet.
Weekly downloads