Skip to content

[BUG] Some images 404 in playwright trace's snapshot preview (consistently in one browser/machine but not others) #12311

@neil-morrison44

Description

@neil-morrison44

Context:

  • Playwright Version: 1.19.1
  • Operating System: ubuntu (Github workflow)
  • Node.js version: 16.13
  • Browser: Chromium

This is only affecting my browser (chrome), other people are able to see the images fine in exactly the same trace & I'm able to see the trace's images in other browsers.

The images in particular which are 404ing are Google map tiles with URLs like - https://maps.googleapis.com/maps/vt?pb=!1m5!1m4!1i5!2i14!3i10!4i256!2m3!1e0!2sm!3i591321374!3m17!2sen!3sGB!5e18!12m4!1e68!2m2!1sset!2sRoadmap!12m3!1e37!2m1!1ssmartmaps!12m4!1e26!2m2!1sstyles!2zcy50OjJ8cC52Om9mZg!4e0&key=[our_google_maps_key_here]&token=112527

As far as I can gather these should be being caught in the service worker & the ones from the resources bundle used instead.
I can provide a link to a trace via DM or whatever (can't share publicly for the same reason I took the google maps key out from above) - but chances are it'll appear to work fine.

The first of our apps I set up to use traces will consistently show me the images, but I get 404s for all the other apps I set up.
I'm using https://trace.playwright.dev/ & supplying the trace as a url parameter where it's a link to a zip in an S3 bucket with CORS set up properly.


Let me know if there's any additional debugging information I can get out, I've tried ticking the Update on reload option in the Service Workers dev tools panel to see if that'd change anything but it didn't.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions