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

[paymentservice] ReferenceError: Cannot access 'req' before initialization #1664

Open
KazusaW1999 opened this issue Jul 12, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@KazusaW1999
Copy link

Bug Report

https://github.com/open-telemetry/opentelemetry-demo.git

Symptom

Seems paymentservice's image has a internal error.

[email protected] start │ │ │
│ > node --require ./opentelemetry.js index.js │ │ │
│ (node:17) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead. │ │ │
│ (Use node --trace-deprecation ... to show where the warning was created) │ │ │
│ {"level":30,"time":1720766685241,"pid":17,"hostname":"wzy-opt-demo-paymentservice-566bf7bd94-n8zx9","msg":"PaymentService │PC serv │ started on port 8080"} │
│ (node:17) DeprecationWarning: Calling start() is no longer necessary. It can be safely omitted. │ │ │
│ /usr/src/app/node_modules/@opentelemetry/resource-detector-aws/build/src/detectors/AwsEc2Detector.js:112 │ │ │
│ req.abort(); │ │ │
│ ^ │ │ │
│ ReferenceError: Cannot access 'req' before initialization │ │ │
│ at Timeout._onTimeout (/usr/src/app/node_modules/@opentelemetry/resource-detector-aws/build/src/detectors/AwsEc2Detect │.js:112 │7) │
│ at listOnTimeout (node:internal/timers:573:17) │ │ │
│ at process.processTimers (node:internal/timers:514:7) │ │ │
│ Node.js v21.7.3

image
image

Reproduce

kubeversion: v1.25.1
Docker Engine - Community Version: 26.1.3
helm install wzy-opt-demo -n default opentelemetry-demo-0.32.0.tgz --debug

@KazusaW1999 KazusaW1999 added the bug Something isn't working label Jul 12, 2024
@julianocosta89
Copy link
Member

@KazusaW1999 could you try to update your helm chart and deploy it again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants