Code Monkey home page Code Monkey logo

Comments (4)

larroy avatar larroy commented on June 24, 2024

I think these operations should return a disjunction @seratch would you be willing to have scalaz./ on these types?

from awscala.

findchris avatar findchris commented on June 24, 2024

+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.

naderghanbari avatar naderghanbari commented on June 24, 2024

@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.

mjuchli avatar mjuchli commented on June 24, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.