26
Views
1
Comments
[RestAPI - On Before Request] Object reference not set to an instance of an object
Application Type
Reactive, Service
Service Studio Version
11.54.26 (Build 62807)
Platform Version
11.23.0 (Build 40636)

In my application, I'm consuming an api, which is working fine.

When I added a OnBeforeRequest event for that api, I'm countering an error "Object reference not set to an instance of an object". I tried to debug that method. When I expand Request during debugging, it's showing the same error.

Hello @Nour Hasan,

This error usually comes when values are not assigned properly to the required variables. Can you please refer this documentation and see if you had implemented the OnbeforeRequest handler properly?

https://success.outsystems.com/documentation/11/extensibility_and_integration/rest/consume_rest_apis/simple_customizations/

Thanks,

Sachin

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.