karthik / karthik/rdrop2

Provide more informative errors when oauth token not found

Open
#70 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
R
Stars
253
Forks
60
PR merge metrics
No merged PRs in 30d

Description

The common `oauth_listener needs an interactive environement` (e.g. #64) seems to often be due to `.httr-auth` not being where `drop_auth` expects it to be. This is a pretty unintuitive error message from `httr`; maybe we can wrap it a bit to let the user know we can't find the token?

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the `oauth_listener needs an interactive environement` error and inspect how `drop_auth` looks for `.httr-auth`. The work is done when a missing token produces an informative error explaining that the token could not be found instead of the unintuitive OAuth listener message.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
authentication
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.