I am Unable to upload data on firebase console. I have written all the code, import all the libraries, and also follow all the steps to upload data on firebase console but I don't know why, what is the problem, There is no data uploaded on the console. There is not any single error but still can't show on the firebase console. Please let me know the general solutions for this problem what's going on.
Related
I'm currently a student and my professor recommended I post my question to a community. For my class project, I'm building an app using React Native Expo and I'm trying to connect it to a Firebase Database. I followed the instructions from the documentation and I've watched several tutorials that didn't really help. The issue I'm having is that when I try to import firebase, I get the "The development server returned response error code: 500" and I can't figure out why or how to fix it. The code I used is basically copy/paste from the database I created per the instructions.This is the error screen. I just marked out the user name.
I have a React Native app with Firebase crashlytics integrated. I am forcefully crashing the app by calling function which does not exist. (this.test()).
I am getting logs in crashlytics, but looking at that logs I am not able to track the exact issue location.
Logs are quite generic and which is not helping me to pinpoint the issue.
Is there any way to get more info on that issue from logs? or anything I need to do so that I can get the issue location? if we are getting an issue in the inded.js file can we trace back the exact js file in app which is causing the issue.
Please help me with this information. Than you for helping.
Firebaser here - it sounds like you'd benefit from Crashlytics custom logging. This tool allows you to log any messages you want that get appended to the Crashlytics crash report that gets sent up to the console. I'm not sure how the React Native wrapper for Firebase Crashlytics works or if it allows you to do this, but according to the React Native Firebase reference doc you should be able to.
With this tool, you could call log in your code whenever you want to record information about the session, the user, or whatever's happening with code that you're executing in the background.
After following all the steps on google, after I run the emulator from scratch I get the following message:
On the google Firebase site it also tells me "Congratulations, you've successfully added Firebase to your app! ". But I am worried I did not do things properly and do not want to run in to problems later.
I do not have any problems uploading the code to the android emulator, hence I do not know if it successfully connected to Firebase. How can I properly check if I am actually indeed connected to Firebase?
If you want to check it through your code
Try getting the user by (just for the test)
await FirebaseAuth.instance.getCurrentUser()//should return null
If it throws no error everything is setup correctly
Make sure the emulator has Google play services installed
I'm trying to deploy a firestore cloud function however I'm getting the error failed to configure trigger providers. I've included some relevant screenshots.
I've also tried using different paths like '{collection}/'{document}' and 'users/farout' however only the explicit 'users/farout' was able to deploy however when i make a document 'users/farout' it doesn't print anything to the log and appears to not be working either.
My database is public read and write.
Thanks for the help.
here's the task I have and the resources I'm following to try to get it done.
Ultimately what I want is for users to be able to take pictures with my app (made with Ionic) and then those pictures get sorted and end up on the company's Google Team Drive.
What I originally started with was uploading the images to Firebase Storage, and then I was told they must be accessible to Team Drive.
Some of the people taking pictures aren't part of the company's G Suite, so I was thinking it would be easier to just have the database itself authenticate with the Team Drive and upload from there.
Here is an example from github that shows the same thing I want, except it uploads from Firebase Database to Google Sheets:
https://github.com/firebase/functions-samples/tree/master/google-sheet-sync
My plan was to follow this guide exactly to get it working, and then figure out how I can change it for Storage -> Team Drive.
However in following the instructions in the readme (they're pretty old) I've come across an error and now I'm stuck.
For Step #7 in that link where it says to run $ firebase functions:config:set googleapi.client_id="<id>" and the rest of the command, I get in terminal:
Error: HTTP Error: 403, The caller does not have permission
What should be the steps I'm looking at to get this working? I am also unsure if my current implementation makes sense anymore. It wouldn't be a big deal to make everyone using the app sign-in with a Google account so that they can be a member of the Team Drive and just upload directly from the app to Drive. Would that still include the sort of safety behaviour like if the connection drops the file upload will resume independently?
The answer to my first question is to install googleapis and google-auth-library. Run the command in the actual /functions/ directory of the sample.
There were a few other errors created by old code, but they aren't in the scope of this question and I raised them in the github Issues sections.