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
- Clone https://github.com/Hacksore/firebase-emulator-got
- Run project via
npm run serve
in thefunctions
directory
[REQUIRED] Expected behavior
- GET http://localhost:5001/firebase-emulator-got/us-central1/app
- Should give you back a list of open issues for my project under
got-lib
[REQUIRED] Actual behavior
- GET http://localhost:5001/firebase-emulator-got/us-central1/app
got-lib
has an empty string whereasrequest-lib
is able to fetch the data
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@Hacksore no worries, glad we could narrow it down.
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