Skip to main content

All Questions

Tagged with
1 vote
0 answers
626 views

Problems with API return using the Axios library in NextJS

I have a problem and I can't solve it in time. Who knows, maybe someone can help me. I'm testing an application made in DJango Rest Framework (back-end) and NextJS (front-end). The problem I will ...
Saulo Lago's user avatar
0 votes
1 answer
73 views

Cant get value in Vue from data

I am pulling data via an API and it appears in my vue console but when i try and pull it into my markup nothing displays? clicks:"27,577" earnings_per_click:"257.11" orders:"...
jord49's user avatar
  • 572
0 votes
1 answer
30 views

Javascript Capture Form Values and Send via Api

I have a subscription form on my website. I'am capturing the email address form form and trying to send them via api. When I run the I'm getting the error below: "Access to fetch at 'https://...
Gökmen Bekar's user avatar
1 vote
0 answers
94 views

Mongoose:Error when send a second request on the server

I'm making an API for my app, the app is in MERN stack, I make a separate Database for every account and its information (every account along with it's info is in a separate DB so each DB for each ...
Quiet Coder's user avatar
0 votes
1 answer
43 views

post name, email and role in django backend, react frontend error 400

i want to the admin to post name, email and role of a user using frontend, and its stored in backend of django, please note that i dont want the admin to store the password, the user will later on add ...
Maryam Naveed's user avatar
0 votes
3 answers
345 views

Why doesn't el.scrollIntoView() scroll to the specified element?

There is a list of posts that is generated as follows: async function getPosts() { let res = await fetch('./api/posts'); let posts = await res.json(); const postList = document.querySelector('....
Vladikslavus's user avatar
0 votes
0 answers
266 views

Perform CRUD operations from a custom website with javasript using the Microsoft 365 Dataverse API

I'm here for some help, I was reading the documentation about the dataverse API but I'm not sure how to implement it on the web, I've searched for guides but the only thing I've found are comments ...
Gekyo's user avatar
  • 11
1 vote
0 answers
203 views

I'm trying to deploy my API in fly.io, but I want to deploy my html/css/scripts too (I used my API in they). How can I make it?

Well, I've made an node express API, and now I'm trying to deploy it on fly.io. The API deploy is well working, but in same folder of API i got another one with HTML/CSS/js files and I'm trying to ...
jnx's user avatar
  • 11
0 votes
1 answer
34 views

Sort by value of multiply field a and field b in mongodb

I have farm collection that has apy and liquidity. I want to get top 10 results by order of value of apy * liquidity I tried like this. var data = models.farm.find().sort({ $expr: { $multiply: ["$...
Li 1001's user avatar
  • 75
0 votes
1 answer
37 views

How do I make data from a fetch display properly?

I'm trying to fetch data from three different endpoints which works, but when getting the name of the episode "undefined" is returned instead. I'm using the Rick and Morty API for this ...
alessi.gg's user avatar
0 votes
1 answer
502 views

How to serve JSON file via React without NodeJS?

I am using React without NodeJS. I created it using npx create-react-app my-app I want to serve a static JSON file or its content (I already have the file in the project) via a link so that it can be ...
holydragon's user avatar
  • 6,570
0 votes
1 answer
40 views

how to check why an API fill a variable

I have been trying to get the data from this API to display in the console based off of the name of the college I input, but variables aren't working and aren't getting any data from the API to store. ...
user avatar
0 votes
2 answers
321 views

Fetching data from an API using the Fetch API in HTML with JavaScript

Hey I am struggling to fetch an API. I just don't get it to work. <!DOCTYPE html> <html> <head> <title>Sponsorkliks API Table</title> <style> table { ...
Jordy's user avatar
  • 3
-1 votes
1 answer
102 views

where is problem in code axios.get "response.data"?

Set data: export const setIngredients = (ingredients) => {return { type: actionTypes.SET_INGREDIENTS,ingredients : ingredients}} Get data: export const initIngredients = () => {return ...
reza eibakabadi's user avatar
0 votes
2 answers
33 views

How to fix 'TypeError: Cannot read property 'map' of undefined' when using Axios to fetch data from an API in ReactJS? [closed]

when getting req from API .. res => this enter image description here when added to my project like that enter image description here send me this error enter image description here enter image ...
louy's user avatar
  • 11

15 30 50 per page
1
2 3 4 5
823