Category "backend"

Disable or hide EasyAdmin crud search bar

I have developped an online learning website with EasyAdmin as backend. Everything works fine, but I'd like to hide or disable the search bar on top of the crud

Send Response to one Room does not work (Nestjs & Socketio)

My goal is to emit to only one client by using the default room that is being created by socketIo. The room id and client id match. I checked that by logging it

How to get Digitalocean environment variable?

I set an environment variable in Digitalocean with token, but I don't understand how to use it in the code. I scrolled through the docs, but didn't get anything

GET method gives success but PUT method gives 401 despite same credentials

The problem Overview When getting products using a GET method everything works when trying to update a product using PUT method I get 401 unauthorized I use sam

Optimized way of restricting access to images in backend

I am working on an app that has some social network elements: users can create posts with images and they can share these publicly or with friends. I am now con

MySQL - Fetch millions of data in chunk with constantly changing data

Below is the schema of my table A. CREATE TABLE A ( NAME VARCHAR(255), CREATED_AT DATETIME DEFAULT CURRENT_TIMESTAMP, UPDATED_AT DATETIME DEFA

i cant directly going to login page with codeigniter 4, and using myth/auth

i tried to using codeigniter 4 and try using myth/auth, and i get a problem, if put restricted in my filters its not loading the login page public $aliases

How to extract jwt token payload when token is expired in python jwt

I am unable to extract JWT token payload after the jwt token expires in python jwt package. I am using flask api for backend development and the implementation

MongoDB aggregate and then flatten

FULL DISCLOSURE: I'm a MongoDB noob I'm dealing with a legacy DB structure. A part of my MongoDB looks like this currently: Events (_id, name (string), ...) Ord

How to disconnect a Stomp client Session from Spring

I know how to disconnect Sessions from Client Side, but I couldn't find a way to disconnect my session from my Spring Boot Backend. I've already seen the follow

I want to find the last object which i'm posting in my database without any condition but i can't find any method for that

Data.findOne({}).then((respp)=>console.log(respp, "find one")) Like I have this method this is returning First object and if I apply a condition then i can

getting error when sending files to backend react node js

I am getting error of undefined when i send a file from react to backend, i am unable to understand the error. i am sending a image which will be uploaded in cl

Error: Cannot find module. Please verify that the package.json has a valid "main" entry

As I'm creating MERN stack login-system with bcyrpt implemented, I have done 'npm install' and 'npm install bcrpyt --save' in my root folder for server to work.

Stripe API "No valid payment method types for this Payment Intent."

As you can imagine I´m currently setting up the payment API with using Stripe. Problem is, I´ve never done such thing before and am following the do

FastAPI server returns "422 unprocessable entity" - value_error.missing

from http.client import responses from random import randrange from tkinter.tix import STATUS from typing import Optional from urllib import response from fasta

post api pblm in backend

const newItem = { name, price, img, detail, email } fetch("http://localhost:5000/add", { method: "POST", header: { "content

How to have multiple Auth models in django

I have an application where I've two models both models have same fields client buyer I'm using separate models because client can also signs up as a buyer usin

What is the proper format for HTTP POST Dynamic Zone data with Strapi API?

I have a Strapi user collection that looks like this. I am trying to use the API to create a new user with the "AdditionalInfo" dynamic zone filled with "Stud

While testing API containing pagination in postman facing skip value error

I am using pagination middleware in my node js project but while testing api in postman it's throwing error skip value Followed the paginate docs but still no u

Custom keras loss function binary cross entropy giving improper results

Did anyoe have a convincing solution to make custom_binarycrossentropy work? I tried all possible methods (even making the whole training data size same as the