Closed obrigadu closed 2 weeks ago
2.33.1
Windows 11
No response
sentry-cli.exe --log-level=debug debug-files upload --project <project-name> --include-sources "<path/to/pdb>"
<project-name>
<path/to/pdb>
The .res file should either be ignored by the CLI, as it is not a debug information file, or handled appropriately without causing an encoding error.
.res
The upload process fails with an error indicating that the .res file cannot be read as UTF-8.
INFO 2024-08-14 16:06:14.683870300 +09:00 Loaded config from path\to\.sentryclirc DEBUG 2024-08-14 16:06:14.685208 +09:00 sentry-cli version: 2.33.1, platform: "windows", architecture: "x86_64" INFO 2024-08-14 16:06:14.686004100 +09:00 sentry-cli was invoked with the following command line: "sentry-cli.exe" "--log-level=debug" "debug-files" "upload" "--project" "<project-name>" "--include-sources" "C:\sources\Solution1\Debug\ConsoleApplication1.pdb"
path\to\.sentryclirc
C:\sources\Solution1\Debug\ConsoleApplication1.pdb
...
DEBUG 2024-08-14 16:21:16.165731200 +09:00 searching location C:\sources\Solution1\Debug\ConsoleApplication1.pdb DEBUG 2024-08-14 16:21:16.173171300 +09:00 trying to process ConsoleApplication1.pdb DEBUG 2024-08-14 16:21:16.173552900 +09:00 trying to parse dif ConsoleApplication1.pdb DEBUG 2024-08-14 16:21:16.173958100 +09:00 finished location C:\sources\Solution1\Debug > Found 1 debug information file DEBUG 2024-08-14 16:21:16.174907200 +09:00 trying to collect sources for ConsoleApplication1.pdb DEBUG 2024-08-14 16:21:16.176066800 +09:00 Trying to add source file: C:\sources\Solution1\ConsoleApplication1\Debug\ConsoleApplication1.res error: file could not be read as UTF-8 caused by: stream did not contain valid UTF-8 INFO 2024-08-14 16:21:16.184029400 +09:00 Skipping update nagger update check
ConsoleApplication1.pdb
C:\sources\Solution1\Debug
C:\sources\Solution1\ConsoleApplication1\Debug\ConsoleApplication1.res
This is likely a duplicate of https://github.com/getsentry/symbolic/issues/860. We are already working on a fix upstream, and will bump the dependency in Sentry CLI once the fix is released
CLI Version
2.33.1
Operating System and Architecture
Operating System Version
Windows 11
Link to reproduction repository
No response
CLI Command
sentry-cli.exe --log-level=debug debug-files upload --project
<project-name>
--include-sources "<path/to/pdb>
"Exact Reproduction Steps
Expected Results
The
.res
file should either be ignored by the CLI, as it is not a debug information file, or handled appropriately without causing an encoding error.Actual Results
The upload process fails with an error indicating that the
.res
file cannot be read as UTF-8.Logs
INFO 2024-08-14 16:06:14.683870300 +09:00 Loaded config from
path\to\.sentryclirc
DEBUG 2024-08-14 16:06:14.685208 +09:00 sentry-cli version: 2.33.1, platform: "windows", architecture: "x86_64" INFO 2024-08-14 16:06:14.686004100 +09:00 sentry-cli was invoked with the following command line: "sentry-cli.exe" "--log-level=debug" "debug-files" "upload" "--project" "<project-name>
" "--include-sources" "C:\sources\Solution1\Debug\ConsoleApplication1.pdb
"...
DEBUG 2024-08-14 16:21:16.165731200 +09:00 searching location
C:\sources\Solution1\Debug\ConsoleApplication1.pdb
DEBUG 2024-08-14 16:21:16.173171300 +09:00 trying to processConsoleApplication1.pdb
DEBUG 2024-08-14 16:21:16.173552900 +09:00 trying to parse difConsoleApplication1.pdb
DEBUG 2024-08-14 16:21:16.173958100 +09:00 finished locationC:\sources\Solution1\Debug
> Found 1 debug information file DEBUG 2024-08-14 16:21:16.174907200 +09:00 trying to collect sources forConsoleApplication1.pdb
DEBUG 2024-08-14 16:21:16.176066800 +09:00 Trying to add source file:C:\sources\Solution1\ConsoleApplication1\Debug\ConsoleApplication1.res
error: file could not be read as UTF-8 caused by: stream did not contain valid UTF-8 INFO 2024-08-14 16:21:16.184029400 +09:00 Skipping update nagger update check