Skip to content

HTTPClient: added log for failed requests#2048

Merged
NachoSoto merged 1 commit into
mainfrom
http-client-error-log
Nov 14, 2022
Merged

HTTPClient: added log for failed requests#2048
NachoSoto merged 1 commit into
mainfrom
http-client-error-log

Conversation

@NachoSoto

@NachoSoto NachoSoto commented Nov 11, 2022

Copy link
Copy Markdown
Contributor

I'm looking into CSDK-517, and it's hard to tell why we ended up with concurrent requests. It appears that a second request begins before the last one started.
That's seemingly impossible, and the only explanation for the logs missing "request completed" is that the first request failed.

This extra log will help us understand what's happening.

@NachoSoto NachoSoto added the test label Nov 11, 2022
@NachoSoto NachoSoto requested a review from a team November 11, 2022 19:01

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

debug only so we don't end up logging this error twice.

I'm looking into [CSDK-517], and it's hard to tell why we ended up with concurrent requests. It appears that a second request begins before the last one started.
That's seemingly impossible, and the only explanation for the logs missing "request completed" is that the first request failed.

This extra log will help us understand what's happening.
@NachoSoto NachoSoto force-pushed the http-client-error-log branch from a220e44 to 544bc4c Compare November 11, 2022 19:11
@NachoSoto NachoSoto merged commit 7dee949 into main Nov 14, 2022
@NachoSoto NachoSoto deleted the http-client-error-log branch November 14, 2022 17:15
NachoSoto pushed a commit that referenced this pull request Nov 18, 2022
**This is an automatic release.**

### Bugfixes
* `StoreKit 2`: don't finish transactions in observer mode (#2053) via
NachoSoto (@NachoSoto)
### Other Changes
* `CircleCI`: added ability to create a release manually (#2067) via
NachoSoto (@NachoSoto)
* Changelog: Fix links to V4 API Migration guide (#2051) via Kevin
Quisquater (@KevinQuisquater)
* `HTTPClient`: added log for failed requests (#2048) via NachoSoto
(@NachoSoto)
* `ErrorResponse.asBackendError`: serialize attribute errors as
`NSDictionary` (#2034) via NachoSoto (@NachoSoto)
* `ErrorCode.unknownBackendError`: include original error code (#2032)
via NachoSoto (@NachoSoto)
* `CI`: fixed `push-pods` job (#2045) via NachoSoto (@NachoSoto)
* `PostReceiptDataOperation`: log Apple error when purchase equals
expiration date (#2038) via NachoSoto (@NachoSoto)
* Update Fastlane plugin (#2041) via Cesar de la Vega (@vegaro)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants