You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This may or may not be a bug. I'll leave that up to the authors of the library.
I have the impression that get, query, and other operations are intended never to throw an exception (but instead return Left(someError). However, if you call get('myKey -> "myVal") when 'myKey is not the primary key, then exec will throw an exception from within the AWS dynamodb client.
In my case, the issue was that myKey was only the hashing key and I had neglected to provide a value for the sorting key. Clearly user error, but also still a thrown exception.
The text was updated successfully, but these errors were encountered:
Technically, the semantics of List[Either[]] is more accurate since errors can occur at the record level. We don't want the whole result to fail if only one record fail, though we don't want to lose that information either. So, I'm not sure Either[List[]] is the right choice here. We need a ScanamoGetResult[A].
This may or may not be a bug. I'll leave that up to the authors of the library.
I have the impression that
get
,query
, and other operations are intended never to throw an exception (but instead returnLeft(someError)
. However, if you callget('myKey -> "myVal")
when'myKey
is not the primary key, thenexec
will throw an exception from within the AWS dynamodb client.In my case, the issue was that
myKey
was only the hashing key and I had neglected to provide a value for the sorting key. Clearly user error, but also still a thrown exception.The text was updated successfully, but these errors were encountered: