logicapps
logicapps copied to clipboard
Twitter connection with BYOA: Failed to login. Response status code does not indicate success: 401 (Unauthorized)
Describe the Bug with repro steps
- Add action "Post a tweet"
- Provide connection's name
- Paste "Consumer API Key" from Twitter Dev Portal to field "Consumer Key"
- Paste "Consumer API Key Secret" to "Consumer Secret"
- Click "Sign In"
- Observe a pop-up window appearing and disappearing quickly
- Observe an error:
Failed to login. Response status code does not indicate success: 401 (Unauthorized)
What type of Logic App Is this happening in?
Consumption (Portal)
Are you using new designer or old designer
New Designer
Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg
Yes
Workflow JSON
No response
Screenshots or Videos
Browser
Edge version 122.0.2365.92
Additional context
Demo request "Create a Tweet" on public Postman workspace requires 4 secrets, not 2:
- Consumer Key
- Consumer Secret
- Token
- Token Secret
and works even from a simple PowerShell command:
$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"
$headers.Add("Content-Type", "application/json")
$headers.Add("Authorization", "OAuth oauth_consumer_key=`"...`", oauth_token=`"...`", oauth_signature_method=`"HMAC-SHA1`",oauth_timestamp=`"...`", oauth_nonce=`"...`" ,oauth_version=`"1.0`", oauth_signature=`"...`"")
$body = @"
{
`"text`": `"...`"
}
"@
$response = Invoke-RestMethod 'https://api.twitter.com/2/tweets' -Method 'POST' -Headers $headers -Body $body
$response | ConvertTo-Json
AB#27399144
Moved this to our backend repo/issues list. This looks like it's an issue with the connector.
Filed an incident per @rarayudu
This issue is stale because it has been open for 45 days with no activity.
I'm investigating this issue now, will post an update here once I've done some log spelunking
This issue is stale because it has been open for 45 days with no activity.
Looking into this again today
This issue is stale because it has been open for 45 days with no activity.
Nearly there, expect to get to the bottom of this, this week
This issue is stale because it has been open for 45 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
Reopening, still under investigation @hartra344 can you re-open please?