Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessing Headers/Response on Execptions #38

Open
BlakeLucchesi opened this issue Oct 25, 2016 · 1 comment
Open

Accessing Headers/Response on Execptions #38

BlakeLucchesi opened this issue Oct 25, 2016 · 1 comment

Comments

@BlakeLucchesi
Copy link

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.

@greg-db
Copy link
Contributor

greg-db commented Oct 25, 2016

I don't believe the SDK exposes the response headers like this, but we'll consider it a feature request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants