HTTP response from endpoint
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2023 03:36 AM
Hello,
If there are 3 systems connected using HTTP(S) like:
A-->B-->C
The problem is that if A received 200 from B , and B receive an HTTP error from C, A will not be aware to it (This how HTTP works).
I know that there is a way to receive the HTTP response from the end point (so A will be aware to an error occur between B and C) but I forgot how it called.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2023 03:55 AM
You can have B passing the HTTO status to A incase it received (!200) from C.
Since your A and B are connected there shouldn't be any problem in this.
Raghav
MVP 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2023 03:59 AM
HTTP response is returned to the caller only. There is a way to automatically pass it to the back, I just forgot how it called,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2023 04:04 AM
Once you get the Http status as error in B, make outbound POST call to A.
You can update the HTTPs status in the required field/record on instance A.
Raghav
MVP 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2023 05:47 AM
This means I need to create an API in A to receive data from B. This I know...
but I remember that there is a way to do it with configuration only in B.
The idea is to delay the HTTP response from B to A until C responses. Then B should take the response it received from C and pass it to A.
so it means to sync the calls.
I know there is a way to do it, I just forgot how,