-
Notifications
You must be signed in to change notification settings - Fork 96
Open
Description
Whenever retry is triggered for HttpLib.get or HttpLib.post, the api call via requests is missing the Authorization header.
Steps to Reproduce
- Simulate error response from marketo via mocking or rate limit
- Log/Debug the headers sent on requests.post/requests.get
- Confirm that the first request contains
Authorizationheader but the subsequent retries don't
Root Cause
In
| access_token = args.pop('access_token') |
args dictionary. This mutates the original param. So, on subsequent retries inside the retry decorator, the call to get/post function no longer passes the access_token inside args.Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels