Code Monkey home page Code Monkey logo

Comments (8)

leostera avatar leostera commented on August 29, 2024

Ok, apparently one needs to actually include a CDN call from an asset for the plugin not to crash on production mode. Building upon that I'm getting another error after adding this line:

!= CDN("/stylesheets/vendor/bootstrap.css")

to my main base jade layout. Now I'm getting an "unsuccessful upload" error.

Working on this right now.

from express-cdn.

leostera avatar leostera commented on August 29, 2024

Ok, this is good to be closed.

from express-cdn.

thebyrd avatar thebyrd commented on August 29, 2024

I'm having the same problem. Error: CDN: empty results isn't a very helpful error. @niftylettuce if you give me some details on what causes that error then I can probably make a PR.

from express-cdn.

mateusz- avatar mateusz- commented on August 29, 2024

I was just getting this issue and started digging into it.

@leostera was basically right. The thing is, my variable definition was "cdn" and not "CDN". express-cdn looks for the latter with a regular expression.

The error makes sense now but perhaps it would be wise not to hardcode "CDN" in there.

from express-cdn.

thebyrd avatar thebyrd commented on August 29, 2024

same thing happened to me.

from express-cdn.

niftylettuce avatar niftylettuce commented on August 29, 2024

@leostera @thebyrd @mateusz- see release 0.1.4 in NPM

from express-cdn.

imrane avatar imrane commented on August 29, 2024

@leostera I am getting the same unsuccessful upload error with all the same configuration options - what was your solution? Here is what I am getting:

│info:  task=express-cdn, message="css/app.css" was not found on S3 or was modified recently
│unsuccessful upload of image "" to S3
│unsuccessful upload of image "" to S3
 ....
│unsuccessful upload of image "ng" to S3
│
│events.js:71
│        throw arguments[1]; // Unhandled 'error' event
│                       ^
│Error: write EPIPE
│    at errnoException (net.js:770:11)
│    at Object.afterWrite (net.js:594:19)

from express-cdn.

niftylettuce avatar niftylettuce commented on August 29, 2024

@imrane @leostera have you resolved this? please report back ASAP need to make sure this works, thanks guys!

from express-cdn.

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.