Coder Social home page Coder Social logo

Comments (6)

4knahs avatar 4knahs commented on August 18, 2024 1

Sorry for the late reply. From what i recall i tested just mturk, haven't touched that code in a long time though.

from aws-elixir.

jadeallenx avatar jadeallenx commented on August 18, 2024

Thanks for the message. This code is autogenerated by aws-codegen, so it is likely an error in the template which assembled this module for this API.

That's more than I have time to manage today but I will look into it.

from aws-elixir.

4knahs avatar 4knahs commented on August 18, 2024

I correct my previous statement, the error messages aren't always nil.

Apparently the first letter case is arbitrary across requests.. Here is a response body to AWS.MechanicalTurk.list_h_i_ts\3 with lower case:

%HTTPoison.Response{
    body:
      "{\"__type\":\"ValidationException\",\"message\":\"1 validation error detected: Value '1000' at 'maxResults' failed to satisfy constraint: Member must have value less than or equal to 100\"}",
    headers: [
      {"x-amzn-RequestId", "4481aec4-ac71-4517-bbb8-3d3125440041"},
      {"Content-Type", "application/x-amz-json-1.1"},
      {"Content-Length", "181"},
      {"Date", "Mon, 09 Apr 2018 10:22:03 GMT"},
      {"nnCoection", "close"}
    ],
    status_code: 400
  }

from aws-elixir.

jfacorro avatar jfacorro commented on August 18, 2024

@4knahs Do you know if this applies only to the mturk integration or to all of them?

from aws-elixir.

jfacorro avatar jfacorro commented on August 18, 2024

After some investigation the shape of the error depends on the API being used and the specific error returned. A possible approach is the one described here which involved returning the full (decoded) error.

from aws-elixir.

jfacorro avatar jfacorro commented on August 18, 2024

The clients are returning the whole parsed error in latest master now to avoid having to figure out the different paths to the message and code.

from aws-elixir.

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.