How can I get rid of chunk 836 failed - abp

core.js:4002
ERROR ChunkLoadError: Loading chunk 836 failed.
(timeout: http://b.b.cloudapp.azure.com/conin/836.5087e9f….js)
at Function.requireEnsure [as e] (bootstrap:126:1)
at webpackAsyncContext (.*\.js$ namespace object:4205:1)
at root.module.ts:45:29
at push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:391:1)
at Object.onInvoke (core.js:26256:1)
at push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:390:1)
at push../node_modules/zone.js/dist/zone.js.Zone.run (zone.js:150:1)
at zone.js:910:1
at push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:423:1)
at Object.onInvokeTask (core.js:26247:1)
defaultErrorLogger
When I open 20 pages, I had got the error sometimes.
Why? How can I get rid of it?

Related

OwlReady Ontology Parsing Error while loading ontology

I am trying to load the ontology http://semrob-ontology.mpi.aass.oru.se/OntoCity.owl using the OwlReady python library
from owlready2 import *
onto = get_ontology("http://semrob-ontology.mpi.aass.oru.se/OntoCity.owl").load()
The traceback thread is as below:
---------------------------------------------------------------------------
HTTPError Traceback (most recent call last)
/usr/local/lib/python3.6/dist-packages/owlready2/namespace.py in load(self, only_local, fileobj, reload, reload_if_newer, **args)
769 if _LOG_LEVEL: print("* Owlready2 * ...loading ontology %s from %s..." % (self.name, f), file = sys.stderr)
--> 770 try: fileobj = urllib.request.urlopen(f)
771 except: raise OwlReadyOntologyParsingError("Cannot download '%s'!" % f)
HTTPError: HTTP Error 308: Permanent Redirect
During handling of the above exception, another exception occurred:
OwlReadyOntologyParsingError Traceback (most recent call last)
/usr/local/lib/python3.6/dist-packages/owlready2/namespace.py in load(self, only_local, fileobj, reload, reload_if_newer, **args)
769 if _LOG_LEVEL: print("* Owlready2 * ...loading ontology %s from %s..." % (self.name, f), file = sys.stderr)
770 try: fileobj = urllib.request.urlopen(f)
--> 771 except: raise OwlReadyOntologyParsingError("Cannot download '%s'!" % f)
772 try: new_base_iri = self.graph.parse(fileobj, default_base = self.base_iri, **args)
773 finally: fileobj.close()
OwlReadyOntologyParsingError: Cannot download 'http://purl.org/dc/elements/1.1'!
How to resolve this error?

NoSuchEntityException: An error occurred (NoSuchEntity) when calling the GetRole operation: The user with name <name> cannot be found

Call to get_execution_role() from notebook instance fails with the error message NoSuchEntityException: An error occurred (NoSuchEntity) when calling the GetRole operation: The user with name <name> cannot be found.
Stack trace:
NoSuchEntityExceptionTraceback (most recent call last)
<ipython-input-1-1e2d3f162cfe> in <module>()
5 sagemaker_session = sagemaker.Session()
6
----> 7 role = get_execution_role()
/home/ec2-user/anaconda3/envs/tensorflow_p27/lib/python2.7/site-packages/sagemaker/session.pyc in get_execution_role(sagemaker_session)
871 if not sagemaker_session:
872 sagemaker_session = Session()
--> 873 arn = sagemaker_session.get_caller_identity_arn()
874
875 if 'role' in arn:
/home/ec2-user/anaconda3/envs/tensorflow_p27/lib/python2.7/site-packages/sagemaker/session.pyc in get_caller_identity_arn(self)
701 # Call IAM to get the role's path
702 role_name = role[role.rfind('/') + 1:]
--> 703 role = self.boto_session.client('iam').get_role(RoleName=role_name)['Role']['Arn']
704
705 return role
/home/ec2-user/anaconda3/envs/tensorflow_p27/lib/python2.7/site-packages/botocore/client.pyc in _api_call(self, *args, **kwargs)
312 "%s() only accepts keyword arguments." % py_operation_name)
313 # The "self" in this scope is referring to the BaseClient.
--> 314 return self._make_api_call(operation_name, kwargs)
315
316 _api_call.__name__ = str(py_operation_name)
/home/ec2-user/anaconda3/envs/tensorflow_p27/lib/python2.7/site-packages/botocore/client.pyc in _make_api_call(self, operation_name, api_params)
610 error_code = parsed_response.get("Error", {}).get("Code")
611 error_class = self.exceptions.from_code(error_code)
--> 612 raise error_class(parsed_response, operation_name)
613 else:
614 return parsed_response
NoSuchEntityException: An error occurred (NoSuchEntity) when calling the GetRole operation: The user with name <name> cannot be found.
However using boto client directly to get info about the role succeeds. This works fine:
response = client.get_role(
RoleName='role-name',
)['Role']['Arn']
Turns out this is some weird bug that goes away if you stop and start the notebook instance.
I have shutdown and run again the notebook and it works.
PD: I have to run again the code to make effect.

Error 500 CakePHP 3

I've an error 500 that I don't understand. The error was here before I begin to work on this project so it's complicated. When I click on button to open a PDF (with html2pdf), the error 500 appear. I've tried all I've found, but nothings works.
I can't send you code, or maybe few lines.
Output from error log:
2017-07-03 14:04:28 Error: Fatal Error (1): Maximum execution time of
60 seconds exceeded in [C:\Users\JCP
2\Documents\buyers\vendor\cakephp\cakephp\src\Error\BaseErrorHandler.php,
line 126] Request URL: /fra/my-leads/view/aekt.pdf Referer URL:
http://localhost:8765/fra/my-leads Trace:
Cake\Error\BaseErrorHandler::handleFatalError() -
CORE\src\Error\BaseErrorHandler.php, line 223
Cake\Error\BaseErrorHandler::Cake\Error{closure}() -
CORE\src\Error\BaseErrorHandler.php, line 105 [main] - [internal],
line ??
2017-07-03 14:04:28 Error: [Cake\Error\FatalErrorException] Maximum
execution time of 60 seconds exceeded Request URL:
/fra/my-leads/view/aekt.pdf Referer URL:
http://localhost:8765/fra/my-leads Stack Trace: 0 C:\Users\JCP
2\Documents\buyers\vendor\cakephp\cakephp\src\Error\BaseErrorHandler.php(105):
Cake\Error\BaseErrorHandler->handleFatalError(1, 'Maximum executi...',
'C:\Users\JCP 2...', 126) 1 [internal function]:
Cake\Error\BaseErrorHandler->Cake\Error{closure}() 2 {main}
More precision : when I just write "hello" in pdf, I don't have error. It's only when I try to get datas. And when I set this pdf to another view (so without pdf format) it works :/
Log output after increasing execution time
2017-07-04 08:19:08 Error: [Spipu\Html2Pdf\Exception\ImageException]
Unable to get the size of the image
[http://localhost:8765/img/logo.png?1497859287] Request URL:
/fra/my-leads/view/trkkdz.pdf Referer URL:
http://localhost:8765/fra/my-leads
I try to comment the logo and now, it says this :
2017-07-04 08:23:06 Error: [Exception] TCPDF ERROR: Some data has
already been output, can't send PDF file Request URL:
/fra/my-leads/view/trkkdz.pdf Referer URL: ... Stack Trace: 0
C:\Users\JCP
2\Documents\buyers\vendor\tecnickcom\tcpdf\tcpdf.php(7620):
TCPDF->Error('Some data has a...') 1 C:\Users\JCP
2\Documents\buyers\vendor\spipu\html2pdf\src\Html2Pdf.php(506):
TCPDF->Output('MLC_Lead-trkkdz...', 'I') 2 C:\Users\JCP
2\Documents\buyers\src\Template\Layout\pdf\default.ctp(10):
Spipu\Html2Pdf\Html2Pdf->output('MLC_Lead-trkkdz...') 3 C:\Users\JCP
2\Documents\buyers\vendor\cakephp\cakephp\src\View\View.php(1010):
include('C:\Users\JCP 2...') 4 C:\Users\JCP
2\Documents\buyers\vendor\cakephp\cakephp\src\View\View.php(971):
Cake\View\View->_evaluate('C:\Users\JCP 2...', Array) 5 C:\Users\JCP
2\Documents\buyers\vendor\cakephp\cakephp\src\View\View.php(642):
Cake\View\View->_render('C:\Users\JCP 2...') 6 C:\Users\JCP
2\Documents\buyers\vendor\cakephp\cakephp\src\View\View.php(600):
Cake\View\View->renderLayout('', 'default') 7 C:\Users\JCP
2\Documents\buyers\vendor\cakephp\cakephp\src\Controller\Controller.php(623):
Cake\View\View->render(NULL, NULL) 8 C:\Users\JCP
2\Documents\buyers\vendor\cakephp\cakephp\src\Http\ActionDispatcher.php(125):
Cake\Controller\Controller->render() 9 C:\Users\JCP
2\Documents\buyers\vendor\cakephp\cakephp\src\Http\ActionDispatcher.php(93):
Cake\Http\ActionDispatcher->_invoke(Object(App\Controller\MyLeadsController))
10 C:\Users\JCP
2\Documents\buyers\vendor\cakephp\cakephp\src\Routing\Dispatcher.php(60):
Cake\Http\ActionDispatcher->dispatch(Object(Cake\Http\ServerRequest),
Object(Cake\Http\Response)) 11 C:\Users\JCP
2\Documents\buyers\webroot\index.php(37):
Cake\Routing\Dispatcher->dispatch(Object(Cake\Http\ServerRequest),
Object(Cake\Http\Response)) 12 {main}
This means your application is taking more than 60 seconds to run. That is why it is crushing. Add the code below to index.php in webroot directory
<?php
set_time_limit ( 60 * 5 ); // 5 minutes
?>
or in your php.ini :
max_execution_time=300

Uncaught TypeError: Object #<HTMLDivElement> has no method 'detachEvent' - on YouTube player close

I keep getting the following error whenever I close a Backbone view, from the error it seems like the YouTube player is not closing nicely:
Uncaught TypeError: Object #<HTMLDivElement> has no method 'detachEvent' html5player-vfl_ymO4Z.js:73
(anonymous function) html5player-vfl_ymO4Z.js:73
og.(anonymous function).d html5player-vfl_ymO4Z.js:22
cl html5player-vfl_ymO4Z.js:73
hl html5player-vfl_ymO4Z.js:74
P.G html5player-vfl_ymO4Z.js:616
(anonymous function) html5player-vfl_ymO4Z.js:75
ul html5player-vfl_ymO4Z.js:75
(anonymous function) html5player-vfl_ymO4Z.js:18
sl.(anonymous function).G html5player-vfl_ymO4Z.js:75
P.G html5player-vfl_ymO4Z.js:732
(anonymous function) html5player-vfl_ymO4Z.js:75
P.Jr html5player-vfl_ymO4Z.js:85
dn www-embed-player-vflX1WAR4.js:207
M.I www-embed-player-vflX1WAR4.js:208
gf.(anonymous function).dispose www-embed-player-vflX1WAR4.js:29
Ym www-embed-player-vflX1WAR4.js:195
M.Fd www-embed-player-vflX1WAR4.js:207
(anonymous function) www-embed-player-vflX1WAR4.js:230
h www-embed-player-vflX1WAR4.js:28
jQuery.fn.extend.remove jquery.js:6117
_.extend.remove backbone.js:1023
Marionette.View.Backbone.View.extend.close backbone.marionette.js:924
Marionette.ItemView.Marionette.View.extend.close
Any ideas?

google-app-engine eclipse policyutil.getKeyStore illegalarguementexception can't start debug environment

I can't seem to start my development environment for gae on eclipse anymore. Once I start it it goes to the debug view with source not found for the PolicyUtil.getKeyStore with an illegalarguementexception. Has anyone else had this problem? I've tried deleting my run configs but no luck.
Any help is much appreciated. Here's the stack trace:
{Daemon Thread [Thread-1] (Suspended (exception IllegalArgumentException))
PolicyUtil.getKeyStore(URL, String, String, String, String, Debug) line: 65
PolicyFile.init(URL, PolicyFile$PolicyInfo) line: 635
PolicyFile.access$400(PolicyFile, URL, PolicyFile$PolicyInfo) line: 266
PolicyFile$3.run() line: 546
AccessController.doPrivileged(PrivilegedAction<T>) line: not available [native method]
PolicyFile.initPolicyFile(String, String, PolicyFile$PolicyInfo) line: 519
PolicyFile.initPolicyFile(PolicyFile$PolicyInfo, URL) line: 505
PolicyFile.init(URL) line: 464
PolicyFile.<init>() line: 309
NativeConstructorAccessorImpl.newInstance0(Constructor, Object[]) line: not available [native method]
NativeConstructorAccessorImpl.newInstance(Object[]) line: 39
DelegatingConstructorAccessorImpl.newInstance(Object[]) line: 27
Constructor<T>.newInstance(Object...) line: 513
Class<T>.newInstance0() line: 355
Class<T>.newInstance() line: 308
Policy.getPolicyNoCheck() line: 167
ProtectionDomain.implies(Permission) line: 224
AccessControlContext.checkPermission(Permission) line: 352
AccessController.checkPermission(Permission) line: 546
SecurityManager.checkPermission(Permission) line: 532
Policy.getPolicy() line: 133
SecurityManagerInstaller.install(URL...) line: 81
DevAppServerFactory.createDevAppServer(File, File, File, String, int, boolean, boolean, Map<String,Object>) line: 136
DevAppServerFactory.createDevAppServer(File, File, File, String, int, boolean) line: 78
DevAppServerFactory.createDevAppServer(File, String, int) line: 52
DevAppServerMain$StartAction.apply() line: 175
Parser$ParseResult.applyArgs() line: 48
DevAppServerMain.<init>(String[]) line: 128
DevAppServerMain.main(String[]) line: 104}
I went on and downloaded the latest for GAE and the eclipse plugin hoping that would fix it but no luck.
Regards,
John
Fixed - My workspace was corrupt. I created a new workspace folder and had to import my project and settings.

Resources