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

Bug with assets compiler #647

Open
icaliman opened this issue Jan 19, 2015 · 1 comment
Open

Bug with assets compiler #647

icaliman opened this issue Jan 19, 2015 · 1 comment

Comments

@icaliman
Copy link

I am getting this error when I set a dot (.) in the end of the url:

Url: http://example.com/some_url.

Express
500 TypeError: Cannot read property 'destDir' of undefined
 at AssetsCompiler.handleRequest (/var/www/youtube-vasea/node_modules/co-assets-compiler/lib/assets-compiler.js:118:62)
 at Object.assetsCompiler [as handle] (/var/www/youtube-vasea/node_modules/co-assets-compiler/lib/assets-compiler.js:56:12)
 at next (/var/www/youtube-vasea/node_modules/express/node_modules/connect/lib/proto.js:174:15)
 at Object.expressInit [as handle] (/var/www/youtube-vasea/node_modules/express/lib/middleware.js:30:5)
 at next (/var/www/youtube-vasea/node_modules/express/node_modules/connect/lib/proto.js:174:15)
 at Object.query [as handle] (/var/www/youtube-vasea/node_modules/express/node_modules/connect/lib/middleware/query.js:43:5)
 at next (/var/www/youtube-vasea/node_modules/express/node_modules/connect/lib/proto.js:174:15)
 at Object.compound [as handle] (/var/www/youtube-vasea/node_modules/compound/lib/server/compound.js:27:13)
 at next (/var/www/youtube-vasea/node_modules/express/node_modules/connect/lib/proto.js:174:15)
 at Function.app.handle (/var/www/youtube-vasea/node_modules/express/node_modules/connect/lib/proto.js:182:3)
 at Server.app (/var/www/youtube-vasea/node_modules/express/node_modules/connect/lib/connect.js:67:37)
 at Server.EventEmitter.emit (events.js:98:17)
 at HTTPParser.parser.onIncoming (http.js:2108:12)
 at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:121:23)
 at Socket.socket.ondata (http.js:1966:22)
 at TCP.onread (net.js:525:27)
@icaliman
Copy link
Author

I have a route like this:

map.get(new RegExp('^.*$'), 'application#action');

The action from controller is not called for URLs ending with dots.

@1602 can you look at this? I really need this to work!

@icaliman icaliman changed the title Bug with routes Bug with assets compiler Jan 21, 2015
@1602 1602 added this to the Upgrade versions milestone Mar 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants