Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thumbnails don't work locally or on staging #4450

Open
sophiamersmann opened this issue Jan 14, 2025 · 5 comments
Open

Thumbnails don't work locally or on staging #4450

sophiamersmann opened this issue Jan 14, 2025 · 5 comments

Comments

@sophiamersmann
Copy link
Member

sophiamersmann commented Jan 14, 2025

Description

Grapher thumbnails only work once, then fail on subsequent hits with a 500 error.

Sorry about the pic. Can't copy in tmux.

Image

Steps to reproduce

  1. Go to any staging site, e.g. http://staging-site-sophia/grapher/income-share-distribution-before-tax-wid.svg
  2. Refresh

Additional context

Martin wrote on Slack: "After a quick Google search, it seems like we shouldn’t be setting the headers directly in functions/_common/reusableHandlers.ts and instead treat them as immutable when it’s a response from native fetch. See related fix in Remix."

@danyx23
Copy link
Contributor

danyx23 commented Jan 14, 2025

Martin investigated some more and thinks it might instead be related to this issue in itty-router

@danyx23
Copy link
Contributor

danyx23 commented Jan 14, 2025

@sophiamersmann is this blocking you and/or does this happen in prod? We are triaging this now assuming that neither is the case - if this assumption is wrong then this might be even essential

@sophiamersmann
Copy link
Member Author

@danyx23 It's not happening in prod, but I do have a PR up that is difficult to test because of this bug. I also eventually want to add thumbnails for chart views, which would also be a lot easier if this bug didn't make testing difficult.

@danyx23
Copy link
Contributor

danyx23 commented Jan 14, 2025

@ikesau do you feel comfortable debugging this this week or early next? Or do you think someone else would be better suited?

@ikesau
Copy link
Member

ikesau commented Jan 14, 2025

Yeah! Happy to take this on 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants