firebase / firebase/firebase-js-sdk

useFunctionsEmulator not working with region

Open
#2,510 14 comments 15 reactions 0 assignees View on GitHub
api: functions feature request
Dominant language
TypeScript
Stars
5.1k
Forks
1k
Avg merge
2d 21h
Merged PRs (30d)
37

Description

### [REQUIRED] Describe your environment

* Operating System version: Windows 10
* Browser version: Chrome 79
* Firebase SDK version: 7.6.1
* Firebase Product: Functions

### [REQUIRED] Describe the problem

Emulator url will be ignored and call to `cloudfunctions.net` instead when setting region.
#### Relevant Code:

```javascript
firebase.functions().useFunctionsEmulator("http://localhost:5001");

// This will call to cloudfunctions.net
firebase.app().functions("asia-east2").httpsCallable();

// This will call to localhost
firebase.app().functions().httpsCallable();
```

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with Firebase SDK 7.6.1 using the provided useFunctionsEmulator and regional functions calls on Windows 10. Compare the emulator and cloudfunctions.net routing; done when setting the asia-east2 region still sends the callable request to localhost:5001.

Written by the indexing model from the issue text.

Assessment

Tech stack
firebase, javascript
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.