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

Fix TypeError on production environment with non existing asset #208

Conversation

bbonislawski
Copy link

When running app with production environment it tries to load asset that doesn't exist in pipeline, it raises TypeError.

I ran into it when I had link to external css but AssetPipelineLoader tried to fetch it first and raised TypeError.

bbonislawski added a commit to spark-solutions/spree that referenced this pull request Nov 27, 2017
if asset pipeline tries to fetch asset from url on production, it raises
TypeError because of problem with sprockets

issue in premailer-rails: fphilipe/premailer-rails#208
@bbonislawski bbonislawski force-pushed the fix-exception-on-production-environment branch from de1c0dc to e4ee616 Compare November 27, 2017 14:42
@bbonislawski bbonislawski force-pushed the fix-exception-on-production-environment branch from e4ee616 to ea6ff29 Compare November 27, 2017 15:30
bbonislawski added a commit to spark-solutions/spree that referenced this pull request Nov 27, 2017
if asset pipeline tries to fetch asset from url on production, it raises
TypeError because of problem with sprockets

issue in premailer-rails: fphilipe/premailer-rails#208
bbonislawski added a commit to spark-solutions/spree that referenced this pull request Nov 27, 2017
if asset pipeline tries to fetch asset from url on production, it raises
TypeError because of problem with sprockets

issue in premailer-rails: fphilipe/premailer-rails#208
bbonislawski added a commit to spark-solutions/spree that referenced this pull request Nov 27, 2017
if asset pipeline tries to fetch asset from url on production, it raises
TypeError because of problem with sprockets

issue in premailer-rails: fphilipe/premailer-rails#208
bbonislawski added a commit to spark-solutions/spree that referenced this pull request Nov 27, 2017
if asset pipeline tries to fetch asset from url on production, it raises
TypeError because of problem with sprockets

issue in premailer-rails: fphilipe/premailer-rails#208
@fphilipe
Copy link
Owner

@bbonislawski thanks for your PR. I think #209, which has been merged, addressed this.

@fphilipe fphilipe closed this Nov 29, 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

Successfully merging this pull request may close these issues.

None yet

2 participants