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

Artifactory Nuget Push Fails on Extension Version 1.10.2 #184

Closed
MichaelDenwood opened this issue Aug 19, 2020 · 6 comments
Closed

Artifactory Nuget Push Fails on Extension Version 1.10.2 #184

MichaelDenwood opened this issue Aug 19, 2020 · 6 comments
Labels
bug Something isn't working

Comments

@MichaelDenwood
Copy link

MichaelDenwood commented Aug 19, 2020

Describe the bug
Artifactory Nuget Push Fails on Extension Version 1.10.2
invalid character '\x00' looking for beginning of value

To Reproduce
Steps to reproduce the behavior
artiissue

Expected behavior
The package should upload without error.

Screenshots
Executing cliCommand: F:\Agents\SaaSProdW1_work_tool\jfrog\1.38.4\x64\jfrog.exe rt u F:\Agents\SaaSProdW1\_work\55\a\.nupkg nuget-hosted-phx --url="https://artifacts.xx.com/artifactory" --user=** --password=***
[Error] invalid character '\x00' looking for beginning of value

Versions

  • Artifactory Azure DevOps extension version: 1.10.2 (Seems to only happen in Azure DevOps Cloud. Works from on on prem instance of Azure DevOps)
  • Agent operating system: Windows
  • JFrog Artifactory version:

Additional context
Add any other context about the problem here.

@MichaelDenwood MichaelDenwood added the bug Something isn't working label Aug 19, 2020
@yahavi
Copy link
Member

yahavi commented Aug 24, 2020

Thanks for reporting this issue, @MichaelDenwood!
We couldn't reproduce this issue.
I used the project-examples repository and the following configuration:

trigger: none 

pool:
  vmImage: 'windows-latest'

steps:
- task: NuGetToolInstaller@1
- task: ArtifactoryNuGet@2
  inputs:
    command: 'restore'
    artifactoryService: 'ecosys'
    targetResolveRepo: 'nuget'
    solutionPath: '**/*.sln'
    packagesDirectory: '$(Build.ArtifactStagingDirectory)'
    collectBuildInfo: true
    buildName: '$(Build.DefinitionName)'
    buildNumber: '$(Build.BuildNumber)'
    includeEnvVars: true
- task: ArtifactoryNuGet@2
  inputs:
    command: 'push'
    artifactoryService: 'ecosys'
    targetDeployRepo: 'nuget'
    pathToNupkg: '$(Build.ArtifactStagingDirectory)\*.nupkg'
    collectBuildInfo: true
    buildName: '$(Build.DefinitionName)'
    buildNumber: '$(Build.BuildNumber)'
    includeEnvVars: true
- task: ArtifactoryPublishBuildInfo@1
  inputs:
    artifactoryService: 'ecosys'
    buildName: '$(Build.DefinitionName)'
    buildNumber: '$(Build.BuildNumber)'

The Artifactory NuGet push searches for .nupkg files and uploads them by jfrog rt u command.
Can you please try, for the experiment, to upload the problematic package using the jfrog cli task? Something like this:

- task: JfrogCli@1
  inputs:
    artifactoryService: 'ecosys'
    command: 'jfrog rt u F:\Agents\SaaSProdW1\_work\55\a\.nupkg nuget-hosted-phx'

Also - it will be very helpful if you could provide a reproducer project with the yaml configuration and the nuget project in GitHub.

@MichaelDenwood
Copy link
Author

MichaelDenwood commented Aug 25, 2020

I ran the command from the build agent machine exactly as ADO does, and it worked.

F:\Agents\SaaSProdW1_work_tool\jfrog\1.38.4\x64\jfrog.exe rt u F:\Agents\SaaSProdW1\_work\55\a\*.nupkg nuget-hosted-phx --url="https://artifacts.xxxx.com/artifactory" --user={Removed} --password={removed}

@eyalbe4
Copy link
Contributor

eyalbe4 commented Sep 2, 2020

@MichaelDenwood - thanks for the additional information.
Will you able to share with us a sample project that reproduces this issue, as @yahavi requested above?

@MichaelDenwood
Copy link
Author

I was able to get permission to provide the actual project having the issue. @eyalbe4 and @yahavi have been invited to a repo on GH that contains a copy of the repo from ADO.

If you are not able to repro this, we can certainly set up a session over WebEx for you trouble shoot it in our environment.

@wayofthepie
Copy link

wayofthepie commented Nov 18, 2021

We are currently seeing this issue too. I'm just wondering if there was ever a resolution to this? Any info would be helpful really, it's a strange one! Thanks.

@shuvadipc
Copy link

This issue is not relevant anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants