alvarcarto / url-to-pdf-api

Web page PDF/PNG rendering done right. Self-hosted service for rendering receipts, invoices, or any content.
MIT License
7.01k stars 774 forks source link

Encoded URI's not accepted in GET "url" parameter #147

Closed WeaverOfTheWeb closed 3 years ago

WeaverOfTheWeb commented 3 years ago

Example URL: /api/render?output=screenshot&url=https://google.com/search?q=this%20is%20cool

Is there any reason as to why we can't do the above? When an encoded URL is provided, the following error is given:

{"status":400,"statusText":"Bad Request","errors":[{"field":["url"],"location":"query","messages":["\"url\" must be a valid uri with a scheme matching the http|https pattern"],"types":["string.uriCustomScheme"]}]}