-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Description
Hello,
i am using the current version of the cloud functions plugin to call a cloud function inside my backend. The cloud functions are hosted in europe-west1. when i now call the function
CloudFunctions.instance.call(
functionName: 'functionName',
parameters: {'data': ''}).then((resp) {
// Do some stuff
}).catchError((error) {
print(error.toString());
});i get an error with "NOT FOUND".
After that i was testing it with the cloud functions shell
dev@cloudshell:~ (project)$ gcloud functions call "functionName" --data '{"data":""}'
output:
ERROR: (gcloud.functions.call) ResponseError: status=[404], code=[Not Found], message=[Function getSwipePictures in region us-central1 in project does not exist]
when i give the correct region as parameter --region eurpe-west1 it works correctly.
My question is now, have i missed the parameter to configure the cloud functions plugin for a other region then us-central1 or is this configuration not implemented yet?
Many thanks in advance for your help
Max
flutter doctor -v
[√] Flutter (Channel beta, v0.11.3, on Microsoft Windows [Version 10.0.17763.55], locale de-DE)
• Flutter version 0.11.3
• Framework revision 72bf075e8d (4 days ago), 2018-11-09 20:36:17 -0800
• Engine revision 5646e86a6f
• Dart version 2.1.0 (build 2.1.0-dev.9.3 9c07fb64c4)
[√] Android toolchain - develop for Android devices (Android SDK 28.0.3)
• Android SDK at
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
• All Android licenses accepted.
[√] Android Studio (version 3.2)
• Android Studio
• Flutter plugin version 30.0.1
• Dart plugin version 181.5656
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
[√] VS Code (version 1.29.0)
• VS Code at Microsoft VS Code
• Flutter extension version 2.20.0
[√] Connected device (1 available)
• Pixel 2 • code• android-arm64 • Android 9 (API 28)
• No issues found!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels