question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Frontend blocking requests when not in GCP

See original GitHub issue

Describe the bug

a request against the frontend app when deployed in a non-GCP environment lead to a 2 minutes delay

To Reproduce

  • deploy the whole project in a K8s cluster WITHOUT an API answering on 169.254.169.254:80. This can be achieved using a K8s cluster out of AWS or GCP, or, like me, using Cilium Network Policies to block such traffic
  • curl against the frontend service… it will block for ~ 2 minutes

Logs

{"message":"Tracing disabled.","severity":"info","timestamp":"2022-01-28T18:43:52.381216858Z"}
{"message":"Profiling disabled.","severity":"info","timestamp":"2022-01-28T18:43:52.381283518Z"}
{"message":"starting server on :8080","severity":"info","timestamp":"2022-01-28T18:43:52.381944193Z"}
{"http.req.id":"ec621cfe-d9b8-4965-aa94-bfd8033c15c5","http.req.method":"GET","http.req.path":"/","message":"request started","session":"d5cf17c3-c869-4898-bb58-efa12d1fb2dd","severity":"debug","timestamp":"2022-01-28T18:44:18.181114709Z"}
{"currency":"USD","http.req.id":"ec621cfe-d9b8-4965-aa94-bfd8033c15c5","http.req.method":"GET","http.req.path":"/","message":"home","session":"d5cf17c3-c869-4898-bb58-efa12d1fb2dd","severity":"info","timestamp":"2022-01-28T18:44:18.181157082Z"}
{"http.req.id":"ec621cfe-d9b8-4965-aa94-bfd8033c15c5","http.req.method":"GET","http.req.path":"/","message":"ENV_PLATFORM is: aws","session":"d5cf17c3-c869-4898-bb58-efa12d1fb2dd","severity":"debug","timestamp":"2022-01-28T18:44:18.346517667Z"}
{"http.req.id":"ec621cfe-d9b8-4965-aa94-bfd8033c15c5","http.req.method":"GET","http.req.path":"/","message":"Failed to fetch the name of the cluster in which the pod is runningcompute: Received 503 `upstream connect error or disconnect/reset before headers. reset reason: connection failure`","session":"d5cf17c3-c869-4898-bb58-efa12d1fb2dd","severity":"error","timestamp":"2022-01-28T18:45:20.438611873Z"}
{"http.req.id":"ec621cfe-d9b8-4965-aa94-bfd8033c15c5","http.req.method":"GET","http.req.path":"/","message":"Failed to fetch the Zone of the node where the pod is scheduledcompute: Received 503 `upstream connect error or disconnect/reset before headers. reset reason: connection failure`","session":"d5cf17c3-c869-4898-bb58-efa12d1fb2dd","severity":"error","timestamp":"2022-01-28T18:46:21.832806289Z"}

Screenshots

Notification_Center

Environment

AWS EKS 1.21

Rant

I know it’s a Google project, but could we ensure NO google specific code is executer if the platform is not GCP ?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
prune998commented, Feb 2, 2022

thanks @NimJay for putting the PR up ! Can’t wait !

2reactions
NimJaycommented, Jan 28, 2022

FYI - The current workaround is to use version 0.3.1. We are working on a solution in the meantime.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How requests are handled | Google App Engine standard ...
If a request doesn't specify gzip in the Accept-Encoding header, App Engine will not compress the response data. The Google Frontend caches responses...
Read more >
CORS Policy blocking my API requests in a google cloud ...
The node js is running fine and it's deployed in the app engine in google cloud. my only problem is that whenever I...
Read more >
Allowing requests to specific url but block all others
To block request for /admin you can use Cloud Armor based on a URL and/or IP. You can block all the traffic going...
Read more >
Frequently Asked Questions | reCAPTCHA - Google Developers
I'd like to run automated tests with reCAPTCHA. What should I do? ... For reCAPTCHA v3, create a separate key for testing environments....
Read more >
Building Serverless Front-End Applications Using Google ...
Note: Serverless applications are not bound to React only, ... Note: A cloud function matches every HTTP protocol when a request is made....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found