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

Import-TwitterAuthentication - Import from previous version throws error #75

Closed
thedavecarroll opened this issue Jun 14, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@thedavecarroll
Copy link
Owner

When importing v0.5.x the first time after updating the module from v0.1.x, the command Import-TwitterAuthentication attempts to verify the OAuth 2 bearer token which is not part of the previous version and an error is thrown.

Import-TwitterAuthentication: /Users/dcarroll/.local/share/powershell/Modules/BluebirdPS/0.5.1/BluebirdPS.psm1:492
Line |
 492 |              New-TwitterErrorRecord -ResponseData $ResponseData
     |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Unauthorized

During authentication import the OAuth 1.0a key, tokens, and secrets are validated, then the OAuth 2 bearer token is validated.

Additionally, each step is encapsulated in a try{} catch{} but it appears the catch block is not being reached.

@thedavecarroll thedavecarroll added the bug Something isn't working label Jun 14, 2021
@thedavecarroll thedavecarroll self-assigned this Jun 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant