Skip to content

Fails to find the function App from time to time #56

@patelchandni

Description

@patelchandni

Azure/functions-action#116

The following "app doesn't exist" error appears even if the function app is already there and exists for hours.

Error: Resource func-my-function doesn't exist.
    at Function.<anonymous> (/home/runner/work/_actions/Azure/functions-action/v1/node_modules/azure-actions-appservice-rest/Utilities/AzureResourceFilterUtility.js:21:23)
    at Generator.next (<anonymous>)
    at fulfilled (/home/runner/work/_actions/Azure/functions-action/v1/node_modules/azure-actions-appservice-rest/Utilities/AzureResourceFilterUtility.js:5:58)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

Error is generated from the code here:

  1. if(!filteredResources || filteredResources.length == 0) {
    throw new Error('ResourceDoesntExist');
    }
  2. var httpRequest: webClient.WebRequest = {
    method: 'GET',
    uri: this._client.getRequestUri('//subscriptions/{subscriptionId}/resources', {},
    [`$filter=resourceType EQ \'${encodeURIComponent(resourceType)}\' AND name EQ \'${encodeURIComponent(resourceName)}\'`], '2016-07-01')
    };

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions