Skip to main content

All Questions

Tagged with
1 vote
0 answers
640 views

Network Error AxiosError: Network Error at XMLHttpRequest.handleError (http://localhost:3000/static/js/bundle.js:105169:14)

I am building an Amazon clone and have implemented Payment through stripe and now after entering card details, it redirects to the orders page (which I want it to) but then it shows this "Network ...
anirudh chandan's user avatar
0 votes
1 answer
288 views

Failed to resolve module specifier "axios". Relative references must start with either "/", "./", or "../"

This is the first time I created a react app using Vite and deployed it to Firebase, when trying to view it online I keep getting the above-mentioned error I use import axios from 'axios' to import ...
Curran-C's user avatar
  • 137
1 vote
0 answers
75 views

How to to get data from multiple endpoints using axios from firebase react native expo app

I am using firebase for my database. I can access firstBlock as I created first node in firebase. But I am not able to fetch data from secondBlock which is second node. I am new for react and react ...
Ranjit Bishwokarma's user avatar
-1 votes
1 answer
614 views

How can i send firebase getIdToken with axios in reactjs?

I am using the following code to obtain a user idtoken and i can succesfully log it to the console using console.log: firebase.auth().onAuthStateChanged(function(user) { if (user) { user....
admin admin's user avatar
3 votes
1 answer
54 views

How to improve firebase real time database rules with anonymous user

I have a simple json tree like this : https://ibb.co/Rgpznd0, and my rules are: { "rules": { ".read": "auth.uid !== null", ".write": "...
Sandrew94's user avatar
0 votes
0 answers
249 views

Getting error while trying to upload image into firebase using react Uncaught TypeError: Cannot read properties of undefined (reading 'path')

This is my code, I don't know what's wrong here. Earlier it was sending null url to mongo =db but later I changed form submit function from "handleSubmit" to "handleFirebaseUpload" ...
Shah Muhammad Jannatul Hasan's user avatar
0 votes
0 answers
208 views

Firebase functions not working with axios get function

I don't understand why my axios.get(firebase project / .json) file not working properly. What am I doing wrong here, any idea??? import axios from "axios"; class allClass extends Component { ...
Vishal Mishra's user avatar
0 votes
1 answer
3k views

why I am getting 404 error when creating a stripe checkout payment?

I am creating a react-app with firebase, I want to use stripe payment Gateway in my project but i cant use it as it give me an error. Whenever I am calling a post request through axios , i get this ...
himanshuTomar's user avatar
0 votes
1 answer
47 views

General question about deploying a react App

As a beginner in React, I'm currently developing an e-commerce mock-up locally on my computer. I have the central App, all the React environnment, my pages, my components, the helpers functions, my ...
FJTAIL's user avatar
  • 109
1 vote
0 answers
36 views

Fetching data from Firebase using Axios in React

I am getting TypeError: response.forEach is not a function and can't fetch the data. Please help me out.
Samon's user avatar
  • 21
2 votes
1 answer
1k views

firebase authentication rest API request with axios

I am trying to write function to Sign in user with Email and Password. Using Axios and firebase rest API. So this is how Axios instance looks like, really simple right? ... const authUrl = `https://...
Beka Batmanashvili's user avatar
0 votes
2 answers
1k views

[React]: Uploading file, Changing state to show preview, then waiting for upload before submit

I'm a bit of a beginner at React, and have tried running an async function to achieve this, however it kept breaking and I'm not sure what I'm doing wrong. What the app is currently doing: I input a ...
elguapo's user avatar
  • 165
0 votes
1 answer
123 views

Connect Firebase (from google) with React redux/thunk and axios

I use: firebase.google.com I want to connect my React app with FireBase I have a file with Axios and I want to make call with thunk I get the following error on calls xhr.js:177 GET https://...e.app/...
Răzvan Palie's user avatar
0 votes
1 answer
148 views

axios not including firebase headers on post

When I use axios to make a PATCH request with an authorization header it works fine and I can see the auth header present in the outbound request however this same method does not work for a POST. I ...
Brian Kaufman's user avatar
-1 votes
1 answer
810 views

Why can't I make this axios DELETE request? [duplicate]

React / Firebase project. Trying to delete a document. Error message: Access to XMLHttpRequest at ... from origin 'http://localhost:3000' has been blocked by CORS policy: Method DELETE is not allowed ...
S.W.'s user avatar
  • 117

15 30 50 per page
1
2 3 4 5 6