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

RSS Feed forces URI encoding on provided feed URL field leading to "Invalid RSS Feed URL" error #6547

Open
OWerker opened this issue Feb 4, 2025 · 1 comment

Comments

@OWerker
Copy link

OWerker commented Feb 4, 2025

Describe the Bug with repro steps

  1. Create a 'List all RSS feed items' connection.
  2. Provide the url (eg. https://techcommunity.microsoft.com/t5/s/gxcuf89792/rss/board?board.id=microsoftintuneblog)
  3. Try to run the LA. You will receive an invalid RSS feed url error.

This generates the following code:

{
   "type": "ApiConnection",
   "inputs": {
     "host": {
       "connection": {
         "referenceName": "rss"
       }
     },
     "method": "get",
     "path": "/ListFeedItems",
     "queries": {
       "feedUrl": "@{encodeURIComponent(encodeURIComponent('https://techcommunity.microsoft.com/t5/s/gxcuf89792/rss/board?board.id=microsoftintuneblog'))}",
       "sinceProperty": "PublishDate"
     }
   },
   "runAfter": {
     "List\_all\_RSS\_feed\_items": [
       "SUCCEEDED"
     ]
   }
 }

Note the feedUrl code.

To fix you must go into code view and edit feedUrl to be:

"feedUrl": "https://techcommunity.microsoft.com/t5/s/gxcuf89792/rss/board?board.id=microsoftintuneblog"

or

"feedUrl": "@{decodeURIComponent('https://techcommunity.microsoft.com/t5/s/gxcuf89792/rss/board?board.id=microsoftintuneblog')}",

And it works

What type of Logic App Is this happening in?

Consumption (Portal)

Which operating system are you using?

Windows

Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg

Yes

Workflow JSON

{
    "definition": {
        "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
        "contentVersion": "1.0.0.0",
        "triggers": {
            "When_a_HTTP_request_is_received": {
                "type": "Request",
                "kind": "Http"
            }
        },
        "actions": {
            "List_all_RSS_feed_items_-_working": {
                "type": "ApiConnection",
                "inputs": {
                    "host": {
                        "connection": {
                            "name": "@parameters('$connections')['rss']['connectionId']"
                        }
                    },
                    "method": "get",
                    "path": "/ListFeedItems",
                    "queries": {
                        "feedUrl": "https://techcommunity.microsoft.com/t5/s/gxcuf89792/rss/board?board.id=microsoftintuneblog"
                    }
                },
                "runAfter": {}
            },
            "List_all_RSS_feed_items_-_not_working": {
                "type": "ApiConnection",
                "inputs": {
                    "host": {
                        "connection": {
                            "name": "@parameters('$connections')['rss']['connectionId']"
                        }
                    },
                    "method": "get",
                    "path": "/ListFeedItems",
                    "queries": {
                        "feedUrl": "@{encodeURIComponent(encodeURIComponent('https://techcommunity.microsoft.com/t5/s/gxcuf89792/rss/board?board.id=microsoftintuneblog'))}"
                    }
                },
                "runAfter": {
                    "List_all_RSS_feed_items_-_working": [
                        "SUCCEEDED"
                    ]
                }
            }
        },
        "outputs": {},
        "parameters": {
            "$connections": {
                "type": "Object",
                "defaultValue": {}
            }
        }
    },
    "parameters": {
        "$connections": {
            "type": "Object",
            "value": {
                "rss": {
                    "id": "/subscriptions/a54df629-737a-4c11-a552-89ef7ec0a7b4/providers/Microsoft.Web/locations/australiaeast/managedApis/rss",
                    "connectionId": "/subscriptions/a54df629-737a-4c11-a552-89ef7ec0a7b4/resourceGroups/Shared_LogicApps/providers/Microsoft.Web/connections/rss",
                    "connectionName": "rss"
                }
            }
        }
    }
}

Screenshots or Videos

No response

Browser

Edge

Additional context

Credit to:

https://blog.builtwithcaffeine.cloud/posts/azure-logicapp-rss-patch/ who figured it out

@Eric-B-Wu
Copy link
Contributor

Hi @OWerker, it seems like this is another case of the Swagger using double encoding, we'll need to reach out to the connector team to update their swagger

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants