Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

getting an unauthorized error when retrieving data from Twitter

(1) ShareShare
ReportReport
Posted on by 45

This flow was working fine until midnight 4/20/23.

Here is the entire error message:

Unauthorized
clientRequestId: 67f9ff40-bc13-4e42-807b-33c2ff78a9a7
serviceRequestId: 7c37409c4c43df9f8cb43a48b26bccc7718b9bd2ff16e4a29b7586fe05a93656

 

Did something change/break on that day?

Here is the raw input/output from the step

Input:

{
    "host": {
        "connectionReferenceName""shared_twitter",
        "operationId""UserTimeline"
    },
    "parameters": {
        "userName""ForTechSupport",
        "maxResults"5
    }
}
Output:
{
  "status": 401,
  "message": "Unauthorized\r\nclientRequestId: 67f9ff40-bc13-4e42-807b-33c2ff78a9a7\r\nserviceRequestId: 7c37409c4c43df9f8cb43a48b26bccc7718b9bd2ff16e4a29b7586fe05a93656",
  "error": {
    "message": "Unauthorized"
  },
  "source": "twitter-wus.azconn-wus-001.p.azurewebsites.net"
}

Let me know if you need more details

  • robayche Profile Picture
    45 on at
    Re: getting an unauthorized error when retrieving data from Twitter

    Interesting.  I don't remember ever receiving such communication.  I'd be curious, if you are able to share that, but either way, mine is working now.  Good to hear yours is too.

  • Clawz Profile Picture
    12 on at
    Re: getting an unauthorized error when retrieving data from Twitter

    This is what I got from Microsoft Support:
    The OAuth app managed by Microsoft was shut-down by Twitter. This means that actions/triggers using the shared authentication type will no longer work.
    Targeted comms were sent to customers on February (see Customer Comms - Part 2.docx) to alert them about this exact scenario and recommending them using the BYOA authentication.
    This issue will not be fixed, if customers want to keep using this connector, they'll need to create their own OAuth app and use it in their flows/apps/logic apps

  • Clawz Profile Picture
    12 on at
    Re: getting an unauthorized error when retrieving data from Twitter

    Able to elaborate?
    I tried both Use default shared application and Bring your own application, neither worked. 

     

    Update: Just tried Bring your own application again, today it worked. Use default shared application still doesn't work.

  • robayche Profile Picture
    45 on at
    Re: getting an unauthorized error when retrieving data from Twitter

    Found this solution in another thread.  It's a bit convoluted, but it worked for me.

     

    https://learn.microsoft.com/en-us/connectors/twitter/#authentication-and-bring-your-own-application

     

  • Clawz Profile Picture
    12 on at
    Re: getting an unauthorized error when retrieving data from Twitter

    Just noticed the same issue today. Last successful run was back on April 19 @ 8pm PST.

    Delete the old Twitter connection and tried adding it again, getting the same error.

  • robayche Profile Picture
    45 on at
    Re: getting an unauthorized error when retrieving data from Twitter

    So, using Twitter with PowerAutomate isn't feasible anymore?

  • Bjoernsson Profile Picture
    2 on at
    Re: getting an unauthorized error when retrieving data from Twitter

    Same problem here.

  • robayche Profile Picture
    45 on at
    Re: getting an unauthorized error when retrieving data from Twitter

    I'm getting the following when I tried a different browser to make the Twitter connection.  Is this a time limit?

     

    Failed to create connection for connection id '/providers/Microsoft.PowerApps/apis/shared_twitter/connections/shared-twitter-ca4c1996-8e73-4847-aec6-91aa75f25cfe'. You have reached the maximum number of connections for the 'twitter' API.

  • robayche Profile Picture
    45 on at
    Re: getting an unauthorized error when retrieving data from Twitter

    I tried deleting the Twitter connection and re-adding it, and I got the same 401 Unauthorized error.

  • abm abm Profile Picture
    32,506 Most Valuable Professional on at
    Re: getting an unauthorized error when retrieving data from Twitter

    Hi @robayche 

     

    Create a new flow and test the connection. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1