138
Views
4
Comments
403 Forbidden Error on Calling Server Action OF Business Layer Module  From UI Module
Question
Application Type
Reactive
Service Studio Version
11.54.20 (Build 62656)

Hi ,


I have an Application and in that application I have BL module. That BL module is communicating with IS module that consume APIs.
When I Consume one API it is working correctly But when ever I call second API it start giving Forbidden error 403 and this is not from API its internal . 


2023-08-28 09-08-29
Venkatesh Sundarajan

Hi Sana Kabir,

Are you consuming both the APIs in the same server action flow?

If that's the case, try using the API which is giving error as a separate action to find out is that a issue with the API.

Please do check this post, related to security restrictions on the internal system

https://www.outsystems.com/forums/discussion/55042/http-status-403forbidden/#:~:text=403%20Forbidden%20Error%20occurs%20when,like%20which%20URL%20it's%20restricting%3F&text=and%20then%20it's%20working%20fine%20again!,-1


UserImage.jpg
Sana Kabir

Hi

I checked and found that

1- When I am calling both APIs in one Data action, the first API always works fine, and a forbidden error occurs when executing the second API. I change the Order but the API I call first always executes fine error occur on any API that I call later on

2-When I call one API on Page load and the second API on the dropdown change action, I am still facing the forbidden 403 error when executing the second API.

 

UserImage.jpg
Sana Kabir

I have also Created a Server Action and Call both APIS there .
and then in DataAction called that server action, Same forbidden error

2023-08-28 09-08-29
Venkatesh Sundarajan

Hi Sana Kabir,

Sorry for late reply!

As per your response, it is clear that APIs are working fine when they are called separately.

Please try calling each API individually within individual data actions.

Create One data action for one API call.

Create another data action for another API call.

Now you have 2 data actions with each API called separately, don't group the APIs together in server action or data action.

Please try and let me know.


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