I don't understand why I'm getting this error. It happens either on a virtual or real device. I try to uninstall the app and nothing change. Why a simple helloWord function throw this error. I have no console log displayed. In the log I have this message: "Request has invalid method. GET" then "Error: Invalid request, unable to process. at entryFromArgs..." Why redirect? Could it be related to the cloud region I change? How could I clean that. Thank you.
Below the cloud function.
exports.belleDiana = functions.region(CLOUD_REGION).https.onCall(async (data, context) : Promise<String> => {
console.log("belleDiana", data, context);
console.log("context.auth", context.auth?.uid, context);
return "belleDianaDone";
});
The call on flutter side.
try {
final result =
await FirebaseFunctions.instance.httpsCallable('belleDiana').call();
print("result: $result");
} on FirebaseFunctionsException catch (error) {
print(error);
print(error.code);
print(error.details);
print(error.message);
}