Firebase Emulator issues with #10915
Unanswered
DionJChapman
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When using the Emulator that is only HTTP and not HTTPS the cloud_functions will return NOT FOUND Exception.
To fix this you need to use .httpsCallableFromUrl instead of .httpsCallable
Example
HttpsCallable callable = await FirebaseFunctions
.instanceFor(region: 'us-central1')
.httpsCallableFromUrl(
'http://127.0.0.1:5001//us-central1/processUpdateClaims');
final resp = await callable.call(<String, dynamic>{
'uid': user.uid,
'role': 'somerole',
});
if the documentation for this can be updated that would be great.
Beta Was this translation helpful? Give feedback.
All reactions