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

Exception is thrown when Project ID has hyphen (-) #1073

Open
roopa0222 opened this issue Aug 19, 2024 · 0 comments
Open

Exception is thrown when Project ID has hyphen (-) #1073

roopa0222 opened this issue Aug 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@roopa0222
Copy link

Describe the bug
In my testing, I came across the below exception when the project ID has a hyphen
Ex: ID as ce768482-b2d7-4364-ad95-c1fa9f700ce4

[dotnet data provider]
Exception while handling message: System.ArgumentException: String must contain only hexadecimal characters: ce768482-b2d7-4364-ad95-c1fa9f700ce4
at PtxUtils.StringUtils.HexToByteArr(String hexStr)
at Paratext.Data.HexId..ctor(String hexId)
at Paratext.Data.HexId.FromStr(String hexStr)
at Paranext.DataProvider.Projects.LocalParatextProjects.GetParatextProject(String projectId) in C:\Repos\paranext-core\c-sharp\Projects\LocalParatextProjects.cs:line 118
at Paranext.DataProvider.Checks.CheckRunner.GetOrCreateDataSource(String projectId) in C:\Repos\paranext-core\c-sharp\Checks\CheckRunner.cs:line 307
at Paranext.DataProvider.Checks.CheckRunner.EnableCheck(String checkId, String projectId) in C:\Repos\paranext-core\c-sharp\Checks\CheckRunner.cs:line 170
at Paranext.DataProvider.Checks.CheckRunner.HandleRequest(String functionName, JsonArray args) in C:\Repos\paranext-core\c-sharp\Checks\CheckRunner.cs:line 92
at Paranext.DataProvider.NetworkObjects.DataProvider.FunctionHandler(JsonElement request) in C:\Repos\paranext-core\c-sharp\NetworkObjects\DataProvider.cs:line 91
at Paranext.DataProvider.MessageHandlers.MessageHandlerRequestByRequestType.HandleMessage(Message message)+MoveNext() in C:\Repos\paranext-core\c-sharp\MessageHandlers\MessageHandlerRequestByRequestType.cs:line 47
at Paranext.DataProvider.MessageTransports.PapiClient.HandleIncomingMessage(Message message) in C:\Repos\paranext-core\c-sharp\MessageTransports\PapiClient.cs:line 545

Expected behavior
Feedback from TJ: Should handle the exception more gracefully

@roopa0222 roopa0222 added the bug Something isn't working label Aug 19, 2024
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
Status: 📥 On Deck
Development

No branches or pull requests

1 participant