Coder Social home page Coder Social logo

Set-TwitterBearerToken: Authentication failed because the remote party sent a TLS alert: 'HandshakeFailure'. about bluebirdps HOT 10 CLOSED

Saved-by-Him avatar Saved-by-Him commented on June 12, 2024
Set-TwitterBearerToken: Authentication failed because the remote party sent a TLS alert: 'HandshakeFailure'.

from bluebirdps.

Comments (10)

thedavecarroll avatar thedavecarroll commented on June 12, 2024

@Saved-by-Him
Given the age of the OS, you should ensure it is capable and configured to use TLS 1.2.

You can use the following to see what your .NET environment supports.

[enum]::GetNames([Net.SecurityProtocolType])

If you see Tls12, you can euse the following command to force TLS 1.2.

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

If this works, you would need to add this to your PowerShell $PROFILE.

Here is Microsoft's article How to enable TLS 1.2 on clients. Within it, there is a link for an update that may be required.

Also, please be aware that significant changes to the Twitter API tier access will happen near the end of the month.

from bluebirdps.

Saved-by-Him avatar Saved-by-Him commented on June 12, 2024

I have done all of this.

In fact I have [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 in my profile since two years ago to resolve an issue with PSGallery.

I've tried:

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls13

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls11

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls

Still no luck.... :-(

from bluebirdps.

thedavecarroll avatar thedavecarroll commented on June 12, 2024

Immediately after getting the error, run the following command and add the results as a comment.

(Get-BluebirdPSHistory -Last 1).ApiResponse.errors

from bluebirdps.

Saved-by-Him avatar Saved-by-Him commented on June 12, 2024

(Get-BluebirdPSHistory -Last 1).ApiResponse.errors

No output since the BluebirdPS Module can not get beyond the initialization step...

BluebirdPS\Set-TwitterAuthentication
API Key: *************************
API Secret: **************************************************
Access Token: **************************************************
Access Token Secret: *********************************************
Set-TwitterAuthentication: Authentication failed because the remote party sent a TLS alert: 'HandshakeFailure'.

from bluebirdps.

thedavecarroll avatar thedavecarroll commented on June 12, 2024

Is this a new Twitter dev app? Can you post screenshots of the app from the dev portal? Be careful not to include any keys or secrets.

from bluebirdps.

Saved-by-Him avatar Saved-by-Him commented on June 12, 2024

Nope. it's a release version I beleive. I installed it from PSGallery through:
PS> Installmodule -Name BluebirdPS -Scope CurrentUser

PS> Get-Module BluebirdPS | fl

Name : BluebirdPS
Path : C:\Users\redacted\Documents\PowerShell\Modules\BluebirdPS\0.8.3\BluebirdPS.psm1
Description : A Twitter Automation Client for PowerShell 7. Tweet, retweet, send direct messages, manage lists, and more.
ModuleType : Script
Version : 0.8.3
PreRelease :
NestedModules : {BluebirdPS}
ExportedFunctions : {Add-TwitterFriend, Add-TwitterList, Add-TwitterListMember, Add-TwitterListSubscription…}
ExportedCmdlets :
ExportedVariables :
ExportedAliases :

from bluebirdps.

Saved-by-Him avatar Saved-by-Him commented on June 12, 2024

Sorry, I don't even know what a "dev portal" is...

from bluebirdps.

thedavecarroll avatar thedavecarroll commented on June 12, 2024

Before you can use BluebirdPS, you must create a project and application in the Twitter developer portal - https://developer.twitter.com/en/portal/dashboard

See https://docs.bluebirdps.dev/prerequisites/ to help get you started.

In case you haven't heard, Twitter will soon (end of this month) change their tiers to Free and Basic.

The Free tier allows you to create a limited number tweets per month. And that is all, no user lookup (other than yourself), no searching for other tweets.

The Basic tier, I believe will be $100 a month.

For details on the Twitter API tiers, see https://developer.twitter.com/en/docs/twitter-api/getting-started/about-twitter-api.

I won't be continuing development of BluebirdPS so, even if you do choose to pay Twitter for the Basic tier, the current version will be the last and no bugfixes or new features will be added.

Good luck.

from bluebirdps.

Saved-by-Him avatar Saved-by-Him commented on June 12, 2024

I already have an App and also a project. My App worked well for almost 5 years. Now Twitter has changed everything and I can no longer interact with it! Why can't I connect to it using my API_Key and my other credentials?

Also, what is that "TLS alert: 'HandshakeFailure'" ?

Thanks.

from bluebirdps.

thedavecarroll avatar thedavecarroll commented on June 12, 2024

Due to changes in the Twitter API, no new development will occur for this project.

from bluebirdps.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.