I'm 3 months new into dart and I've been fairly lucky not to have encountered any issues that couldn't be fixed from answers found on the net, but this one has stumped me.
I downloaded this sample app (https://github.com/vsavkin/angulardart-sample-app) installed it into dart-editor (on my mac mini) using Open Existing Folder and then running get Pub Get (or even Pub Update) on the pubspec.yaml file.
I was getting dartium loading with a running app until I upgraded the SDK from 1.4.2 to 1.5.8 and the pubspec.yaml file from
environment:
sdk: '>=1.4.2 <2.0.0' to
environment:
sdk: '>=1.5.8 <2.0.0'
where everything just broke and i am now getting these types of errors in dartium which I'd like to know how to fix (reverting hasn't helped, 404's are still present - is there some old cache that's being read that I can't find?):
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:63342/aa-app/packages/shadow_dom/shadow_dom.min.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:63342/aa-app/web/packages/angular/routing/static_keys.dart
An error occurred loading file: package:angular/routing/static_keys.dart package:angular/routing/static_keys.dart:1
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:63342/aa-app/web/packages/angular/cache/module.dart
An error occurred loading file: package:angular/cache/module.dart package:angular/cache/module.dart:1
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:63342/aa-app/web/packages/angular/core_dom/directive_injector.dart
An error occurred loading file: package:angular/core_dom/directive_injector.dart package:angular/core_dom/directive_injector.dart:1
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:63342/aa-app/web/packages/angular/cache/js_cache_register.dart
An error occurred loading file: package:angular/cache/js_cache_register.dart package:angular/cache/js_cache_register.dart:1
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:63342/aa-app/web/packages/angular/directive/static_keys.dart
An error occurred loading file: package:angular/directive/static_keys.dart package:angular/directive/static_keys.dart:1
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:63342/aa-app/web/packages/angular/core/static_keys.dart
An error occurred loading file: package:angular/core/static_keys.dart package:angular/core/static_keys.dart:1
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:63342/aa-app/web/packages/di/src/reflector.dart
An error occurred loading file: package:di/src/reflector.dart package:di/src/reflector.dart:1
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:63342/aa-app/web/packages/angular/change_detection/ast_parser.dart
An error occurred loading file: package:angular/change_detection/ast_parser.dart package:angular/change_detection/ast_parser.dart:1
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:63342/aa-app/web/packages/angular/core_dom/compiler_config.dart
An error occurred loading file: package:angular/core_dom/compiler_config.dart package:angular/core_dom/compiler_config.dart:1
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:63342/aa-app/web/packages/di/check_bind_args.dart
An error occurred loading file: package:di/check_bind_args.dart package:di/check_bind_args.dart:1
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:63342/aa-app/web/packages/di/src/reflector_dynamic.dart
An error occurred loading file: package:di/src/reflector_dynamic.dart package:di/src/reflector_dynamic.dart:1
Have tried starting from scratch
Have tried different versions of the angular package ie version 11.0, 12.0, 13.0
Have tried different versions of SDK from 1.4.2 to 1.5.3 to 1.5.8 still the same output
What on earth have i done to ruin something that was working so slickly?
The error "Module.DEFAULT_REFLECTOR not initialized" is thrown because the di transformer is not executed.
You need to add the anfular transformer to your pubspec.yaml (which includes the di transformer)
Related
While running jython py script with adminApp.install to install on Docker WAS, I'm getting the Error:
WASX7017E: Exception received while running file
"deployWebSphere_with_install_standAlone.py"; exception information:
com.ibm.websphere.management.filetransfer.client.TransferFailedException:
401 Unauthorized (for:
C:\Users\devopsjava\AppData\Local\Temp\app5674632847255103189.ear).
I tried give full control on this path,
I tried set custom property:com.ibm.websphere.management.filetransfer.serverBasicAuth=true
(https://www-01.ibm.com/support/docview.wss?uid=swg1PK71800)
My code:
options = ['-node ',node,'-cell ',cell,"-server ",server]
print AdminApp.install(packageFile, options)
I always get :
WASX7017E: Exception received while running file
"deployWebSphere_with_install_standAlone.py"; exception information:
com.ibm.websphere.management.filetransfer.client.TransferFailedException:
401 Unauthorized (for:
C:\Users\devopsjava\AppData\Local\Temp\app5674632847255103189.ear).
Maybe, I need to set some more property, or there is problem with security between docker domain and the outside world ?
My app is working fine on a local server. After deploying it on production (AWS EC2), I see this "classic" Rails error page:
I thought that the errors are logged to the file current/log/production.log, but when I looked in it, there's no error captured. I can only see there the following:
I, [2019-06-09T12:12:04.353438 #12855] INFO -- : Started GET "/constact-us" for 185.44.76.84 at 2019-06-09 12:12:04 +0000
I, [2019-06-09T12:12:04.355034 #12855] INFO -- : Processing by MyAppSite::SiteController#contact_us as HTML
There's logged accessing the URL, but not the error message. Where do I find it? I added some pure HTML/image to that template, so I think the error must be related to some issue with assets (and precompilation).
However, where do I find the full error message?
I am looking to the config/environments/production.rb file and regarding logs, there's "only" this line:
config.log_level = :info
Any advise how to figure out the error message?
EDIT: I just realized that I also have integrated Rollbar to the app and it hasn't caught the error either.
EDIT 2: error from the nginx log:
2019/06/09 13:47:14 [error] 987#0: *7824941 upstream prematurely closed connection while reading response header from upstream, client: IP, server: www.my_website.com, request: "GET /contact-us HTTP/1.1", upstream: "http://unix:/tmp/unicorn.myapp_production.sock:/contact-us", host: "www.my_website.com
Thank you
When I run rake assets:precompile RAILS_ENV=production, the assets used from gems is not being included, my website shows a lot of 404 not found for these assets.
pnotify.core-4a29894be02cb147dd67c1f609148e95.css:1 Failed to load resource: the server responded with a status of 404 (Not Found)
pnotify.buttons-19d9aeb87c03cfef956313439afad682.css:1 Failed to load resource: the server responded with a status of 404 (Not Found)
pnotify.history-d339b3266d96cddfa55c4f0478f9d0ea.css:1 Failed to load resource: the server responded with a status of 404 (Not Found)
The Rails.application.config.assets.paths on production shows:
=> ["/vagrant/local/app/assets/fonts",
"/vagrant/local/app/assets/images",
"/vagrant/local/app/assets/javascripts",
"/vagrant/local/app/assets/stylesheets",
"/vagrant/local/vendor/assets/javascripts",
"/vagrant/local/vendor/assets/stylesheets",
"/home/vagrant/.rvm/gems/ruby-1.9.3-p385/gems/material_icons-2.2.1/app/assets/fonts",
"/home/vagrant/.rvm/gems/ruby-1.9.3-p385/gems/material_icons-2.2.1/app/assets/stylesheets",
"/home/vagrant/.rvm/gems/ruby-1.9.3-p385/gems/chosen-rails-1.5.2/vendor/assets/images",
"/home/vagrant/.rvm/gems/ruby-1.9.3-p385/gems/chosen-rails-1.5.2/vendor/assets/javascripts",
"/home/vagrant/.rvm/gems/ruby-1.9.3-p385/gems/chosen-rails-1.5.2/vendor/assets/stylesheets",
"/home/vagrant/.rvm/gems/ruby-1.9.3-p385/gems/cocoon-1.2.6/app/assets/javascripts",
"/home/vagrant/.rvm/gems/ruby-1.9.3-p385/gems/jquery-minicolors-rails-2.1.4.0/vendor/assets/images",
"/home/vagrant/.rvm/gems/ruby-1.9.3-p385/gems/jquery-minicolors-rails-2.1.4.0/vendor/assets/javascripts",
"/home/vagrant/.rvm/gems/ruby-1.9.3-p385/gems/jquery-minicolors-rails-2.1.4.0/vendor/assets/stylesheets",
"/home/vagrant/.rvm/gems/ruby-1.9.3-p385/gems/pnotify-rails-2.0.1.1/vendor/assets/javascripts",
"/home/vagrant/.rvm/gems/ruby-1.9.3-p385/gems/pnotify-rails-2.0.1.1/vendor/assets/stylesheets",
"/home/vagrant/.rvm/gems/ruby-1.9.3-p385/gems/tinymce-rails-4.1.0/app/assets/javascripts",
"/home/vagrant/.rvm/gems/ruby-1.9.3-p385/gems/tinymce-rails-4.1.0/app/assets/source",
"/home/vagrant/.rvm/gems/ruby-1.9.3-p385/gems/tinymce-rails-4.1.0/vendor/assets/javascripts",
"/home/vagrant/.rvm/gems/ruby-1.9.3-p385/gems/jquery-ui-rails-4.1.2/app/assets/images",
"/home/vagrant/.rvm/gems/ruby-1.9.3-p385/gems/jquery-ui-rails-4.1.2/app/assets/javascripts",
"/home/vagrant/.rvm/gems/ruby-1.9.3-p385/gems/jquery-ui-rails-4.1.2/app/assets/stylesheets",
"/home/vagrant/.rvm/gems/ruby-1.9.3-p385/gems/activeadmin-0.6.0/app/assets/images",
"/home/vagrant/.rvm/gems/ruby-1.9.3-p385/gems/activeadmin-0.6.0/app/assets/javascripts",
"/home/vagrant/.rvm/gems/ruby-1.9.3-p385/gems/activeadmin-0.6.0/app/assets/stylesheets",
"/home/vagrant/.rvm/gems/ruby-1.9.3-p385/gems/formtastic-2.2.1/app/assets/stylesheets",
"/home/vagrant/.rvm/gems/ruby-1.9.3-p385/gems/bourbon-4.0.2/app/assets/stylesheets",
"/home/vagrant/.rvm/gems/ruby-1.9.3-p385/gems/jquery-rails-3.1.1/vendor/assets/javascripts",
"/home/vagrant/.rvm/gems/ruby-1.9.3-p385/gems/font-awesome-sass-5.3.1/assets/stylesheets",
"/home/vagrant/.rvm/gems/ruby-1.9.3-p385/gems/font-awesome-sass-5.3.1/assets/fonts"]
Any help is going to be welcome!
The problem was the config.assets.debug options, it was true on production server, and theres is no files in CDN.
Simple like that.
Orbeon 2017.2.2. After loading this version I get the following errors from all my xhtml pages:
[Error] Failed to load resource: the server responded with a status of 404 () (Textarea.min.js.map, line 0)
[Error] Failed to load resource: the server responded with a status of 404 () (orbeon-form-runner-opt.js.map, line 0)
Should I be worried?
The .map files are only loaded when you have your web browser's dev tools open, as they are used for debugging JavaScript. The browser will not attempt to load them otherwise. So no, you should not be worried.
I get a 500 error when I try to run the site's backend in IE.
Apache error log.
Symfony error - PHP Fatal error: Class 'sfPropelRouteCollection' not found in
\\cache\\backend\\prod\\config\\config_routing.yml.php on line 5
I tried investigating config_routing.yml.php and it appears that it's calling a new sfPropelRouteCollection class, and cannot find it.
I found the file containing it in:
\lib\vendors\symfony\lib\plugins\sfPropelPlugin\lib\routing\sfPropelRouteCollection.class.php
I cleared the cache several times, that didn't help.
The frontend of the site is running normally