problem when accessing api with axios when backend is running?
api.js:14 GET http://localhost:8080/api/todos/todos net::ERR_FAILED 500 (Internal Server Error) [email protected]:[email protected]:[email protected]:[email protected]:[email protected]:50Axios.<computed>@Axios.js:[email protected]:[email protected]:[email protected]??clonedRule…e=script&lang=js:[email protected]??clonedRule…e=script&lang=js:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:5243 import axios from ‘axios’; const apiClient = axios.create({ baseURL: ‘http://localhost:8080/api/todos’, withCredentials: false, headers: { ‘Accept’: ‘application/json’, ‘Content-Type’: ‘application/json’ } }); export default { getTodos() { return apiClient.get(‘/todos’); }, createTodo(todo) { return apiClient.post(‘/todos’, todo); }, updateTodo(id, todo) { return apiClient.put(`/todos/${id}`, todo); }, deleteTodo(id) { return apiClient.delete(`/todos/${id}`); } […]
How can I cancel axios for developer tool
I try to transfer the existing data to proceed with publishing, but there are cases where the screen does not work because the API or DB is less transferred.
It sometimes results in infinite loading.
In order to solve this problem, the api work of the source was erased and worked, but this is inefficient.
So I’m trying to cut off the flow of api and just look at the screen, and I’m wondering if I can cut axios off from the developer tool.
I am using vue2.7, spring.
If you have any other ideas about this other than cutting off axios, please tell me.
Thank you