Blender ID add-on: $HOME/.netrc breaks authenticated requests #53288

Closed
opened 2017-11-10 12:32:46 +01:00 by Sybren A. Stüvel · 3 comments

This is an issue with the requests library. As a result of this issue, the Blender ID add-on cannot send an Authorization: Bearer xxxx HTTP header when the user has a $HOME/.netrc file.

A possible workaround is to pass trust_env=False. However, this also removes the ability to set the HTTP proxy through environment variables. I think for now the best is to check for the existence of $HOME/.netrc and warn the user through the add-on preferences panel.

This is an [issue with the requests library](https://github.com/requests/requests/issues/3929). As a result of this issue, the Blender ID add-on cannot send an `Authorization: Bearer xxxx` HTTP header when the user has a `$HOME/.netrc` file. A [possible workaround](http://docs.python-requests.org/en/master/api/#requests.Session.trust_env) is to pass `trust_env=False`. However, this also removes the ability to set the HTTP proxy through environment variables. I think for now the best is to check for the existence of `$HOME/.netrc` and warn the user through the add-on preferences panel.
Author
Owner

Changed status to: 'Open'

Changed status to: 'Open'
Author
Owner

Added subscriber: @dr.sybren

Added subscriber: @dr.sybren
Sybren A. Stüvel self-assigned this 2017-11-10 12:32:59 +01:00
Author
Owner

Closed as duplicate of blender/blender-addons#52771

Closed as duplicate of blender/blender-addons#52771
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: infrastructure/blender-id#53288
No description provided.