loic-sharma / BaGet

A lightweight NuGet and symbol server
https://loic-sharma.github.io/BaGet/
MIT License
2.57k stars 639 forks source link

Symbol Server URL 404 (v0.4.0-preview2) #790

Open LeeWhite187 opened 8 months ago

LeeWhite187 commented 8 months ago

Describe the bug

Running a successful Baget nuget server (v0.4.0-preview2). I can publish nupkg files to it, browse them, and download them successfully. So, the nupkg functionality works fine.

However: I am unable to download snupkg files, that were uploaded. Nor, am I able to browse them. When uploading: 'nuget push' doesn't report an error when publishing snupkg files to it. But, I cannot download symbol files from the baget server. And, I have the symbol server listed for debug: image

To Reproduce

Steps to reproduce the behavior: With a running instance of v0.4.0-preview2: I upload a compiled nupkg and snupkg from one of my VS projects: dotnet nuget push -s http://nugetserver:8079/v3/index.json './Publish/testproject.v1.0.1.nupkg' dotnet nuget push -s http://nugetserver:8079/v3/index.json './Publish/testproject.v1.0.1.snupkg' I attempt to browse to the symbol page: http://nugetserver:8079/api/download/symbols This fails with 404. I attempt to consume the symbols in a VS project, using the URL: http://nugetserver:8079/api/download/symbols No symbols are loaded, as indicated by the Debug/Windows/Modules window: image

Expected behavior

Expected behavior is that the (uploaded) symbols can be downloaded by VS during debug. From what I've read of issues about the symbol server, the symbol server endpoint is browsable.

Screenshots

Screenshots are embedded, above.

Additional context

I've also downloaded the VS project for Baget, and ran it in the IDE. It also returns a 404 when attempting to browse the symbol server endpoint: http://localhost:5000/api/download/symbols

seriouz commented 7 months ago

What is /api/download/symbols? Did you mean something like that: /api/download/symbols/ba/bagetter.web.pdb/06396877d6594b2b8ce1b26deda90f0dffffffff/bagetter.web.pdb) ( /api/download/symbols/{prefix}/{file}/{key}/{file2})? This is a symbol-path called by Visual Studio.

@LeeWhite187 If you need more help please ask under https://github.com/bagetter/BaGetter