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

Misc #561

Merged
merged 2 commits into from
Nov 15, 2023
Merged

Misc #561

merged 2 commits into from
Nov 15, 2023

Conversation

sebastien-comeau
Copy link
Contributor

@sebastien-comeau sebastien-comeau commented Nov 15, 2023

Description

List of proposed changes:

  • Warn when ALERT_JSON_URI doesn't exists
  • Add adobeAnalyticsScriptSrc to heath endpoint

Additional Notes

Warn when ALERT_JSON_URI doesn't exists instead of throwing an exception. Some environments and local devellopement have not that variable set and it's not a required variable.

{"level":50,"time":"2023-11-15T18:38:00.696Z","pid":25,"hostname":"passport-status-frontend-dev-7fc57779c-fm9bw","name":"get-alerts","msg":"ALERT_JSON_URI must not be undefined, null or empty"}
{"level":50,"time":"2023-11-15T18:38:00.697Z","pid":25,"hostname":"passport-status-frontend-dev-7fc57779c-fm9bw","name":"get-alerts","err":{"type":"Error","message":"process.env.ALERT_JSON_URI must not be undefined, null or empty","stack":"Error: process.env.ALERT_JSON_URI must not be undefined, null or empty\n    at handler (/app/.next/server/pages/api/alerts.js:1:473)\n    at /app/node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js:20:16566\n    at /app/node_modules/next/dist/server/lib/trace/tracer.js:131:36\n    at NoopContextManager.with (/app/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:7057)\n    at ContextAPI.with (/app/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:516)\n    at NoopTracer.startActiveSpan (/app/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:18086)\n    at ProxyTracer.startActiveSpan (/app/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:18847)\n    at /app/node_modules/next/dist/server/lib/trace/tracer.js:120:103\n    at NoopContextManager.with (/app/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:7057)\n    at ContextAPI.with (/app/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:516)"},"msg":"Failed to fetch alerts"}
{"level":50,"time":"2023-11-15T18:38:00.771Z","pid":25,"hostname":"passport-status-frontend-dev-7fc57779c-fm9bw","name":"get-alerts","msg":"ALERT_JSON_URI must not be undefined, null or empty"}
{"level":50,"time":"2023-11-15T18:38:00.771Z","pid":25,"hostname":"passport-status-frontend-dev-7fc57779c-fm9bw","name":"get-alerts","err":{"type":"Error","message":"process.env.ALERT_JSON_URI must not be undefined, null or empty","stack":"Error: process.env.ALERT_JSON_URI must not be undefined, null or empty\n    at handler (/app/.next/server/pages/api/alerts.js:1:473)\n    at /app/node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js:20:16566\n    at /app/node_modules/next/dist/server/lib/trace/tracer.js:131:36\n    at NoopContextManager.with (/app/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:7057)\n    at ContextAPI.with (/app/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:516)\n    at NoopTracer.startActiveSpan (/app/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:18086)\n    at ProxyTracer.startActiveSpan (/app/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:18847)\n    at /app/node_modules/next/dist/server/lib/trace/tracer.js:120:103\n    at NoopContextManager.with (/app/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:7057)\n    at ContextAPI.with (/app/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:516)"},"msg":"Failed to fetch alerts"}
{"level":50,"time":"2023-11-15T18:38:01.787Z","pid":25,"hostname":"passport-status-frontend-dev-7fc57779c-fm9bw","name":"get-alerts","msg":"ALERT_JSON_URI must not be undefined, null or empty"}

Copy link

@sebastien-comeau sebastien-comeau merged commit ca7fba2 into main Nov 15, 2023
8 checks passed
@sebastien-comeau sebastien-comeau deleted the misc branch November 15, 2023 19:06
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