drivly / ctx.do

Context Enrichment API
https://ctx.do
MIT License
6 stars 1 forks source link

Handle writeDataPoint errors #41

Closed nathanclevenger closed 1 year ago

nathanclevenger commented 1 year ago

Currently very long URLs will crash ctx.do with

{
  "error": {
    "name": "TypeError",
    "message": "writeDataPoint(): Cumulative size of blobs exceeds 5120 bytes)."
  }
}

We need to cleanly handle/swallow that ... and probably trim URL if it's over a certain length

sam-lippert commented 1 year ago

https://github.com/drivly/ctx.do/commit/83ad15047e3672eef797c20b6701fd30f5083786