percy / cli

The Percy CLI is used to interact with, and upload snapshots to, percy.io via the command line.
https://docs.percy.io/docs/cli-overview
70 stars 43 forks source link

Base64 encoded SVGs cause error when capturing #1586

Closed ajoneil closed 3 months ago

ajoneil commented 5 months ago

The problem

We have a base64 encoded SVG image on our page, and our tests work when Percy snapshots are not enabled. When enabling them, there is an HTTP request for the serialised image which fails:

     Failure/Error: raise ActionController::RoutingError, "No route matches [#{env['REQUEST_METHOD']}] #{env['PATH_INFO'].inspect}"

     ActionController::RoutingError:
       No route matches [GET] "/__serialized__/_51p3niala.svg+xml"

Environment

Details

This error only occurs when we upgrade our Percy CLI from 1.27.4 to the latest 1.28.5. Much like #1568, https://github.com/percy/cli/commit/0a48e87d5b5cfaf1d469728e3d6de34171edfe2a appears to be the culprit.

Unfortunately the fix for that issue (#1571) does not work as our Capybara drives Selenium in a different docker image, and so our host is not 127.0.0.1 or localhost but a 192.168. address.

shantanuk-browserstack commented 5 months ago

Hi @ajoneil ,

Thank you for bringing this to our attention. Rest assured, we are currently investigating this.

github-actions[bot] commented 4 months ago

This issue is stale because it has been open for more than 14 days with no activity. Remove stale label or comment or this will be closed in 14 days.

github-actions[bot] commented 3 months ago

This issue was closed because it has been stalled for 28 days with no activity.

Yama-Tomo commented 1 month ago

Same issue. I think this rewrite needs to be configurable.

Yama-Tomo commented 3 weeks ago

@shantanuk-browserstack any update?