dropbox / dropbox/dropbox-sdk-dotnet

Accessing Headers/Response on Execptions

Open
#38 1 comment 2 reactions 0 assignees View on GitHub
enhancement help wanted question
Dominant language
C#
Stars
347
Forks
439
Avg merge
4m
Merged PRs (30d)
9

Description

Is there a recommended method for accessing the response and/or response headers for calls that trigger exceptions? I was looking through the DropboxRequestHandler.cs file and it doesn't look like any of the values from the HTTP response are passed along into the exceptions that get thrown (RetryException, BadInputException).

It looks like the RateLimitException does a nice job of passing back along the Retry-After header as part of the structured exception. I'm looking to read the "X-Dropbox-Request-Id " and "X-Server-Response-Time" headers in my exception handling code.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.