Code Monkey home page Code Monkey logo

cw-logs-insights-gpt's People

Contributors

ljacobsson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cw-logs-insights-gpt's Issues

Getting a "sk is not defined" error

I'm getting a couple of errors when I install this extension.

Environment:

  • MacBook Pro M1
  • macOS 13.4 beta
  • Chrome Version 112.0.5615.49 (Official Build) (arm64)

Errors:

image
image

Getting a "Uncaught TypeError"

I'm getting a "Uncaught TypeError" when I try to click the "Conert to Query" button.

Env

  • Version 112.0.5615.121 (Official Build) (x86_64)

Steps to recreate

  • cloned repo
  • created API key
  • added api key in quotation mark to src/apiKey.js file
  • ran npm install && npm run build
  • added the <project-root>/build as an extenstion in the developer mode
  • opened the CloudWatch Insights console
  • Started to write a query in qutoation marks, which made the button Convert to query appear
  • After clicking, nothing happened - except error messages in chrome://extensions

Error log:

Uncaught TypeError: Cannot read properties of undefined (reading 'sendMessage')

Context
https://eu-central-1.console.aws.amazon.com/cloudwatch/home?region=eu-central-1#logsV2:logs-insights$3FqueryDetail$3D~(end~0~start~-3600~timeType~'RELATIVE~unit~'seconds~editorString~'*22How*20many*20queries*20take*20longer*20than*205*20secodns*3f*22~queryId~'62bc97d3-ffb6-4b38-9604-91327a9cd4e2~source~(~'*2faws*2flambda*2fconfigurator-backend-Lambda-Xw5c55pduoZP))

Stacktrace
contentScript.js:2 (Anonymous Function)

response query may not be accurate

This works. Appreciate the concept.

But the query returned does not seem to be correct.
For e.g. my prompt was

"requests taking more than 100ms"

It returned:

fields @timestamp, @message
| filter @message like /requests taking more than 100ms/
| stats count() by bin(1h)

This may or may not be correct.

AxiosError 429 in background.js

Steps: Followed all of the steps to build with my API key. Entered the same text from the example and click Convert to Query.

Results: OpenAI shows the key was used, but the page does not update. Chrome extensions errors show this:

Uncaught (in promise) AxiosError: Request failed with status code 429
Context
    background.js
Stack Trace
    background.js:0 (anonymous function)

Running: Chrome Version 112.0.5615.137 (Official Build) (arm64)

Axios 429 is a Too Many Requests error. I've checked my OpenAI usage limits and I am not being limited. No usage is shown in the OpenAI usage statistics.

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.