JS library load error in shinyapp digital ocean - digital-ocean

I have deployed my shinyapp over digital ocean. I use the rhandsontable among other libraries. Since yesterday, I am seeing the following error on my browser console:
Wed Jun 15 2016 21:11:08 GMT+0200 (Romance Daylight Time): Connection opened. http://example.com/Main/TerminalNG2/
http://example.com/Main/TerminalNG2/handsontable-0.24.3/handsontable.full.min.css Failed to load resource: the server responded with a status of 404 (Not Found)
http://example.com/Main/TerminalNG2/rhandsontable-0.3.1/rhandsontable.css Failed to load resource: the server responded with a status of 404 (Not Found)
Please help me resolve the issue
Regards,
SD

Related

ngrok doesn't lift my local django web server

I have problems with negrok, it does not raise my local django web server, a few days ago everything worked correctly but a normal day, without having touched anything, it stopped working.
Run the following:
python manage.py runserver
Everything works normally and correctly.
Now I execute the following, in order to raise the local django server:
./ngrok http 8000
ngrok runs correctly without any problem but when accessing the ngrok link, the page is loading and everything is blank and does not work ....
This appears in ngrok:
ngrok by #inconshreveable (Ctrl+C to quit)
Session Status online
Account Julio (Plan: Free)
Version 2.3.34
Region United States (us)
Web Interface http://127.0.0.1:4040
Forwarding http://33822c5a.ngrok.io -> http://localhost:8000
Forwarding https://33822c5a.ngrok.io -> http://localhost:8000
Connections ttl opn rt1 rt5 p50 p90
2 0 0.03 0.01 0.20 0.21
HTTP Requests
-------------
GET / 400 Bad Request
GET / 400 Bad Request
And this appears in django:
Watching for file changes with StatReloader
Performing system checks...
System check identified no issues (0 silenced).
September 25, 2019 - 17:23:19
Django version 2.2.2, using settings 'ibme_proyect.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
Invalid HTTP_HOST header: '33822c5a.ngrok.io'. You may need to add '33822c5a.ngrok.io' to ALLOWED_HOSTS.
Bad Request: /
[25/Sep/2019 17:25:30] "GET / HTTP/1.1" 400 68119
Invalid HTTP_HOST header: '33822c5a.ngrok.io'. You may need to add '33822c5a.ngrok.io' to ALLOWED_HOSTS.
Bad Request: /
[25/Sep/2019 17:25:38] "GET / HTTP/1.1" 400 68254
I add the ngrok host (33822c5a.ngrok.io) in ALLOWED_HOSTS and stop giving django error, and access the ngrok link and I know that it loads again, it doesn't load the HTML, nothing, everything blank ...
Any solution? :(
try
ALLOWED_HOSTS = ["*"]
this will allow tunneling every ngrok run :)

Google Maps working in browser running windows server, but not on Ubuntu server

Ionic 3 - Google Maps working in browser running windows server , but not on ubuntu server.
Using :
ionic cordova build browser
I got browser build in ./platforms/browser/www
I moved this to /var/www/ which is document root for my apache web server running on aws ec2 ubuntu instance. Here, on this server I am not able to see google maps as shown below in Image 1
But it is working fine when I run this on windows server under xampp as shown below in Image 2
I have ran 'ionic cordova plugin add cordova-plugin-statusbar'
Still Console error shows:
Failed to load resource: the server responded with a status of 404 (Not Found)
cordova.js:1023 adding proxy for Badge
cordova.js:1023 adding proxy for Device
cordova.js:1023 adding proxy for SplashScreen
cordova.js:1023 adding proxy for StatusBar
StatusBarProxy.js:23 StatusBar is not supported
All Console errors :
HelveticaNeueLTStd-Roman.woff2:1 Failed to load resource: the server responded with a status of 404 (Not Found)
HelveticaNeueLTStd-Roman.woff:1 Failed to load resource: the server responded with a status of 404 (Not Found)
cordova.js:1023 adding proxy for Badge
cordova.js:1023 adding proxy for Device
cordova.js:1023 adding proxy for SplashScreen
cordova.js:1023 adding proxy for StatusBar
StatusBarProxy.js:23 StatusBar is not supported
HelveticaNeueLTStd-Roman.ttf:1 Failed to load resource: the server responded with a status of 404 (Not Found)
/config.xml:1 Failed to load resource: the server responded with a status of 404 (Not Found)
cordova.js:865 [Browser][cordova.js][xhrStatusChangeHandler] Could not XHR config.xml: Not Found
fail # cordova.js:865
SplashScreenProxy.js:163 [Browser][cordova.js][xhrStatusChangeHandler] Could not XHR config.xml: Not Found
(anonymous) # SplashScreenProxy.js:163
core.js:3688 Angular is running in the development mode. Call enableProdMode() to enable the production mode.
home.ts:31 Observable
home.ts:32 Observable
bootstrap.js:10 Ionic Native: deviceready event fired after 1112 ms
BX-PPTG-BJP_Calzone_WoodBoard.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
PR_Sausage_Pepperoni_Woodboard.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
BJP_FL_Cheesing.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
Full-House-044-copy.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
Good-Deal-002-copy.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
Chicken-Med-010-copy.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
Santa-Fe-052.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
Natural-049-copy.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
BJP_FL_Jackpot.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
BJP_FL_BBQ_Square-1.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
BJP_Greek-Salad-CO-copy.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
Salad-Spinach_Cherry.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
Antipasto-Salad-Bowl.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
BJP_Southwest_Salad-Dressing.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
BJP_PR_Chicken_Caesar_Salad.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
Garden-Salad.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
BJP_FL_Mediterranean_Salad.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
BJPCheeseBread.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
BonelessWings_Hot.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
BJP_FL_Wings.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
AllBrands_CinnamonSticks.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
BlueBellIceCream.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
soda.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
StatusBarProxy.js:23 StatusBar is not supported
logo.png:1 Failed to load resource: the server responded with a status of 404 (Not Found)
polyfills.js:2 [Deprecation] getCurrentPosition() and watchPosition() no longer work on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS.
n # polyfills.js:2
geolocation-map.ts:663 PositionError
Please let me know what is missing as I am very new to Ionic.

Django Debug Toolbar Causes Loss of Static Files

To be clear, the debug toolbar DOES appear. My problem is that when I enable the Debug Toolbar, all my javascript and css files fail to load.
My page loses all formatting but does still load the content. I am using chrome, which under the console prints something like this:
Failed to load resource: the server responded with a status of 404 (NOT FOUND)
http://127.0.0.1:8000/static/stylesheets/loggedin.css?h=201e99 Failed to load resource: the server responded with a status of 404 (NOT FOUND)
http://127.0.0.1:8000/static/stylesheets/estimates.tabs.css?h=64c8f9 Failed to load resource: the server responded with a status of 404 (NOT FOUND)
http://127.0.0.1:8000/static/js/jquery.console-log.js Failed to load resource: the server responded with a status of 404 (NOT FOUND)
http://127.0.0.1:8000/static/theme/jquery-ui.custom.css Failed to load resource: the server responded with a status of 404 (NOT FOUND)
http://127.0.0.1:8000/static/js/jquery-ui-timepicker-addon.js?h=7e5e4a Failed to load resource: the server responded with a status of 404 (NOT FOUND)
http://127.0.0.1:8000/static/js/jquery.if.min.js?h=e69918 Failed to load resource: the server responded with a status of 404 (NOT FOUND)
http://127.0.0.1:8000/static/js/base.js?h=4b783f Failed to load resource: the server responded with a status of 404 (NOT FOUND)
http://127.0.0.1:8000/static/stylesheets/estimates.summary.show.css?h=0dd5d5 Failed to load resource: the server responded with a status of 404 (NOT FOUND)
http://127.0.0.1:8000/static/js/jquery.floatThead.min.js?h=7f4ca5 Failed to load resource: the server responded with a status of 404 (NOT FOUND)
http://127.0.0.1:8000/static/stylesheets/reset.css?h=fbd5ac Failed to load resource: the server responded with a status of 404 (NOT FOUND)
http://127.0.0.1:8000/static/js/estimates.section.sortable.js?h=2ea052 Failed to load resource: the server responded with a status of 404 (NOT FOUND)
http://127.0.0.1:8000/static/stylesheets/loggedin.css?h=201e99 Failed to load resource: the server responded with a status of 404 (NOT FOUND)
http://127.0.0.1:8000/static/stylesheets/estimates.tabs.css?h=64c8f9 Failed to load resource: the server responded with a status of 404 (NOT FOUND)
http://127.0.0.1:8000/static/stylesheets/estimates.summary.show.css?h=0dd5d5 Failed to load resource: the server responded with a status of 404 (NOT FOUND)
http://127.0.0.1:8000/static/stylesheets/reset.css?h=fbd5ac Failed to load resource: the server responded with a status of 404 (NOT FOUND)
http://127.0.0.1:8000/static/stylesheets/base.css?h=fcefb2 Failed to load resource: the server responded with a status of 404 (NOT FOUND)
http://127.0.0.1:8000/static/theme/jquery-ui.custom.css Failed to load resource: the server responded with a status of 404 (NOT FOUND)
I am using debug_toolbar 1.3.2, django1.5.0 and python 2.7.6
My project structure has
project_dir
project
settings
settings.py
static
images
js
scss
stylesheets
In my settings file:
DEBUG = True
DEBUG_TOOLBAR = True
#....middleware
#....other Installed apps
cd_up = lambda x: os.path.split(x)[0]
SETTINGS_DIR = dirname(os.path.abspath(__file__))
APP_DIR = cd_up(SETTINGS_DIR)
PROJ_DIR = cd_up(APP_DIR)
MEDIA_ROOT = '/tmp'
MEDIA_URL = ''
STATIC_URL = '/static/'
STATIC_ROOT = '{}/static/'.format(APP_DIR)
if DEBUG_TOOLBAR:
INSTALLED_APPS += ('django.contrib.staticfiles','debug_toolbar',)
MIDDLEWARE_CLASSES += debug_toolbar.middleware.DebugToolbarMiddleware',)
INTERNAL_IPS = ('127.0.0.1',)
DEBUG_TOOLBAR_PANELS = (
#'debug_toolbar.panels.version.VersionDebugPanel',
#'debug_toolbar.panels.timer.TimerDebugPanel',
#'debug_toolbar.panels.settings_vars.SettingsVarsDebugPanel',
#'debug_toolbar.panels.headers.HeaderDebugPanel',
#'debug_toolbar.panels.request_vars.RequestVarsDebugPanel',
#'debug_toolbar.panels.template.TemplateDebugPanel',
'debug_toolbar.panels.sql.SQLDebugPanel',
#'debug_toolbar.panels.signals.SignalDebugPanel',
#'debug_toolbar.panels.logger.LoggingPanel',
)
Naturally I cannot send any ajax request and setting DEBUG_TOOLBAR to false resolves all issues.
This is a condensed version, but if any other information is needed I'll update. Sorry, I'm still kind of new to SO. Thanks
UPDATE:
The 404 errors appear when running ./manage.py runserver --insecure
Otherwise the resource fails with a message of net::ERR_NETWORK_CONNECTION_RESET
I am not sure what is happening, but here are a few points to check:
When DEBUG_TOOLBAR is false, is django.contrib.staticfiles in INSTALLED_APPS? If it was added, this line
INSTALLED_APPS += ('django.contrib.staticfiles','debug_toolbar',)
can cause a duplicate app name. It should not cause any problem, but you can try removing the duplicate.
Are you sure DEBUG is set to True? When DEBUG is False, the development server refuse to serve static files (CONNECTION RESET?), and if you add --insecure option, it serves static files. This is like what you described.
Have you overrided the url mapping of "/static/" in urls.py?
Are you starting this server in a virtual machine? If so, you can try starting your server with:
python manage.py runserver 0.0.0.0:8000
and add your virtual machine's IP addresses to INTERNAL_IP.
I think this happens when you are using a virtual environment. The problem is that Django packages are installed there and the project can't access the files. You can fix that by running (based on your python version) python3 manage.py collectstatic in the console. This is how I fixed this problem on my end. Hope it helps your case

yeoman generator-ember doesn't show anything in browser

Following this https://github.com/yeoman/generator-ember tutorial to use EmberJS with Yeomane, after running grunt server the browser is blank.
I expected to see this page but nothing shows up:![enter image description here][1]
UPDATE:
console error:
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9000/styles/style.css
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9000/bower_components/jquery/jquery.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9000/bower_components/handlebars/handlebars.runtime.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9000/bower_components/ember/ember.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9000/bower_components/ember-data-shim/ember-data.js
Uncaught ReferenceError: Ember is not defined compiled-templates.js:1
Uncaught ReferenceError: Ember is not defined combined-scripts.js:3
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9000/bower_components/bootstrap-sass/js/affix.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9000/bower_components/bootstrap-sass/js/alert.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9000/bower_components/bootstrap-sass/js/dropdown.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9000/bower_components/bootstrap-sass/js/tooltip.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9000/bower_components/bootstrap-sass/js/modal.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9000/bower_components/bootstrap-sass/js/transition.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9000/bower_components/bootstrap-sass/js/button.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9000/bower_components/bootstrap-sass/js/popover.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9000/bower_components/bootstrap-sass/js/carousel.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9000/bower_components/bootstrap-sass/js/scrollspy.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9000/bower_components/bootstrap-sass/js/collapse.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9000/bower_components/bootstrap-sass/js/tab.js
Update 2:
works-Mac:myemberapp1 work$ grunt server
Running "server" task
Running "clean:server" (clean) task
Running "replace:app" (replace) task
Replace app/index.html -> .tmp/index.html
Running "concurrent:server" (concurrent) task
Running "emberTemplates:dist" (emberTemplates) task
File ".tmp/scripts/compiled-templates.js" created.
Done, without errors.
Running "compass:server" (compass) task
Done, without errors.
Running "neuter:app" (neuter) task
Running "connect:livereload" (connect) task
Started connect web server on localhost:9000.
Running "open:server" (open) task
Running "watch" task
Waiting...
For the specific error Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9000/styles/style.css, you should also check that you have got the compass server installed. That is:
gem install compass
To check that compass is running correctly, run grunt serve --verbose and check the output for any errors, such as:
in `to_specs': Could not find compass (>= 0) amongst [...] (Gem::LoadError)
After the scaffolding is complete, you must run the commands bower install and npm install to install the required packages (described in the bower.json and package.json files. After this, grunt will be able to serve up the dependencies.
As you build up your project and use introduce new dependencies, you'll add them by editing your bower.json and/or package.json files and rerunning the installs. Downloaded packages are usually not stored in source control.

django-cms cannot edit/add plugins to a page

I've a django project on heroku and amazon s3. I'm using django 1.4.2 and django-cms 2.3.4
My problem is that i can't edit or add any plugins to pages.
Yesterday it works perfect but after I have changed a few things in a textfield it all went wrong...
The problem with the textfield is fixed now but i still can't edit/add any plugins. the only things I know are the following error-messages:
Failed to load resource: the server responded with a status of 403 (Forbidden)
Failed to load resource: the server responded with a status of 403 (Forbidden)
Failed to load resource: the server responded with a status of 403 (Forbidden)
Failed to load resource: the server responded with a status of 403 (Forbidden)
Failed to load resource: the server responded with a status of 403 (Forbidden)
Failed to load resource: the server responded with a status of 403 (Forbidden)
Failed to load resource: the server responded with a status of 403 (Forbidden)
Failed to load resource: the server responded with a status of 403 (Forbidden)
Failed to load resource: the server responded with a status of 403 (Forbidden)
Failed to load resource: the server responded with a status of 403 (Forbidden)
Failed to load resource: the server responded with a status of 403 (Forbidden)
Uncaught ReferenceError: cms_plugin_editor_jQuery is not defined xy.herokuapp.com:396
Uncaught TypeError: Cannot call method 'get' of undefined change_form.js:48
can anyone help me please?
thank you
I had the same problem. Spend 2 hours trying to solve it the sane way. Haven`t found the answer.
I was at app rev 33. I have reverted to 32 version at heroku website. It worked there. Reverted back to 33 and it also worked.
Maybe it has something to do with heroku.
Check to see that you are not running into an issue with CSRF middleware not being loaded. The CMS expects it in the admin and will generate this error when it is not available.