Git Product home page Git Product logo

sumo's Issues

API throttling

I noticed some throttling messages sneaking into the console on a search with a very large number of results, along the lines of

> sumo --query '_sourceCategory = my-thing' --from 4d
{ [HTTPError: Response code 429 (Too Many Requests)]
  message: 'Response code 429 (Too Many Requests)',
  host: 'api.sumologic.com',
  hostname: 'api.sumologic.com',
  method: 'GET',
  path: '/api/v1/search/jobs/4FD8AA773A30EAD6',
  statusCode: 429,
  statusMessage: 'Too Many Requests' }

The search continued to return results.

Trouble with order by _messageTime clause

Trying a CLI query like

 sumo -q '_sourceCategory = my-thing | order by _messageTime asc' --from 4d

... pagination doesn't seem to work properly. It appears that each step back in time returns messages up until present, so it keeps repeat printing the most recent messages.

Unhandled Promise rejections with createReadStream

I am seeing that the code in my proof of concept using this library gets this error from node:

Unhandled promise rejection (rejection id: 2): Error: No records were found after 30s

I can't see a way to handle this rejection as a consumer of this library.
I think mapbox/sumo should handle all internal errors and propagate any relevant errors. The relevant errors should be propagated as a promise rejection for sumo.search calls and an error event for sumo.createReadStream

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.