question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Releases 1.1.7 and 1.1.8 are not backwards compatible with 1.1.6

See original GitHub issue

Based on the changes introduced in v1.1.7, my release to Azure job is getting the following error:

##[Initialize]
##[ValidateParameter]
Error: Execution Exception (state: ValidateParameter) (step: Invocation)
Error:   Cannot read property 'indexOf' of undefined
Error:     TypeError: Cannot read property 'indexOf' of undefined
    at ParameterValidator.validateScmCredentialsSlotName (D:\a\_actions\Azure\functions-action\v1.1.7\lib\handlers\parameterValidator.js:158:42)
    at ParameterValidator.<anonymous> (D:\a\_actions\Azure\functions-action\v1.1.7\lib\handlers\parameterValidator.js:56:18)
    at Generator.next (<anonymous>)
    at fulfilled (D:\a\_actions\Azure\functions-action\v1.1.7\lib\handlers\parameterValidator.js:24:58)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
Error: Deployment Failed!

My job is running on windows-latest and is currently working now that I’ve specifically pinned v1.1.6 as the version of this action to run. My job is using a publish profile as the Deployment Credential, the publish profile was generated in July and has the following format (the names and passwords have been changed):

<publishData>
  <publishProfile profileName="my-api - Web Deploy" publishMethod="MSDeploy" publishUrl="my-api.scm.azurewebsites.net:443" msdeploySite="my-api" userName="$my-api" userPWD="***" destinationAppUrl="http://my-api.azurewebsites.net" SQLServerDBConnectionString="" mySQLDBConnectionString="" hostingProviderForumLink="" controlPanelLink="http://windows.azure.com" webSystem="WebSites">
    <databases/>
  </publishProfile>
  <publishProfile profileName="my-api - FTP" publishMethod="FTP" publishUrl="ftp://waws-prod-blu-095.ftp.azurewebsites.windows.net/site/wwwroot" ftpPassiveMode="True" userName="my-api\$my-api" userPWD="***" destinationAppUrl="http://my-api.azurewebsites.net" SQLServerDBConnectionString="" mySQLDBConnectionString="" hostingProviderForumLink="" controlPanelLink="http://windows.azure.com" webSystem="WebSites">
    <databases/>
  </publishProfile>
  <publishProfile profileName="my-api - ReadOnly - FTP" publishMethod="FTP" publishUrl="ftp://waws-prod-blu-095dr.ftp.azurewebsites.windows.net/site/wwwroot" ftpPassiveMode="True" userName="my-api\$my-api" userPWD="***" destinationAppUrl="http://my-api.azurewebsites.net" SQLServerDBConnectionString="" mySQLDBConnectionString="" hostingProviderForumLink="" controlPanelLink="http://windows.azure.com" webSystem="WebSites">
    <databases/>
  </publishProfile>
</publishData>

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:17 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
Hazhzengcommented, Jan 28, 2021

Sorry for the late reply and thanks @dastev-ms for the investigation.

Hi @rue-kcarlton This issue should be fixed now https://github.com/Azure/functions-action/blob/v1.3.1/src/handlers/parameterValidator.ts#L172-L173.

1reaction
rue-kcarltoncommented, Nov 30, 2020

@Hazhzeng here’s my workflow snippet as it existed during the first of the failed runs:

   - name: Run Azure functions action to deploy ${{ steps.vars.outputs.RELEASE_NAME }} to ${{ env.FLEET }}
      uses: Azure/functions-action@v1
      id: fa
      with:
        app-name: ${{ env.AZURE_FUNCTIONAPP_NAME }}
        package: ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}
        publish-profile: ${{ secrets.AZURE_FUNCTIONAPP_PUBLISH_PROFILE }}
        slot-name: staging

I think I may have figured out the issue… based on older documentation, I still have the SCM_CREDENTIALS secret set which includes the Azure Publish Profile, but not the AZURE_FUNCTIONAPP_PUBLISH_PROFILE secret. I haven’t been able to test my theory as I didn’t want to release again over the holiday weekend (or on cyber Monday).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Version compatibility in .NET Framework - Microsoft Learn
Backward compatibility means that an app that was developed for a particular version of a platform will run on later versions of that...
Read more >
Terraform v1.x Compatibility Promises - HashiCorp Developer
From Terraform v1.0 onwards the Terraform team promises to preserve backward compatibility for most of the Terraform language and the primary CLI workflow, ......
Read more >
Are there any specific examples of backward incompatibilities ...
First of all, Sun actually considers all of the releases you mentioned (other than 1.0 of course) to be minor releases, not major...
Read more >
About DOORS version compatibility - IBM
Major Version Compatibility: DOORS is not backwards compatible with older major release versions. Major DOORS versions ( 5, 6, 7, 8, ...
Read more >
Backward Compatibility of Ice Versions
As for source-code compatibility, Ice maintains backward binary compatibility between a patch release and the most recent minor release, but does not ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found