Giter Site home page Giter Site logo

Comments (5)

bblommers avatar bblommers commented on June 1, 2024

Hi @filol, marking it as an enhancement to add these fields.

Do you have any documentation on the HostId-field? I couldn't find any info on the meaning/value of it.

from moto.

filol avatar filol commented on June 1, 2024

Hi @bblommers, thanks !

Didn't find any information inside the boto3 documentation. Only a mention here : https://boto3.amazonaws.com/v1/documentation/api/latest/guide/error-handling.html#parsing-error-responses-and-catching-exceptions-from-aws-services

But i find this in the JAVA SDK documentation for S3 : "Amazon S3 also includes a host ID that can be provided to Amazon Web Services support when debugging an issue with Amazon S3."
https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/s3/S3ResponseMetadata.html

from moto.

bblommers avatar bblommers commented on June 1, 2024

@filol
I just tested a range of CognitoIDP operations against AWS (admin_create_user, list_users, list_resource_servers, and a few others), and they all contain the RequestId-header. I'll probably refactor Moto a bit to return this field everywhere, not just for CognitoIDP, as I believe it is returned for all services.

However: none of these operations returned the HostId-header. Was there a specific operation where you saw that returned?

from moto.

bblommers avatar bblommers commented on June 1, 2024

The RequestId will be part of every request from Moto v5.

We've released an alpha version yesterday if you want to try it out: moto==5.0.0alpha2

See the release announcement here to see the breaking changes:
#7198

from moto.

bblommers avatar bblommers commented on June 1, 2024

Moto v5 is now released: https://pypi.org/project/moto/5.0.0/

from moto.

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.