GithubHelp home page GithubHelp logo

Comments (5)

AzureMarker avatar AzureMarker commented on June 19, 2024

The debug implementation doesn't use anything special, just read_to_end:
https://github.com/pyros2097/rust-embed/blob/0939ff03a20a378978d1a62852220bfd188d28fb/impl/src/lib.rs#L32-L37

Perhaps Parcel is writing the file in chunks, and rust-embed is reading in between chunks?

from rust-embed.

peacememories avatar peacememories commented on June 19, 2024

That might be the case. I'm probably going to ask there too. Any idea what I could do on this end? 😅

from rust-embed.

pyrossh avatar pyrossh commented on June 19, 2024

@peacememories does it work with other static file servers like node-static or parcel's own static file server. If it does then it could be an issue with rust-embed.
As for now we don't know the reason why the request is aborted because the errors are swallowed up here,
https://github.com/pyros2097/rust-embed/blob/0939ff03a20a378978d1a62852220bfd188d28fb/impl/src/lib.rs#L32-L37

Maybe adding a log or print here would help out to find the root cause of the issue.

from rust-embed.

peacememories avatar peacememories commented on June 19, 2024

Sorry for the late reply, holidays tend to screw with my schedule^^
The same frontend has so far worked with a similar go-based approach (that is actually the main project, I'm trying to proof-of-concept a Rust version), as well as with parcel's own server. This has led me to believe that something in the interaction between parcel and rust-embed causes the issue. I've not had the time to add the log messages you mentioned, but I'll try to get to that today :)

from rust-embed.

peacememories avatar peacememories commented on June 19, 2024

Correction, it seems our go-based webserver has the same problem.

from rust-embed.

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.