Skip to content

Commit 6a8a612

Browse files
committed
update wording
1 parent 9d47c62 commit 6a8a612

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/connections/destinations/actions.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,11 @@ If no mappings are enabled to trigger on an event that has been received from th
199199
When the same event triggers multiple mappings, a request will be generated for each mapping that's configured to trigger on an event. For example, for the *Subscription Updated* event, if two mappings are enabled and both have conditions defined to trigger on the *Subscription Updated* event, the two requests will be generated and sent to the destination for each *Subscription Updated* event.
200200

201201
### Oauth "access token expired" message showed in Segment UI
202-
Access Tokens that were generated from initial authorization, e.g. when customer connects a destination via Oauth, are always short-lived. Commonly, the token remains valid for 30 minutes to 1 hour.When Segment system receives 401 error responses from the destination afterwards, Segment will automatically make another request to the destion for a new token and retry the event which recived 401 error response. Therefore, when a 401 error response is received, the actual issue isn't always caused by the expired token. There are three event flows when events are received and sent to a destination:
202+
Access Tokens that were generated from initial authorization, e.g. when you connect a destination via Oauth, are always short-lived. Commonly, the token remains valid for 30 minutes to 1 hour. When Segment’s systems receive 401 error responses from the destination after a token has expired, Segment will automatically make another request to the destination for a new token and will then retry the event. Therefore, 401 responses are sometimes expected and do not indicate an event failure. There are three event flows when events are received and sent to a destination:
203203

204204
1. through source
205205
2. through event tester
206206
3. through actions tester in mapping screen
207207

208208
The underlying systems for these flows have their own copy of the token, which can expire at different points in time.
209+
Threfore, if you see a 401 error in a sample response, it is likely that you’ll also see another request was made after it, to ask the downstream destination for a new token, and then one more request was made to actually send the data in your payload to the downstream destination.

0 commit comments

Comments
 (0)