Svelte : get ( 404 ─ 0.27ms ─ /flutter_service_worker.js?v=3796772977) after npm run dev and open site in Microsoft edge - microsoft-edge

I'm very new in svelte.
when I download new template using the following:
npx degit sveltejs/template svelte-app
cd svelte-app
npm install
npm run dev
the app is running as expected and I can see the site but I'm getting the following error:
- Local: http://localhost:8080
- Network: Add `--host` to expose
────────────────── LOGS ──────────────────
[**:47:57] 200 ─ 8.27ms ─ /
[**:47:57] 200 ─ 2.59ms ─ /global.css
[**:47:57] 200 ─ 6.69ms ─ /build/bundle.css
[**:47:58] 200 ─ 1.69ms ─ /build/bundle.js
[**:47:59] 404 ─ 0.24ms ─ /flutter_service_worker.js?v=3796772977
[**:48:29] 404 ─ 0.41ms ─ /flutter_service_worker.js?v=3796772977
is this because I used flutter?
note that will only happen in microsoft edge. I check it with chrome and opera, I will not get 404 errror

Solved by deleting cookies:
settings -> Cookies and data stored -> All cookies and site data
then search for localhost and delete the cookies

Related

"gem install rails" only installs documentation and not rails

I am unable to create a rails app as the rails command does not execute.
When I go to run rails -v I get
Rails is not currently installed on this system. To get the latest version, simply type:
$ sudo gem install rails
You can then rerun your "rails" command.
When I open up my rails gem install at /usr/local/lib/ruby/gems/3.0.0/gems/rails-6.1.3.2 I see the only file there is README.md
I assume other files should be installed as well?
If I run sudo gem install rails -V in my command line, it says
HEAD https://index.rubygems.org/
200 OK
GET https://index.rubygems.org/info/rails
200 OK
GET https://index.rubygems.org/info/actioncable
200 OK
GET https://index.rubygems.org/info/actionmailbox
200 OK
GET https://index.rubygems.org/info/actionmailer
200 OK
GET https://index.rubygems.org/info/actionpack
200 OK
GET https://index.rubygems.org/info/actiontext
200 OK
GET https://index.rubygems.org/info/actionview
200 OK
GET https://index.rubygems.org/info/actionwebservice
200 OK
GET https://index.rubygems.org/info/activejob
200 OK
GET https://index.rubygems.org/info/activemodel
200 OK
GET https://index.rubygems.org/info/activerecord
200 OK
GET https://index.rubygems.org/info/activeresource
200 OK
GET https://index.rubygems.org/info/activestorage
200 OK
GET https://index.rubygems.org/info/activesupport
200 OK
GET https://index.rubygems.org/info/bundler
200 OK
GET https://index.rubygems.org/info/railties
200 OK
GET https://index.rubygems.org/info/rake
200 OK
GET https://index.rubygems.org/info/sprockets-rails
200 OK
GET https://index.rubygems.org/info/rack
200 OK
GET https://index.rubygems.org/info/rack-test
200 OK
GET https://index.rubygems.org/info/rails-dom-testing
200 OK
GET https://index.rubygems.org/info/rails-html-sanitizer
200 OK
GET https://index.rubygems.org/info/mail
200 OK
GET https://index.rubygems.org/info/concurrent-ruby
200 OK
GET https://index.rubygems.org/info/i18n
200 OK
GET https://index.rubygems.org/info/minitest
200 OK
GET https://index.rubygems.org/info/tzinfo
200 OK
GET https://index.rubygems.org/info/zeitwerk
200 OK
GET https://index.rubygems.org/info/method_source
200 OK
GET https://index.rubygems.org/info/thor
200 OK
GET https://index.rubygems.org/info/builder
200 OK
GET https://index.rubygems.org/info/erubi
200 OK
GET https://index.rubygems.org/info/globalid
200 OK
GET https://index.rubygems.org/info/mime-types
200 OK
GET https://index.rubygems.org/info/mini_mime
200 OK
GET https://index.rubygems.org/info/treetop
200 OK
GET https://index.rubygems.org/info/nio4r
200 OK
GET https://index.rubygems.org/info/websocket-driver
200 OK
GET https://index.rubygems.org/info/websocket-extensions
200 OK
GET https://index.rubygems.org/info/marcel
200 OK
GET https://index.rubygems.org/info/nokogiri
200 OK
GET https://index.rubygems.org/info/mini_portile2
200 OK
GET https://index.rubygems.org/info/racc
200 OK
GET https://index.rubygems.org/info/json
200 OK
GET https://index.rubygems.org/info/loofah
200 OK
GET https://index.rubygems.org/info/mini_portile
200 OK
GET https://index.rubygems.org/info/pkg-config
200 OK
GET https://index.rubygems.org/info/thread_safe
200 OK
GET https://index.rubygems.org/info/crass
200 OK
GET https://index.rubygems.org/info/sprockets
200 OK
/usr/local/lib/ruby/gems/3.0.0/gems/rails-6.1.3.2/README.md
Successfully installed rails-6.1.3.2
Parsing documentation for rails-6.1.3.2
Parsing sources...
100% [ 1/ 1] README.md
Done installing documentation for rails after 0 seconds
1 gem installed
The only file getting installed is the readme.
Should I be running a different install command?
I also see railties installed, which contains /railties-6.1.3.2/exe/rails, and this seems to be the file that should be called when running rails. Perhaps I need to add this to the system path? I am using Mac OS.
sound like you have installed Ruby on Rails with sudo permissions.
You need to use rbenv or rvm to ensure correct permissions. so you don't have to use sudo
you should be able to run
gem install
on its own.
I'd try a fresh start installing your development environment using this guide.
Maybe start a new admin user account on mac just for your rails development.
https://gorails.com/setup/osx/11.0-big-sur
Otherwise you'll have to hunt down why its not got the correct folder permissions.
fixed by adding rails to system path
Firstly make sure from which source you have installed your ruby and ruby gems like rvm, rbenv etc. and make sure you have access to these folders that are created while installing the ruby and gems. If not please add the path to ~/.bashrc file then you can get access to gems installed in the path.
Run following command to paste your path to source files
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile

Odoo project agile jira importer addon installation error

I'm trying to add this app to my Odoo 11 addons. I'm running it in a docker container.
It has been successfully added and updated into my app list. But when getting to install it, I get this log in the Odoo GUI (Unable to install module "project_agile_jira" because an external dependency is not met: No module named Jira)
And this log in the terminal:
2020-04-16 11:10:41,747 1 INFO Nilecode odoo.addons.base.module.module: ALLOW access to module.button_immediate_install on ['project_agile_jira'] to user m.mahdi#nilecode.com #1 via 172.17.0.1
2020-04-16 11:10:41,747 1 INFO Nilecode odoo.addons.base.module.module: User #1 triggered module installation
2020-04-16 11:10:41,748 1 INFO Nilecode odoo.addons.base.module.module: ALLOW access to module.button_install on ['project_agile_jira'] to user m.mahdi#nilecode.com #1 via 172.17.0.1
2020-04-16 11:10:42,103 1 INFO Nilecode werkzeug: 172.17.0.1 - - [16/Apr/2020 11:10:42] "POST /web/dataset/call_button HTTP/1.1" 200 -
202
Your help would be highly appreciated.

Django graphene GraphiQL page not loading when running from Uvicorn

Not sure what I set wrong but I am not getting the graphiql interface when running in uvicorn using uvicorn mysite.asgi:application:
[32mINFO[0m: Started server process [[36m14872[0m]
[32mINFO[0m: Waiting for application startup.
[32mINFO[0m: ASGI 'lifespan' protocol appears unsupported.
[32mINFO[0m: Application startup complete.
[32mINFO[0m: Uvicorn running on [1mhttp://127.0.0.1:8000[0m (Press CTRL+C to quit)
[32mINFO[0m: 127.0.0.1:52463 - "GET /graphql/ HTTP/1.1" 200
Not Found: /static/graphene_django/graphiql.js
[33mWARNING[0m: Not Found: /static/graphene_django/graphiql.js
[32mINFO[0m: 127.0.0.1:52463 - "GET /static/graphene_django/graphiql.js HTTP/1.1" 404
Not Found: /static/graphene_django/graphiql.js
[33mWARNING[0m: Not Found: /static/graphene_django/graphiql.js
[32mINFO[0m: 127.0.0.1:52463 - "GET /static/graphene_django/graphiql.js HTTP/1.1" 404
but it loads fine when I do python manage.py runserver
Here is what I have installed:
Python 3.8.2
Django==3.0.5
uvicorn==0.11.3
graphene==2.1.8
graphene-django==2.9.0
graphql-core==2.3.1
In settings.py I have:
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
STATICFILES_DIRS = [os.path.join(BASE_DIR, "static"),]
# Graphene
GRAPHENE = {
'SCHEMA': 'mysite.schema.schema'
}
Just set DEBUG = True in your settings.py file.
Django is not serving static files by itself outside of the development server, you have to do it by yourself in some way. You can either set up a reverse proxy like nginx and instruct it to serve all the static files from your staticfiles directory or, only for development, you can instruct django to serve them, by adding to your urls.py:
from django.conf import settings
from django.views.static import serve
# Put the line provided below into your `urlpatterns` list.
url(r'^(?P<path>.*)$', serve, {'document_root': settings.STATIC_ROOT})
Make sure to use the later method only for the development, as it may have serious performance impact.
For both of the methods, you have to collect your static files as well using python manage.py collectstatic, as django, outside of the development server, needs all the static files to be collected in one place, your STATIC_ROOT.

Using ant task in mobilefirst error in wladm cmd

I followed this tutorial:
http://www.ibm.com/support/knowledgecenter/SSHS8R_7.1.0/com.ibm.worklight.appadmin.doc/admin/r_invoking_the_wladm_program.html
I'm trying to enter a command in cmd and tried this:
wladm --url=http://IP:9080 --user=demo --passwordfile=PATH\wladm.config --secure=false show info
I'm getting this error:
Error accessing http://IP:9080/userAndConfigInfo?locale=en_US:
HTTP/1.1 404 Not Found
Now when I enter another command:
wladm --url=http://IP:9080 --user=demo --passwordfile=PATH\wladm.config --secure=false list adapters RuntimeName
I'm getting this error:
Error accessing http://sv591527.ph.sunlife:9080/management-apis/1.0/runtimes/Sun
lifeTestApp/adapters?pageSize=1000000000&locale=en_US: HTTP/1.1 404 Not Found
Anyone have an idea what I'm missing?
The URL should contain the context root of the MobileFirst web application for administration services, that is, should be something like http://IP:9080/wladmin or http://IP:9080/worklightadmin. For more details, please consult the wladm usage documentation http://www.ibm.com/support/knowledgecenter/SSHS8R_7.1.0/com.ibm.worklight.appadmin.doc/admin/r_invoking_the_wladm_program.html.

Can't deploy Visual Studio Cordova app to iPhone using remote agent: CordovaModuleLoadError

I am trying to deploy my Cordova app to my iPhone using Visual Studio 2015 RC by Remote Agent > Local Device. I have successfully installed, ran and connect the remote agent to my Visual Studio. According to this link, when I run Local Device, iTunes should pop up on my Windows PC and install the app to my iPhone:
https://msdn.microsoft.com/en-us/library/dn757056.aspx
New build request submitted:
/build/tasks?command=build&vcordova=4.3.0&cfg=debug&options=--device
{ 'accept-language': 'en-US',
host: '192.168.0.9:3000',
connection: 'keep-alive',
'transfer-encoding': 'chunked' }
New build request submitted for cordovaVersion: 4.3.0; buildCommand: build; configuration: debug
Build will be executed under: /Users/JP/remote-builds/builds/3563
Saving build request payload to : /Users/JP/remote-builds/builds/3563
Saved upload to /Users/JP/remote-builds/builds/3563/upload_3563.tgz
Extracting /Users/JP/remote-builds/builds/3563/upload_3563.tgz to /Users/JP/remote-builds/builds/3563/cordovaApp...
POST /build/tasks?command=build&vcordova=4.3.0&cfg=debug&options=--device 202 5123ms - 487b
GET /build/tasks/3563 200 0ms - 487b
Extracted app contents from uploaded build request to /Users/JP/remote-builds/builds/3563/cordovaApp. Requesting build.
Taking 3563 as current build
Building cordova app CordovaApp2 at appDir /Users/JP/remote-builds/builds/3563/cordovaApp
Opened build log file /Users/JP/remote-builds/builds/3563/build.log
Done building 3563 : error CordovaModuleLoadError [ '4.3.0' ]
Done with currentBuild. Checking for next build in queue.
GET /build/tasks/3563 200 4ms - 142.31kb
GET /build/tasks/3563/log 200 1ms
Additionally, from Visual Studio I get the error:
EACCES, open '/Users/JP/.npm/_locks/cordova-46ce3f50013cb5f4.lock' CordovaApp2 C:\Users\J\Documents\Visual Studio 2015\Projects\CordovaApp2\CordovaApp2\MDAVSCLI 1
Remote build error from the build server undefined: {1} CordovaApp2 C:\Users\J\Documents\Visual Studio 2015\Projects\CordovaApp2\CordovaApp2\MDAVSCLI 1
When running remote test:
$ vs-mda-remote test --device
Initializing self test for https
downloading cert for pin 360583
Downloading client cert for selftest from https://Jamess-Mac-mini.local:3000/certs/360583 to /Users/JP/remote-builds/selftest/selftest-client.pfx
pfxPath: /Users/JP/remote-builds/selftest/selftest-client.pfx
serverUrl: https://Jamess-Mac-mini.local:3000
buildUrl: https://Jamess-Mac-mini.local:3000/build/tasks?vcordova=4.3.0&cfg=release&command=build&options=--device
Response statusCode: 202
{ 'x-powered-by': 'Express',
'content-type': 'application/json',
'content-location': 'https://jamess-mac-mini.local:3000/build/tasks/3570',
'content-length': '489',
date: 'Tue, 09 Jun 2015 22:05:58 GMT',
connection: 'close' }
Response: {
"buildNumber": 3570,
"status": "uploaded",
"cordovaVersion": "4.3.0",
"buildCommand": "build",
"configuration": "release",
"options": "--device",
"buildDir": "/Users/JP/remote-builds/builds/3570",
"serverDir": "/Users/JP/remote-builds",
"submissionTime": "2015-06-09T22:05:58.691Z",
"changeList": null,
"tgzFilePath": "/Users/JP/remote-builds/builds/3570/upload_3570.tgz",
"statusTime": "2015-06-09T22:05:58.763Z",
"message": "Uploaded build request payload."
}
buildingUrl: https://Jamess-Mac-mini.local:3000/build/tasks?vcordova=4.3.0&cfg=release&command=build&options=--device
[1] Response: {
"buildNumber": 3570,
"status": "error",
"cordovaVersion": "4.3.0",
"buildCommand": "build",
"configuration": "release",
"options": "--device",
"buildDir": "/Users/JP/remote-builds/builds/3570",
"serverDir": "/Users/JP/remote-builds",
"submissionTime": "2015-06-09T22:05:58.691Z",
"changeList": null,
"tgzFilePath": "/Users/JP/remote-builds/builds/3570/upload_3570.tgz",
"messageId": "CordovaModuleLoadError",
"statusTime": "2015-06-09T22:05:59.752Z",
"appDir": "/Users/JP/remote-builds/builds/3570/cordovaApp",
"appName": "HelloCordova",
"messageArgs": [
"4.3.0"
]
}
You are likely encountering the following Known Issue. Basically there's a file somewhere in your npm cache that was added while running as an administrator (sudo). As a result, vs-mda-remote cannot access it. The commands below resolve that issue (and in fact this is what recent versions of npm do by default).
iOS Build Related Known Issues
After installing the latest version of vs-mda-remote package, you may need to run the following commands before you start up the remote agent. These commands ensure your user has permissions to the contents of the npm package cache in your home directory when using older versions of Node.js and npm. Newer versions of Node.js and npm will do this for you automatically.
sudo npm cache clear
sudo chown -R `whoami` ~/.npm

Resources