Category "axios"

Error: The type cast expression is expected to be wrapped with parenthesis when using get function

im new to javascript and im trying to make a get request to a youtube API. I have preconfigured a few things related to the request before making it using axios

Sending json through api post request

I'm currently struggling to send a JSON via post request into my controller to use it further by calling a stored procedure. Here is the post request using axio

Getting 400 bad request in Axios but in Postman status 200

I'm trying to request a Power BI API using axios. var configReportInfos = { method: 'get', url: `https://api.powerbi.com/v1.0/myorg/groups/${process.env

NuxtJS Auth Proxy

Then using nuxtjs/auth and nuxtjs/axios nuxt is ignoring my proxy configuration. In past I have used just axios for auth. Now I am trying to use the @nuxtjs/aut

How to mock VueAxios in jest

I want to test my Api functions which are on separate file outside vue component. Inside this methods i call api by Vue.axios, and i can't find the way to mock

Can't retrieve data from POST in django view

I have issue with retrieving data from POST in my django view. I send React form values with axios to my django backend. I believe data gets put into POST but s

Axios response.data return HTML instead of an object

I need help about Axios. I develop a SPA webapp on Laravel 6 (with package SPARK) and VueJS (version 2). On a Vue component, I want to retrieve datas from my b

H-Captcha can't verify captcha key/token

Here is my code: let result = await axios({ method: 'post', url: 'https://hcaptcha.com/siteverify', params: {

read:ECONNRESET with Axios

I've encountered read:ECONNRESET error while I was trying to some data through axios post. A configuration for Axios is const http = require('http'); const h

V-model and TinyMCE doesn't work together

I'm trying to get Vuejs and TinyMCE to work together. I use @tinymce/tinymce-vue package which is the vue integration for TinyMCE. I had followed all the instru

request formData to API, gets “Network Error” in axios while uploading image

I am making a POST request to server to upload an image and sending formdata using axios in react-native. i am getting "Network Error". i also try fetch but n

Axios Uncaught TypeError: Cannot read property 'map' of undefined

I'm trying to display data from my API in a React App with Axios. I've created a simple method that connects to the REST API. import axios from 'axios'; cons

Suggestions for rate limiting using Axios

I'm using react with axios for accessing api from cryptocompare. Api has limit of 15 call per second. Now after 15 api call I'm getting error of "Rate limit e

Python: FastAPI error 422 with post request

I'm building a simple API to test a database. When I use get request everything works fine, but if I change to post I get "unprocessable entity" error: Here is

React state not updating after a post request?

I'm trying to send a post request to my backend with axios, and my backend gets the values with no problem, but I want to set a state of (sent) to true when the

Laravel and Passport getting SQLSTATE[42S22]: Column not found: 1054 Unknown column 'api_token'

I've seen many posts about this error, but none of the solutions are working for me. I'm running Laravel with Passport which is working fine on my development s

Using React-Hook Form, How do I post data to my MongoDB in React Native

I am facing an issue where Im trying to post data to my mongoDB from the frontend using React Hooks on React Native. The problem is that Im struggling to get th

Cancelling Axios request in React when using React Router Switch

I'm a newbie building an App that utilizes React Router to switch between 3 different components that each utilize Axios to fetch data from an API. I am trying

Vue.js: Getting data from the api and passing it to a child component (simple example)

I want to make an ajax request using axios package on the parent component and pass the returned array to a child component so that it can iterate the array an

How to implement asynchronous middleware in Nuxt.js

I have a Nuxt middleware file that fetches the session from an external api. This session is used to set things such as locale, so it's important that it is fet