Category "axios"

How to use Axios with Vue 3 Composition API

I am attempting to build a Pokemon filtered search app with Vue 3 and Composition API based on the following tutorial: https://www.youtube.com/watch?v=QJhqr7jqx

How do I correctly call an HTTP API GET request to weatherstack?

I'm trying to do a GET request to api.weatherstack.com (see documentation). Here's my react effect hook: useEffect(() => { if (country === undefined) r

Upload Image with Axios Post request

I am trying to make a post request to an api to upload a user image and send it to the api for profile settings.But i always receive "the image field is require

bybit api spot order create nodejs

I'm using bybit api to create an order on the spot market in nodejs. i tried the below code: var params = { api_key: api['key'], qty: 30, symbol: "E

Axios in React Native doesn't provide Form-Data headers

I'm trying to upload a file via Axios (Version ^0.26.0) in React Native (Version 0.66.4) with the following code: const formData = new FormData(); formData.appe

Docker container does not respond to http request

I'm trying to send an http request through axios, from my localhost (node server) to a docker container (which contains a simple server in node too) which belon

SvelteKit API requests with Axios JWT authentication

I am creating an app with a SvelteKit client and a Laravel API stack, but I am struggling to safely authenticate my client to my API. Ideally I want to store a

Pass Data to Service in Axios

I want to set _boundry in my header. First, I dispatch the form data: //component.js const form = new FormData(); form.append('email', '[email protected]')

Vue.js: How to fill a form prepopulated with data from a get request?

I want to load data with a GET request and fill the data to the input data attributes at vue.js 3 like <input id="name" type="text" v-bind:placeholder="$t('m

How to send body data and headers with axios get request?

I've tried axios.get(url, {headers:{},data:{}}) But it doesn't work with this.

An API is being hit when <Doclist/> component is rendered through "userlist.js" ,but not when the same component is rendered through "newuser.js"

inside userlist.js the code looks like const renderItems = ({item}) => { if (item !== undefined) { const user = { image:'https://www.w3school

Error: The style prop expects a mapping from style properties to values, not a string when onUploadProgress axios React

i have a redux action to upload image const uploadDokumen = (file) => async (dispatch) => { try { const data = new FormData() data.ap

Fetching Video(Mp4 format) Using Axios in React and displaying in HTML video

I was trying to fetch a video from backend in the form of byte stream and i was able to get video from backend. But i am unable to handle the video on front end

Fetching Video(Mp4 format) Using Axios in React and displaying in HTML video

I was trying to fetch a video from backend in the form of byte stream and i was able to get video from backend. But i am unable to handle the video on front end

Can't make Axios post request to Express server (CORS)

I've been trying to make a simple image upload form using react, axios and multer, but I can't figure out a way to deal with cors ! Here is my form (running on

Upload single image from axios to FastAPI: "Expected UploadFile, received: <class 'str'>"

I try to upload an image from my react-admin app to FastAPI using axios. The ImageInput component returns a File object which I cast to a Blob and try to upload

how to remove WebKitFormBoundary from uploaded file

I'm trying to upload a Webvvt file using multipart/form-data, and the problem is that when I send the file to api, the file contain WebKitFormBoundary header an

How to mock axios.create([config]) function to return its instance methods instead of overriding them with mock?

I'm trying to mock axios.create() because I'm using its instance across the app and obviously need all of its implementation which is destroyed by the mock, thu

This error happened while generating the page. Any console logs will be displayed in the terminal window

1st time its show this error I want to make an API call to my API route using Axios. When I run my code the first time its shows that error but when I refresh

Cannot find module 'axios'

I am coding a small program for Firebase Functions, using node.js. I always install my node modules using npm and i also installed axios using npm only. Howe