question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error mapping types: PublishedFileDetailsModel.FileUrl

See original GitHub issue

I’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:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
oliver4888commented, May 6, 2020

Working perfectly now. Thanks for the awesome library!

0reactions
babelshiftcommented, May 6, 2020

Fixed on commit dd037ac8a9522dcec07f510c8ed6a09ca82c23b0 and release 4.2.3.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found