Starts in:
2 DAYS
6 HRS
53 MIN
52 SEC
Starts in:
2 D
6 H
53 M
52 S
Open Closed

issue when build project on Azure Devops pipeline #2009


User avatar
0
easonyang created

When I build out project on Azure Devops pipeline, the job always failed. I got the error message:

Retrying 'FindPackagesByIdAsync' for source 'https://nuget.abp.io/{MY_API_KEY}/v3/package/microsoft.build.tasks.git/index.json'. Response status code does not indicate success: 403 (Forbidden).

  • ABP Framework version: v4.x
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes / no
  • Exception message and stack trace: Response status code does not indicate success: 403 (Forbidden).
  • Steps to reproduce the issue:"
      1. Open https://dev.azure.com/{my_organization}
      1. New a pipeline and add a task of Bash
      1. Add scripts: dotnet build -c Release
      1. Run the Pipeline
      1. In the job details, I got the failed message.

10 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    What's your NuGet.Config ?

    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
      <packageSources>
        <add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
        <add key="BlazoriseMyGet" value="https://www.myget.org/F/blazorise/api/v3/index.json" />
        <!-- {ABP_COMMERCIAL_NUGET_SOURCE} -->
      </packageSources>
    </configuration>
    
  • User Avatar
    0
    easonyang created

    hi

    What's your NuGet.Config ?

    <?xml version="1.0" encoding="utf-8"?> 
    <configuration> 
      <packageSources> 
        <add key="nuget.org" value="https://api.nuget.org/v3/index.json" /> 
        <add key="BlazoriseMyGet" value="https://www.myget.org/F/blazorise/api/v3/index.json" /> 
        <!-- {ABP_COMMERCIAL_NUGET_SOURCE} --> 
      </packageSources> 
    </configuration> 
    

    Yes. The same with yours.

  • User Avatar
    0
    easonyang created

    <?xml version="1.0" encoding="utf-8"?> <configuration> <packageSources> <add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" /> <add key="BlazoriseMyGet" value="https://www.myget.org/F/blazorise/api/v3/index.json" /> <add key="ABP Commercial NuGet Source" value="https://nuget.abp.io/{My API KEY}/v3/index.json" /> </packageSources> </configuration>

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Can you try to remove protocolVersion?

  • User Avatar
    0
    easonyang created

    Can you try to remove protocolVersion?

    I've tried and still failed.

  • User Avatar
    0
    easonyang created

    It's so strange that when I build ten times, nine times fail and one time success. Did u block the IPs of Azure DevOps?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    We not block any ip but we will check this.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @easonyang

    • Does it make any difference if you run dotnet restore before the build operation ?
    • Could you share the full error log ? This error might be happening for a specific package.

    Thanks,

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @easonyang

    Can you try againg ? This was caused by a rule on on firewall. It should be working now.

    Thanks,

  • User Avatar
    0
    easonyang created

    @ismcagdas

    I re-tried and it works now.

    Thanks very much for your support.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06