Comments (4)
I think these operations should return a disjunction @seratch would you be willing to have scalaz./ on these types?
from awscala.
+1 here
Similar issue:
java.util.NoSuchElementException: None.get
at scala.None$.get(Option.scala:313)
at scala.None$.get(Option.scala:311)
at awscala.dynamodbv2.DynamoDB$class.putItem(DynamoDB.scala:208)
at awscala.dynamodbv2.DynamoDBClient.putItem(DynamoDB.scala:348)
at awscala.dynamodbv2.DynamoDB$class.put(DynamoDB.scala:205)
at awscala.dynamodbv2.DynamoDBClient.put(DynamoDB.scala:348)
at awscala.dynamodbv2.Table.putItem(Table.scala:42)
at awscala.dynamodbv2.Table.put(Table.scala:36)
This is triggered by a simple dynamoDB.table(TableName).get.put(...)
.
Edit: I was supplying a range key and my table was misconfigured. Still, an opaque error message.
from awscala.
@findchris In your case it makes sense to get NSE
because you call .get
on the optional value which fails if it's None
, I'm just wondering why it happens in case of dynamoDB.table("mytable").nonEmpty
because nonEmpty
obviously just delegates the job to isDefined
method for an Option
which is a safe operation!
@backender are you sure you get the exception exactly on that line of the code? I never got such an exception using DynamoDB with AWScala recently.
from awscala.
@naderghanbari I'm not actively using the library anymore but since I remember spending quiet some time with the issue, I presume what I documented was what I experienced.
from awscala.
Related Issues (20)
- Tagging with S3 object PUTs
- Change return type for SQS Message Deletion functions HOT 4
- Dependency on deprecated AWS SDK functionality in S3
- Is there any support for comprehend? HOT 2
- Region.Tokyo: java.lang.NoClassDefFoundError: Could not initialize class awscala.package HOT 2
- use java.time instead of joda-time HOT 2
- NullPointerException occurred when describing dynamodb table without BillingMode HOT 4
- Scala 2.13 support HOT 9
- SQS 1000 queues limit bug HOT 2
- Cannot create enum from eu-north-1 value! HOT 7
- Scala 2.11 support/AWS EMR compatibility HOT 3
- Question: How to switch role after login? HOT 1
- Add support to the batchGetItem API for tables that use a composite primary key
- scala S3 client Credentials problems
- deprecated Stream type in scala 2.13 HOT 1
- Cluster object has missing fields HOT 1
- support Route 53
- Alternative to @hashPK & @rangePK when using Scala 3
- Support AWS Glue
- CI build failure
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from awscala.