Code Monkey home page Code Monkey logo

Comments (7)

tmhr94 avatar tmhr94 commented on September 27, 2024 1

Hi, @ankane
Thanks for your response!

The file is blazer html.

Screen Shot 2022-11-23 at 11 05 43

blazer html have a link field in Response Headers which have many preload links.

Screen Shot 2022-11-23 at 11 14 39

That's why I got an error on Nginx.

Of course, I can solve this error by increasing the buffer size(ref), but there is a better option like this issue title

from blazer.

ankane avatar ankane commented on September 27, 2024

Hey @rikoroku, which files get that error?

from blazer.

ankane avatar ankane commented on September 27, 2024

Hey @rikoroku, it looks the page is returning a 200. Can you paste the nginx logs (with any sensitive info removed)?

I don't think a bundler should be needed (we can switch to minified assets instead), but I'm not sure how common the issue is, so probably won't make any changes now.

from blazer.

ankane avatar ankane commented on September 27, 2024

It looks like the largest asset file is under 1MB, which nginx should have no problem serving, so seems like something else may be going on.

from blazer.

stevenbarragan avatar stevenbarragan commented on September 27, 2024

I'm using Propshaft and I'm having the same issue. I can see in the logs the rails app returns a 200 on the /blazer route but then nginx throws a 502 Bad Gateway, nginx logs only say:

*3436865 upstream sent too big header while reading response header from upstream

I'm not able to see anything from the response in the browser.

from blazer.

stevenbarragan avatar stevenbarragan commented on September 27, 2024

Maybe the more feasible solution is using the import-map approach since I can tell there is no need of compilation of the blazer assets since they all are vanilla css and js.

from blazer.

ankane avatar ankane commented on September 27, 2024

Ah, didn't understand the issue earlier. It looks like Rails expects proxies to be able to handle up to 8,000 bytes. The value is currently hardcoded, but it'd be good to submit a PR to Action View to make it configurable for those who need this (since it can affect more than just Blazer). Another option for users is to disable the Link header:

config.action_view.preload_links_header = false

from blazer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.