Error mapping types: PublishedFileDetailsModel.FileUrl
See original GitHub issueI’m using the SteamRemoteStorage
interface to get information on a workshop item.
It appears that the file_url
property is ""
which throws a UriFormatException
. I have checked a couple of workshop mods and the file_url
property is always an empty string, I did check one collection which had a valid url.
I took a quick look and I believe changing the mappings in Mappings/SteamRemoteStorageProfile to something like opts.MapFrom(source => string.IsNullOrWhiteSpace(source.FileUrl) ? null : new Uri(source.FileUrl))
should fix this issue.
Let me know if you’d be interested in a PR, it might be useful to add this check any Uri
fields (I see there are two in SteamRemoteStorageProfile
and a bunch in SteamProfileProfile
.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
c# - automapper Error mapping types
I've found a problem. I forgot to send id from my subscriptionViewModel(Subscription is an enum type). .ForMember(p => p.
Read more >AutoMapper.AutoMapperMappingException: Error ...
Hi, I'm facing the same issue as explained in #209 I think. It seems fixed though. But I'm using Elsa 2.2.1. Maybe not...
Read more >How do I solve this error mapping using Automapper?
I have the following error when using Automapper: Error mapping types Mapping types: Order -> OrderResp DB.Entities.Order ->…
Read more >New with AutoMapper - Error mapping types ? · Issue #1454
i got error: Error mapping types. Mapping types: AZTRHExpire -> AZTRHNoraml PricingUpdate.Models.ExpireDbContext.AZTRHExpire > PricingUpdate ...
Read more >Error mapping types #1697
Hi,. After upgrading ABP to version 0.12.0 I get an exception: Error mapping types. Mapping types: OutgoingTransaction -> OutgoingTransactionDto
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Working perfectly now. Thanks for the awesome library!
Fixed on commit dd037ac8a9522dcec07f510c8ed6a09ca82c23b0 and release 4.2.3.