Giter VIP home page Giter VIP logo

Comments (3)

RanVaknin avatar RanVaknin commented on June 12, 2024 1

Hi @ewbankkit ,

Thanks for reaching out. I logged the raw response before it gets deserialized by the SDK and it looks like this:

SDK 2024/02/06 11:28:52 DEBUG Response
HTTP/2.0 400 Bad Request
Content-Length: 123
Content-Type: application/x-amz-json-1.1
Date: Tue, 06 Feb 2024 19:28:52 GMT
X-Amzn-Requestid: REDACTED

{"__type":"NotFoundException","className":"NotFound","code":404,"message":"Unable to find [nonExistentEnvId] in database."}

As you can see, two separate sets of errors are being sent, one in the headers and one in the body. Based on the JSON protocol cloud9 uses, the error code should be only specified in the header (string) whereas the service models their code field as an integer as shown in the body.

I'll raise this internally and see how we can address this.
Thanks again,
Ran~

from aws-sdk-go-v2.

lucix-aws avatar lucix-aws commented on June 12, 2024 1

The root cause here is that we're making the incorrect assumption that code is a special field in awsjson errors meant to hold the modeled error's name. This is true for __type but the former can technically be modeled as one of the members on the error as well. We're not accounting for that, which we'll need to fix.

from aws-sdk-go-v2.

github-actions avatar github-actions commented on June 12, 2024

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.

from aws-sdk-go-v2.

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.