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.

emulator and external requests empty via got

See original GitHub issue

[REQUIRED] Environment info

firebase-tools: 8.5.0

Platform: Windows

[REQUIRED] Test case

I am running a simple REST function that uses got to fetch remote data. The request seems to not come back with data on Windows when I run locally but deployed works fine. I also noted that it did not happen on macOS.

I’ve included request in the demo app which seems it’s not having the same issue so this could be specific to got. Nevertheless, I figured it’s still helpful to see if others have experienced similar behavior.

Deployed function for ref: https://us-central1-firebase-emulator-got.cloudfunctions.net/app

[REQUIRED] Steps to reproduce

[REQUIRED] Expected behavior

[REQUIRED] Actual behavior

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
samtsterncommented, Jul 14, 2020

@Hacksore no worries, glad we could narrow it down.

0reactions
Hacksorecommented, Jul 14, 2020

You’re right! The issue is seen standalone with got on node.js v14.0.0 my apologies for the inconvenience here.

edit: got issue for others reference https://github.com/sindresorhus/got/issues/1349

Read more comments on GitHub >

github_iconTop Results From Across the Web

Firebase emulator return empty data whereas working fine ...
I got this error "functions: The Cloud Firestore emulator is not running, so calls to Firestore will affect production. ⚠ External network ...
Read more >
Troubleshoot known issues with Android Emulator
This page lists known issues, workarounds, and troubleshooting tips for the Android Emulator. If you encounter an issue not listed here or ...
Read more >
Call functions from your app | Cloud Functions for Firebase
onCall trigger automatically deserializes the request body and validates auth ... The errors also have a string message , which defaults to an...
Read more >
How to get correct reference to the content of the external ...
Question: I am using High-performance Embedded Workshop with the E1 (or E20) to debug projects for RX-family MCUs. However, I ...
Read more >
Consume a RESTful web service - Xamarin - Microsoft Learn
REST requests are made over HTTP using the same HTTP verbs that web ... GET – this operation is used to retrieve data...
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