Exception when copying card
See original GitHub issueJust got this on my production system after doing the upgrade today:
System.ArgumentNullException: Value cannot be null.
Parameter name: key
at System.Collections.Concurrent.ConcurrentDictionary`2.TryGetValue(TKey key, TValue& value)
at Manatee.Trello.Internal.Caching.ConcurrentCache.Find[T](String id)
at Manatee.Trello.Internal.Caching.CachingObjectFactory.GetFromCache[T](IJsonCacheable json, TrelloAuthorization auth)
at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
at Manatee.Trello.ReadOnlyCollection`1.Update(IEnumerable`1 items)
at Manatee.Trello.Internal.Synchronization.AttachmentContext.MergeDependencies(IJsonAttachment json)
at Manatee.Trello.Internal.Synchronization.SynchronizationContext`1.Merge(TJson json, Boolean overwrite)
at Manatee.Trello.Internal.Synchronization.CardContext.<MergeDependencies>b__47_1(IJsonAttachment a)
at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
at Manatee.Trello.ReadOnlyCollection`1.Update(IEnumerable`1 items)
at Manatee.Trello.Internal.Synchronization.CardContext.MergeDependencies(IJsonCard json)
at Manatee.Trello.Internal.Synchronization.SynchronizationContext`1.Merge(TJson json, Boolean overwrite)
at Manatee.Trello.CardCollection.<CreateCard>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Manatee.Trello.CardCollection.<Add>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Ops.Features.Trello.Handler.<Handle>d__4.MoveNext() in C:\BuildAgent\work\d8126f682f27008b\source\Ops\Features\Trello\Handler.cs:line 46
Handler.cs:line 46 contains:
var board = _trello.Board("some board ID");
await board.Lists.Refresh();
var list = board.Lists["some list ID"];
var cards = list.Cards;
card = await cards.Add(_trello.Card("some template card ID")); // line 46
The error is persistent, i.e. doesn’t go away when the request is repeated by the system. On Trello web I can see the template card being copied, but no modifications were made to them. (Modifications happen after line 46.)
Issue Analytics
- State:
- Created 5 years ago
- Comments:13 (8 by maintainers)
Top Results From Across the Web
CR 706. Copying Objects - Rules Resources
(Certain older cards were printed with the phrase “search for a copy. ... 706.9 Copy effects may include modifications or exceptions to the...
Read more >Exception when trying to copy/move to SD Card
Exception when trying to copy/move to SD Card. Throws access denied exception, even though I'm using in a rooted phone. Please assist.
Read more >java - Error in handling exception for duplicate cards ...
It's probably not throwing the expected exception because you aren't giving it any duplicate cards. It's not comparing the hands to each ...
Read more >Solved: Rule of copying a card to another board under a tr...
when a card with the red "check" label is created in the board by anyone (I tried also "by me"), copy the card...
Read more >Fix Unspecified Error When Copying File or Folder on ...
Just follow this page and find solutions to fix 'Error Copying File or Folder' ... write-protection from your hard drives, USB drives, and...
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 Free
Top 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
Thanks, it seems to be working now!
Okay. v3.0.10 should be available soon. Good luck.