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

Data.json Validator - Missing Template #570

Merged
merged 2 commits into from
Oct 7, 2022
Merged

Conversation

nickumia-reisys
Copy link
Contributor

Related to

   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] OUT File "/home/vcap/deps/1/python/lib/python3.7/site-packages/ckanext/datajson/blueprint.py", line 387, in validator
   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] OUT return render('datajsonvalidator.html')
   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] OUT File "/home/vcap/deps/1/python/lib/python3.7/site-packages/ckan/lib/base.py", line 151, in render
   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] OUT return flask_render_template(template_name, **extra_vars)
   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] OUT File "/home/vcap/deps/1/python/lib/python3.7/site-packages/newrelic/api/function_trace.py", line 166, in literal_wrapper
   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] OUT return wrapped(*args, **kwargs)
   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] OUT File "/home/vcap/deps/1/python/lib/python3.7/site-packages/flask/templating.py", line 148, in render_template
   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] OUT ctx.app.jinja_env.get_or_select_template(template_name_or_list),
   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] OUT File "/home/vcap/deps/1/python/lib/python3.7/site-packages/jinja2/environment.py", line 1067, in get_or_select_template
   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] OUT return self.get_template(template_name_or_list, parent, globals)
   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] OUT File "/home/vcap/deps/1/python/lib/python3.7/site-packages/jinja2/environment.py", line 996, in get_template
   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] OUT return self._load_template(name, globals)
   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] OUT File "/home/vcap/deps/1/python/lib/python3.7/site-packages/jinja2/environment.py", line 957, in _load_template
   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] OUT template = self.loader.load(self, name, self.make_globals(globals))
   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] OUT File "/home/vcap/deps/1/python/lib/python3.7/site-packages/jinja2/loaders.py", line 125, in load
   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] OUT source, filename, uptodate = self.get_source(environment, name)
   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] OUT File "/home/vcap/deps/1/python/lib/python3.7/site-packages/ckan/lib/jinja_extensions.py", line 226, in get_source
   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] OUT raise TemplateNotFound(template)
   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] OUT jinja2.exceptions.TemplateNotFound: datajsonvalidator.html
   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] ERR 2022-10-07 15:29:57,383 ERROR [ckan.config.middleware.flask_app] datajsonvalidator.html
   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] ERR Traceback (most recent call last):
   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] ERR File "/home/vcap/deps/1/python/lib/python3.7/site-packages/flask/app.py", line 1499, in full_dispatch_request
   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] ERR rv = self.dispatch_request()
   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] ERR File "/home/vcap/deps/1/python/lib/python3.7/site-packages/flask/app.py", line 1485, in dispatch_request
   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] ERR return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] ERR File "/home/vcap/deps/1/python/lib/python3.7/site-packages/newrelic/hooks/framework_flask.py", line 64, in _nr_wrapper_handler_
   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] ERR return wrapped(*args, **kwargs)
   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] ERR File "/home/vcap/deps/1/python/lib/python3.7/site-packages/ckanext/datajson/blueprint.py", line 387, in validator
   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] ERR return render('datajsonvalidator.html')
   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] ERR File "/home/vcap/deps/1/python/lib/python3.7/site-packages/ckan/lib/base.py", line 151, in render
   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] ERR return flask_render_template(template_name, **extra_vars)
   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] ERR File "/home/vcap/deps/1/python/lib/python3.7/site-packages/newrelic/api/function_trace.py", line 166, in literal_wrapper
   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] ERR return wrapped(*args, **kwargs)
   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] ERR File "/home/vcap/deps/1/python/lib/python3.7/site-packages/flask/templating.py", line 148, in render_template
   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] ERR ctx.app.jinja_env.get_or_select_template(template_name_or_list),
   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] ERR File "/home/vcap/deps/1/python/lib/python3.7/site-packages/jinja2/environment.py", line 1067, in get_or_select_template
   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] ERR return self.get_template(template_name_or_list, parent, globals)
   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] ERR File "/home/vcap/deps/1/python/lib/python3.7/site-packages/jinja2/environment.py", line 996, in get_template
   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] ERR return self._load_template(name, globals)
   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] ERR File "/home/vcap/deps/1/python/lib/python3.7/site-packages/jinja2/environment.py", line 957, in _load_template
   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] ERR template = self.loader.load(self, name, self.make_globals(globals))
   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] ERR File "/home/vcap/deps/1/python/lib/python3.7/site-packages/jinja2/loaders.py", line 125, in load
   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] ERR source, filename, uptodate = self.get_source(environment, name)
   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] ERR File "/home/vcap/deps/1/python/lib/python3.7/site-packages/ckan/lib/jinja_extensions.py", line 226, in get_source
   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] ERR raise TemplateNotFound(template)
   2022-10-07T11:29:57.38-0400 [APP/PROC/WEB/3] ERR jinja2.exceptions.TemplateNotFound: datajsonvalidator.html
   2022-10-07T11:29:57.40-0400 [APP/PROC/WEB/3] OUT 2022-10-07 15:29:57,402 INFO  [ckan.config.middleware.flask_app]  500 /dcat-us/validator render time 0.024 seconds

@nickumia-reisys nickumia-reisys merged commit 0a0dadd into main Oct 7, 2022
@nickumia-reisys nickumia-reisys deleted the datajson-fix branch October 7, 2022 16:16
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.

2 participants