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.
I'm checking
data.errorcorrectly, but I still see console.log's with the following error when I query too often with the raw datapoint export:A few problems: