Skip to content

Rate limit errors not trapped correctly? #30

Description

@GeoffreyPlitt

I'm checking data.error correctly, but I still see console.log's with the following error when I query too often with the raw datapoint export:

Oct 18 15:25:46 stardust-backend app/misc_workers3.1:  undefined:1 
Oct 18 15:25:46 stardust-backend app/misc_workers3.1:  [rate limit reached] 
Oct 18 15:25:46 stardust-backend app/misc_workers3.1:   ^ 
Oct 18 15:25:46 stardust-backend app/misc_workers3.1:  SyntaxError: Unexpected token r in JSON at position 1 
Oct 18 15:25:46 stardust-backend app/misc_workers3.1:      at Object.parse (native) 

A few problems:

  • Something is JSON.parse'ing non JSON data
  • This error is then not trapped correctly, it's console-logged but my error checking doesn't catch it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions