Firebase Quota exceeded working on my app - reactjs

I'm working on my react native app for a university project and today I got this error:
[Unhandled promise rejection: FirebaseError: Quota exceeded.]
And when I open firebase I can't see my database, I see an error during the loading files.
I created the firebase project yesterday, and if I check the reads and writes I see 1605 reads and 3 writes.
Yesteday I had the same issue and I solved it by creating a new database and connect it again to my react native app, but I can't do this every day, how can I work on it without having this trouble anymore?

I just realized that the problems are caused by the timestamp methods, when I try to read the createdAt label and to convert it with getDate I get too many reads

Related

React error: request failed with status code 400

I am following Bezkoder tutorial in the link to create a simple CRUD database using React, NodeJS, Express and MySQL: [https://www.bezkoder.com/react-node-express-mysql/#React_Nodejs_Express_MySQL_Architecture
I've successfully created the backend and tested read, write and delete of records using POSTMAN. I've then created the React frontend, which uses Axios - it compiles OK, and displays a web page in my browser. This page will read records from the database OK, but when I try to add new or amend existing records, it doesn't work, and in console it displays "Request Failed with status code 400" error. The full error message in console is as follows:
Console error
I'm not sure what the error means or how I might go about troubleshooting further. Could anyone point out to me how I can troubleshoot this further or what other info you'd need to help me?
I was expecting the React frontend to be able to add new records and amend existing records.

Branch.io referral implementation not working in web app

I am using branch SDK in the mobile app for which I am working on for more than 2 years now. I want to have the referral feature in our web application as well. I have followed the web app integration guidelines and has integrated branch in my app. I am using v2.54.2 of branch SDK and v16.13.1 of React.
I am facing a strange issue after integrating. I am calling the branch.logout() method while the user logs out of the application. But after the user logs in back (either to the same user account or to a different user account in our application), none of the branch functionalities work. (branch.setIdentity(), branch.credit(), branch.redeem() etc.). I am getting the following error in the console
Uncaught Error: Invalid JSON string: [object Object]
at ia (build.min.js?cd67:7)
at d (build.min.js?cd67:57)
at Mb (build.min.js?cd67:57)
at eval (build.min.js?cd67:146)
at eval (build.min.js?cd67:135)
at k (build.min.js?cd67:66)
at XMLHttpRequest.Sb.g.onreadystatechange (build.min.js?cd67:64)
I’m not even able to identify which method is causing this error. The branch APIs won’t work even if I do a hard reload. After days of debugging what I found is all the functionalities will work if I open the app in a new tab and close the current tab. But if the user logout and login from the new tab, the issue comes back.
What I suspect is the global branch object, while logging out is not getting reset to the initial state. Can anyone please help me with this issue? I am stuck with this issue for more than 2 weeks now

Java IOException during API request to Stripe (APIConnectionException)

The specific action we are trying to performe is to create a charge request with Stripe:
Charge charge = Charge.create(params);
Using Stripe's Java implementation (version 5.35.1) we encounter a APIConnectionException when running the application on the deployed App Engine server. Interestingly, the issue does not occur using App Engine's local dev server.
We contacted Stripe and they said everything is fine on their side. They explained that "this error indicates that your server is not able to contact our API and that it ends up timing out waiting for an answer. Usually, this is due to something misconfigured on your server such as a DNS not redirecting to Stripe properly."
We were wondering if there are some configuration settings on App Engine which cause the problem. However, since there is no specific error message we cound not figure out what might cause the connection problem.
Similar problems which did not provide enough help to resolve this issue: https://issuetracker.google.com/35901039
Thanks for your help!
The problem seems to have solved itself. It occured for a couple of days and since a few hours the exact same code is working fine. Just like in https://issuetracker.google.com/issues/35901039 the problem is suddenly gone for some reason.

React on prod env and registerServiceWorker.js error

So, I compiled my react app and moved it to AWS S3 bucket. I launched the static server and the everything is working as it should, but... I´m seeing an error in the console:
Error during service worker registration: > DOMException: The operation is insecure. registerServiceWorker.js:80:6
I don´t have that error in my local env. I researched and found that the error was related to the use of HTTP. Is that right...? My concern, at this point, is double...
Error should be blocking the service worker API which is a nice-to-have cache.
Is also there a functional or security related issue...?
I´m new with React. This is my first time moving one of my practices to prod and could not find useful info about this error.
Any info will be appreciated. Thanks!
If you are using Firefox please go to Privacy & Security, under History make sure you keep the cookies until they expire.
It is a bug in Firefox 59.

Getting Metadata Query Failed error breeze/Breeze/Metadata on Azure Server Hot Towel Angular

I am following the HotTowel Angular Tutorials by John Papa. It works perfect on localhost but it is giving me errors when i deployed the website on Windows Azure. My website URL is : http://crmbyzaid.azurewebsites.net/index.html#/
And I am getting the errors like
"[datacontext] [HT Error] Error Retriving DataMetadata query failed for: breeze/Breeze/Metadata. Unable to either parse or import metadata: Unexpected token z; undefined Error: Metadata query failed for: breeze/Breeze/Metadata. Unable to either parse or import metadata: Unexpected token z; undefined"
I do not know what happened during deployment. I have unchecked the box of "Use this connection string at runtime" during Deployment
This question is a few weeks old, but I thought I would share my experience since I had exact same issue. In my case, the problem was that there were multiple methods on BreezeController that accepted a GET request. This should not have been an issue since the controller methods should be called by method name based on route setup, but for whatever reason Azure was not cooperating.
I removed the other methods, which were just stubs anyway, and it began working just fine. The only way I was able to finally determine this was the issue was by attaching debugger to the site running on Azure, and also enabling symbol server(s).....otherwise VS would not break on the exception no matter what.
Hope this helps!

Resources