I have a React Native application i installed firebase successfly
"#react-native-firebase/analytics": "^7.6.8",
"#react-native-firebase/app": "^8.4.6",
"#react-native-firebase/crashlytics": "^8.4.11",
i can see on dashboard analytics on firebase that i have One user Active, i do some crash to simulate crashes, but i can't see them on firebase, i have a loader that says add sdk firebase ....
When i see on log console xcode i can see there is problem with crashlytics :
[Firebase/Crashlytics][I-CLS000000] Failed to download settings Error Domain=FIRCLSNetworkError Code=-6 "(null)" UserInfo={retryLimit=1, NSErrorFailingURLStringKey=https://firebase-settings.crashlytics.com/spi/v2/platforms/ios/gmp/1:359190975801:ios:9ed89ac2d5d316ebe184e8/settings?build_version=4&display_version=2.009&instance=107518e136276e412097823086820b54535a54f6&source=1}
2020-10-27 10:46:25.558428+0100 MYAPPLI****[4103:1348887] Task <30DF78EC-4FD2-41EF-A978-33989A7C7CFB>.<2> finished with error [-1001] Error Domain=NSURLErrorDomain Code=-1001 "Request timed out earlier than tunneling config was received." UserInfo={_NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <30DF78EC-4FD2-41EF-A978-33989A7C7CFB>.<2>"
), NSLocalizedFailureReason=Request timed out earlier than tunneling config was received., _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <30DF78EC-4FD2-41EF-A978-33989A7C7CFB>.<2>}
I also tried to add log on the reactnative code :
import crashlytics from '#react-native-firebase/crashlytics';
crashlytics().log('Updating user count.');
But nothing showed on crashlytics
any help will be appreciated
-------------------------------Edit---------------------------------------
when i add ${PODS_ROOT}/FirebaseCrashlytics/run to build phase run script i don't get anymore error on log console xcode, but still can't see any log on crashlytics console
Related
After removing unused services, I was unable to push the code (amplify push) and got this error.
the command that I run
amplify remove notifications
amplify remove analytics
CLI error (amplify push):
✖ There was an error pulling the backend environment dev.
🛑 not enough bytes in the stream. expected 15644. got only 11274
Learn more at: https://docs.amplify.aws/cli/project/troubleshooting/
Session Identifier: 7afb1bd4-92b7-47dc-a33c-da119f94dfc9
✅ Report saved: /var/folders/6r/4np_tfpj3dbc69f1mc7l2gph0000gn/T/jammaroundapp/report-1674513678504.zip
✔ Done
Project Identifier: 1c09b09cbdd7fadb87731c2182daedce
Error.json
{
"name":"BackendPullFault",
"classification":"FAULT",
"options":{
"message":"not enough bytes in the stream. expected 15644. got only 11274"
},
"downstreamException":{
},
"link":"https://docs.amplify.aws/cli/project/troubleshooting/"
}
I try to pull the AWS Amplify in a new project and got this error "Failed to pull the backend" and also try to update anything on the AWS Amplify dashboard and press on Save and Deploy button but got this error
Deployment failed
not enough bytes in the stream. expected 15644. got only 11274 at AssertByteCountStream._flush
amplify cli version 10.6.2
i got wired issued with firebase deployment using:
firebase deploy -P dev
the error is
✔ functions[testFunction(us-central1)] Successful update operation.
Invalid source token
looks like its happen to new functions that created
when i tried to deploy specific function using:
firebase -deploy -P dev --only functions:name
its working
when i run and deploy all functions and all my apps i am getting the above error with no information
also the logs from google cloud function is:
status: {
code: 9
message: "Invalid source token"
}
firebase tools version 11.0.0
node: 14.19.3
I would suggest upgrading to atleast node 16 as there's an open issue regarding the "Invalid Source Token" on your current firebase-tools version. There's already a pull request regarding that issue and it will be fixed on the upcoming updates. Here's the github issue for reference.
firebase login --debug
i Firebase optionally collects CLI usage and error reporting information to help improve our products. Data is collected in accordance with Google's privacy policy (https://policies.google.com/privacy) and is not used to identify you.
? Allow Firebase to collect CLI usage and error reporting information? Yes
i To change your data collection preference at any time, run firebase logout and log in again.
Visit this URL on this device to log in:
https://accounts.google.com/o/oauth2/auth?client_id=563584335869-fgrhgmd47bqnekij5i8b5pr03ho849e6.apps.googleusercontent.com&scope=email%20openid%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloudplatformprojects.readonly%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Ffirebase%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloud-platform&response_type=code&state=151882733&redirect_uri=http%3A%2F%2Flocalhost%3A9005
Waiting for authentication...
[2020-04-21T13:30:57.183Z] Error: spawn cmd ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
at onErrorNT (internal/child_process.js:415:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
Error: An unexpected error has occurred.
Having trouble? Try again or contact support with contents of firebase-debug.log
This problem's solution may depend on the type of OS one is using if you are using window first run cmd as an administrator then type firebase login this should solve this problem and if your OS is Linux you may need to do sudo firebase login can be solved by
I started porting my Flutter app to macos Desktop. The UI started fine. However, as soon as the app makes a network call, it fails instantly with Connection failed (OS Error: Operation not permitted).
Running a one-liner:
final response = await http.get('https://jsonplaceholder.typicode.com/posts/1');
fails with:
Unhandled Exception: SocketException: Connection failed (OS Error:
Operation not permitted, errno = 1),
address = jsonplaceholder.typicode.com, port = 443
#0 IOClient.send (package:http/src/io_client.dart:33:23)
The macos build target comes from Google's sample here.
Flutter (Channel master, v1.9.8-pre.108)
Per my comment on the other answer, you should not use the Xcode capabilities UI for this. It will not correctly handle the two separate entitlement files in a Flutter project.
You need to add:
<key>com.apple.security.network.client</key>
<true/>
to macos/Runner/DebugProfile.entitlements and macos/Runner/Release.entitlements.
This is documented here and here.
Your macOS XCode project lacks Internet permission called "Outgoing Connections (Client)".
Open your macos xcode project - [root]/macos/Runner.xcworkspace
Click "Runner" in Project navigator - general settings will show up. Select "Capabilities" from tabbar and tick option "Outgoing Connections (Client)".
Rebuild your application inside XCode and launch the project.
If you are getting this error Only in Android release then Internet permission must be missing from main manifest. You just need to add Internet permission in Manifest file.
Just add this permission in manifest <uses-permission android:name="android.permission.INTERNET"/>
There are three manifest file available in Android folder
app/src/debug
app/src/main
app/src/profile
i want to implement the notifications feature by firebase on my ionic application
so after proceeding with the following command
ionic cordova plugin add cordova-plugin-fcm
and adding the google-services.json to the main folder of my ionic project I am facing the following error with no success to solve it
(node:15256) UnhandledPromiseRejectionWarning: Unhandled promise rejection
(rejection id: 1): TypeError: Invalid data, chunk must be a string or
buffer, not object
(node:15256) [DEP0018] DeprecationWarning: Unhandled promise rejections are
deprecated. In the future, promise rejections that are not handled will
terminate the Node.js process with a non-zero exit code.
i found on google that firebase has several bugs on it's latest version which is 4.8.2 and 4.8.1 so as well i did a downgrade to firebase 4.8.0.
as well i tried the npm install and npm cache verify and i checked that i have the same package name in my project and firebase with no success to solve it.