update aggregate_by_url

  - Do encoding once in request call
  - provide different message for empty repsonse (vs error)