apify-client-js icon indicating copy to clipboard operation
apify-client-js copied to clipboard

Escape/validate URL parameters

Open mtrunkat opened this issue 6 years ago • 1 comments

For example request to kv-store with invalid record key - /v2/key-value-stores/FqL6uryckkkdaXEmr/records/• causes an error TypeError: Request path contains unescaped characters.

mtrunkat avatar Jan 31 '19 12:01 mtrunkat

Still relevant in client v1

 TypeError [ERR_UNESCAPED_CHARACTERS]: Request path contains unescaped characters
      at new NodeError (node:internal/errors:329:5)
      at new ClientRequest (node:_http_client:164:13)
      at Object.request (node:https:333:10)

mnmkng avatar Apr 17 '21 14:04 mnmkng