Git Product home page Git Product logo

flutter_aws_cloudwatch's People

Contributors

khurram72 avatar zsmerritt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

flutter_aws_cloudwatch's Issues

Add more options to deal with messages over 200k bytes

Currently large messages can either be split or throw an error. This is probably not the best option because this large message error might only be discovered in production with real users. Instead an enum should be added that would indicate which option is preferred. Values of this enum that I can think of are [error, ignore, truncate, split].

[BUG] Sequence Token Not Received on Web Platform

Whenever I try to make a log request to CloudWatch using flutter web client, the first request is successfully logged to the cloudwatch as no sequence token is required for new log stream.

However, any subsequent log request to same logStream throws an error CloudWatchException - message: null.

So I tried to debug the things and found out that only statusCode value is available on web and all the other fields remains null as in below AwsResponse class.

class AwsResponse{
  int statusCode;
  String? type;
  String? message;
  String? nextSequenceToken;
  String? expectedSequenceToken;
  String? raw;
}

Sample Response on web

{
"statusCode" : 400,
"type" : null,
"message" : null,
"nextSequenceToken" : null,
"expectedSequenceToken" : null,
"raw" : null
}

Due to this the nextSequenceToken is null and on next request we get a statusCode as 400 which implies nextSequenceToken was not included in the request, and now the error handler _handleError is unable to resolve the error response as expectedSequenceToken is also null.

Hence, only single request is sent to the cloudwatch and other logs doesn't append to the same logStream.

Could you please have a look into the issue, I am trying to figure out if it's an issue with AwsRequest or universal_io.

Your thoughts would be really helpful on this.

Upgrade intl package dependency to 0.19.0

In Flutter version 3.22.0 intl is pinned to version 0.19.0 by flutter_localizations from the flutter SDK, so aws_cloudwatch doesn't match this requirement.

Thanks.

Error when logging for a region different than 'us-west-2'

Utilizing the region 'us-east-1' i receive the error:

{__type: InvalidSignatureException, message: Credential should be scoped to a valid region, not 'us-west-2'. }

But when utilizing the 'us-west-2' region i got this error (as expected)

{__type: ResourceNotFoundException, message: The specified log group does not exist.}

Error while logging: The security token included in the request is invalid

Hi,

Whenever I am trying to log some message to AWS Cloudwatch using our temp access key & secret key, the following error is thrown.

CloudWatchException - type: UnrecognizedClientException, message: The security token included in the request is invalid.

Also, could you please highlight, why the library doesn't have accessToken as a param, and how does it log without token?

I am using the latest version of the library: aws_cloudwatch: ^0.4.5

I have followed the guide as per the Example 3, as in installation guide, still encountering the issue as mentioned.

Your help would be highly appreciated.

Thanks!

@Zsmerritt

Cannot log to existing stream

I am trying to log to an existing stream. But it is throwing CloudWatchException - type: ResourceAlreadyExistsException, message: The specified log stream already exists error.

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.