Are you sure it's not one of the other two Guid.Parse
calls you're making in that method?
Guid.Parse throw exception about invalid format, but Guid.TryParse returns true
Hello,
I'm working with gRPC technology and now have a weird problem with Guid.Parse method.
First of all, you can see the source code of my project here. The problem is in WebAPI service, Database Info Service responses. TableService.GetByDatabaseAsync is what I've tested and the end stack trace is in AttributeMapper when the program parses attribute id.
I'm trying to fix the problem myself, so lines in StackTrace could be different with the lines from source code in GitLab.
I've attached 2 screenshots:
- The logs from docker container
- Code that generate these logs
As you can see Guid.TryParse says that guid is good
But when I parse with Guid.Parse method, I've got such exception.
The Guid is generated with Guid.NewGuid() and has been written to postgres db
1 answer
Sort by: Most helpful
-
P a u l 10,731 Reputation points
2023-09-10T17:51:06.7166667+00:00