8,700 questions
-1
votes
0
answers
16
views
How do I connect my backend communicate to my fronend?
I am working on my first full-stack project, where the backend consist on spring boot, postgress, etc. and the frontend consists of nextjs. Now, I always used reactjs and Firebase for the backend-like ...
0
votes
1
answer
31
views
How can I authenticate frontend requests to a custom API gateway using Appwrite sessions instead of JWTs?
I'm building a full-stack mobile application using Appwrite for authentication and backend services. The frontend communicates with a custom API gateway that proxies requests to various microservices.
...
-4
votes
0
answers
35
views
Postman backend API and Angular Application [closed]
I need help getting my angular application to communicate with my backend api. I need my product to look like the attached image. I currently am using postman that takes JSON data, and it works ...
0
votes
1
answer
29
views
the console says an post method is being transmitted but the method isn't actually activating
This is my code
import os
from flask import Flask, render_template, redirect, url_for, request, jsonify
from flask_login import LoginManager, UserMixin, login_user, current_user
from flask_sqlalchemy ...
0
votes
0
answers
39
views
Nest.js. Swagger. How to split swagger docs into 2 documents: for clients and admins
I'm using NestJS (v11) and @nestjs/swagger (v11.0.3).
I have a modular app structure where some controllers are intended for public clients (mobile app, frontend) and others are intended for admin ...
2
votes
1
answer
53
views
Why is flask sqlalchemy giving me an error "no such table: users"
import os
from flask import Flask, render_template, redirect, url_for, request
from flask_login import LoginManager, UserMixin, login_user, current_user, logout_user
from flask_sqlalchemy import ...
-4
votes
1
answer
32
views
Why is my DELETE Blog API returning "Blog not found" when I try to delete a blog with a reference to a User? [closed]
I am working on a REST API where I am trying to delete a blog document from my MongoDB database. Everything works fine, and the blog is deleted when I don't have a reference to a User in the blog ...
-1
votes
0
answers
68
views
Python says it has inserted row into DB, but it hasn't
I am working on a simple auth system for one of my projects.
I have a PostgreSQL database with 2 tables, "public"."app_users" and "public"."active_logins"
The ...
0
votes
0
answers
22
views
Integrating razorpay with accounts in single springboot backend [closed]
I have two apps with same backend which are separated by packageName.
So no i have two razorpay accounts for both these apps how do I integrate them in my single backend.such that when the user makes ...
0
votes
0
answers
34
views
Using hubDatabase prepare function throws server error
I am building an app using Nuxt 3 and deploying it to Nuxt Hub. I am using the provided database that comes with Nuxt Hub. Inside an api endpoint in the server folder, I runa query with the database ...
0
votes
0
answers
25
views
How to handle Prisma shared types in a monorepo setup
I have this setup of npm monorepo - apps/fe, apps/be and packages/common (from now on referred to as @common/types). On my BE I use prisma and have several enums inside schema.prisma. I want to have ...
0
votes
0
answers
40
views
Forbidden (CSRF cookie not set.): /517775/users/approve-decline/4
@method_decorator(csrf_exempt, name='dispatch')
class ApproveOrDeclineUserView(APIView):
def patch(self, request, org_code, user_id):
try:
organization = Organization.objects....
-3
votes
0
answers
41
views
What is an Advisor in Spring Framework [closed]
As the title says, what is an advisor in spring framework and what's the point of that? I am a bit confused in pointcut expression definition. Can anyone please explain me in easy words?
1
vote
1
answer
78
views
Hibernate N + 1 queries after explictly setting FetchType.LAZY
Being very concise:
I have the following use case for my app, where I update an entity named Turno (which represents a shift in a factory)
@Service
public class PausarTurnoUseCase {
private final ...
-3
votes
0
answers
27
views
I'm having trouble connecting to a MySQL database using Docker [duplicate]
I'm creating a full-stack study project to build a to-do list using Node.js for the backend, but I'm having trouble connecting to a MySQL database using Docker.
Error:
Server requests authentication ...
-2
votes
0
answers
22
views
Recommendations to implement Service bus or not [closed]
I am building a chatbot for 100 concurrent users. I have used Fastapi at the backend. The current thinking is that when the user submits a query, an endpoint is called which processes the query then ...
-2
votes
0
answers
21
views
On vicidial 11 calls are being dial but answer calls are not being forward to agents [closed]
I have installed vicidial version 11, calls are being dial and being connected with carrier but the answered calls are not being forward to agents.
I have try reconfigure conf.sip and reconfirm the ...
-1
votes
0
answers
51
views
How to Solve Node mailer error while using godaddy's email
So I was creating an otp authenticator component I had GoDaddy's email and when I try to send any email. It returns this error
Error sending OTP: Error: connect ETIMEDOUT 92.204.80.1:25
at ...
0
votes
1
answer
19
views
ConnectionTimeout for ktor/exposed backend concurrent requests
I have a ktor backend with JetBrains exposed framework for db access. I am running into a weird issue where my connection pool (using hikari for jdbc access) immediately fills up and times out ...
1
vote
0
answers
52
views
Why does Groq return "tool_use_failed" error when using instructor with a valid response model, even though function call output looks correct?
I'm deploying a Python FastAPI app on Render, and I'm using the instructor library to parse LLM responses into a Pydantic model using Groq's API. Locally, everything works fine, but on deployment I ...
-2
votes
0
answers
57
views
Express Server Closes Immediately After Starting — No Error, No Crash
I'm running into a weird issue while setting up an Express.js app. I'm using Node (with "type": "module") and the server logs Server is running on port 3000 correctly, but ...
0
votes
1
answer
76
views
Cannot connect to Azure signalr from my python backend code
I want to send a message to my Azure SignalR using. I am using 'CommunicationIdentityClient' to get the acess token. But when I try to do
identity = client.create_user()
I am getting 403 error.
How ...
1
vote
1
answer
46
views
Zoom Integration "Invalid Signature"
Invalid Signature issue
What I’m Trying to Achieve
Register/login users via my custom backend.
Create a Zoom meeting using the Zoom API.
Start or join the meeting using the Zoom Meeting SDK in the ...
2
votes
1
answer
127
views
FATAL: invalid value for parameter "TimeZone": "Asia/Saigon"
During backend development for a Java application, I set up a PostgreSQL database connection using JDBC in DatabaseConnection.java. I then ran a simple backend app to test the connection through ...
0
votes
0
answers
54
views
Infinite redirection loop for Django backend (hosted on railway) application (hosted on cloudfare)
tl;dr I'm getting an infinite loop when I request my django backend, and I don't know how to fix it
I'll give some context to what's happening:
My django backend works on localhost (I used nginx as a ...
2
votes
1
answer
52
views
Mongodb & mongoose :: Cannot call create() with a session and multiple documents unless ordered: true is set
I’m using [email protected] with [email protected]. I’m trying to use the create() method in Mongoose along with a session for transaction support. However, when I try to insert multiple documents, I get ...
-3
votes
1
answer
38
views
Local DB vs. Payment Provider Records: Transaction History Strategy
So i am in the process of integrating a third party payment provider in my app.
I am at a cross road, seems to me that anytime a user want to see their transaction history i should hit the third party ...
0
votes
1
answer
44
views
Will my IDENTITY primary key run out in a large location tracking table?
I’m working on a location tracking system using SQL Server, and I store location updates for employees every few seconds. Here’s my table:
CREATE TABLE tblAppLocation
(
id INT PRIMARY KEY ...
-1
votes
1
answer
37
views
Multiple docker questions [closed]
Ok, I have searched through the Internet but I am not able to find a good answer to my current situation.
Got a project divided into three separate sub-folders, to know: database (postgresql), backend ...
0
votes
1
answer
141
views
How can I detect the age recommendation for accessing a certain website? [closed]
Introduction to the problem:
Currently, my app has a feature that can detect whether a page/profile was found and if the respective link can be accessed in the first place. Now, I am trying to make a ...
-4
votes
1
answer
70
views
How to properly connect PostgreSQL with Django? [duplicate]
I'm working on a Django project and using PostgreSQL as my database. I updated my settings.py as follows:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'...
0
votes
0
answers
15
views
How to get only edited values in react formik?
I was trying to make edit request to BE(Back End) and I don't have to give not edited values to the BE.
const handleEdit = async (values: typeof initials) => {
--------------------------------...
0
votes
1
answer
23
views
How to make a transactional Services when developing a backend with Onion or similar architectures?
I'm developing a backend where controllers call services, and each service is responsible for handling an entity(table) in SQL. Now, what if I want to use a transaction, basically roll back previous ...
1
vote
1
answer
69
views
Go (GoLang) Gorilla/Mux server returns 404 when there is an empty string between two slashes in http path
This is my web server code ::
package main
import (
"fmt"
"log"
"net/http"
"github.com/gorilla/mux"
)
func FooHandler(w http.ResponseWriter, ...
0
votes
1
answer
63
views
How do I properly connect my sveltekit front end and PHP backend with Apache?
I managed to create a front-end using svelte, and I have a backend which includes an api.php file, a db.php file (accesses the database) and my create.sql. that's it.
I cannot for the life of me get ...
0
votes
1
answer
41
views
WebSocket onopen not triggering in browser despite 101 Switching Protocols and server-side connection
I'm trying to establish a WebSocket connection using Fastify and @fastify/websocket on the backend, and vanilla HTML/JS on the frontend. The backend connection is confirmed (I see the WebSocket ...
1
vote
0
answers
47
views
Argon2 always returns false
I create a user on the login page and hash this password with Argon2 but when I compare it, it does not match the password. The hashed password is shown in the database and I can also see the plain ...
0
votes
3
answers
48
views
Why is my server not logging a login session?
For some context: I'm trying to make a basic login system. At the moment, signing up works with no problems. Logging in also seems to be okay, it makes a connection with the database properly - ...
1
vote
0
answers
54
views
Krakend suddenly returns 401: “[JWTValidator] Unable to validate the token: no Keys have been found” with Keycloak
I'm experiencing an issue with Krakend and Keycloak where JWT validation suddenly fails, and I start receiving 401 responses. The error in the logs is:
[JWTValidator] Unable to validate the token: no ...
0
votes
0
answers
76
views
why this scala code would cause stackoverflow in spark?
Sometimes when code runs at this function (resultSaver.saveResult) will cause stackoverflow. What's weird is that this error appears by accident without changing any code. I tried serialize some ...
1
vote
2
answers
90
views
Is It Reasonable to Simplify Product Variant Design Using Notes Instead of Complex Relations?
I'm building an application where product variants are intended to be handled as physical products already prepared and listed manually. Instead of using a conventional approach with complex relations ...
0
votes
0
answers
18
views
Socket IO Invalid WebSocket frame: RSV1 must be clear ( permessage deflate )
require('dotenv').config();
const Agent = require(`./Models/agentModel`);
const logger = require(`./logger`);
const adminRoom = 'admin-room';
const socketapi = {
io: null
};
function setupSocket(...
0
votes
1
answer
257
views
Failure to connect to supabase from Docker container [closed]
I made a web back-end in Rust using Axum and Supabase as my choice of DB. I made a Docker image out of it and tried running a container, but I keep getting this error:
Failed to connect to the ...
0
votes
2
answers
143
views
JWT Token/Cookies Not Sent from Frontend (Vercel) to Backend (Render) – Getting 401 Unauthorized
I'm a self-learning web developer, and I recently deployed my backend on Render (free tier) and my frontend on Vercel. The stack includes Node.js, Express, MongoDB, WebSockets, and authentication is ...
0
votes
1
answer
34
views
Shopware 6 - Registering EntityDefinition in services.xml error
I'm following:
Shopware 6 - Developer Training Basic (EN)
From:
https://academy.shopware.com/courses/take/shopware-6-developer-training-english/lessons/9225171-entities
Service "Shopware\Core\...
2
votes
0
answers
25
views
Receiving files using Java23 and spring-webflux
I'm implementing a function which receives an excel file and parses its content then writes it into postgresql.
Considering requirment for a good througput for handing request, I decided using spring-...
1
vote
1
answer
56
views
Validatable - multiple rules for single field
I have these Validatable rules on my User model for user creation:
extension User.Create: Validatable {
static func validations(_ validations: inout Validations) {
validations.add("...
1
vote
0
answers
25
views
Unable to Broadcast message to connected clients in websocket server
<?php
namespace PhpHttpServer\WebSocket;
use PhpHttpServer\Core\Request;
use PhpHttpServer\Core\Response;
class WebSocketServer implements WebSocketHandlerInterface
{
private $shmId;
...
0
votes
2
answers
143
views
Why are my global declarations in index.d.ts not being recognized in my TypeScript project?
I'm working with a TypeScript project where I have two files:
index.ts - This file contains the main application logic.
index.d.ts - This file is where I declare global types.
In my index.d.ts, I'm ...
0
votes
1
answer
77
views
Reverse Proxy to Golang backend not working (nginx)
Been working on a small web app and wanted to try out nginx, and Golang for my backend. Pretty new to Golang as this is my first Golang web project. Anyway, I'm having a problem with reverse proxying ...