8,578 questions
0
votes
1
answer
26
views
unable to make changes on DB or admin after crud operation./formset
I am building a mid-level project called School-Admin Panel with Django. I have completed most of the segments sucessfully, but I am having an issue with the performance forest.
The formset loads and ...
1
vote
2
answers
77
views
ERROR 415 Unsupported Media Type In Postman
I'm trying to upload a property object (JSON) along with multiple images using multipart/form-data But Spring Boot keeps returning:
415 Unsupported Media Type
Content-Type 'application/octet-stream' ...
Advice
0
votes
9
replies
85
views
How to compare a custome Type to an object obtained from Request.body? - Typescript
I'm trying to verify if a parameter of the req.body respects the Type contraints that I set on the custom type
How can I, for example, compare that the content of req.body.conditioncorresponds with ...
0
votes
2
answers
94
views
Running `nodemon server.js` opens `nodemon.js` file in text editor instead of executing
I installed nodemon globally and locally I added it to the environment path. I tried to use flags but nothing works
One month ago (last time I used it), it was running completely fine. Now it's ...
2
votes
1
answer
72
views
Start a Tauri app which calls C function using sudo without password
I have made a Tauri app. This app uses C in the backend. The C file contains multiple functions. Some functions use the sudo command to get data. I have started this C file in the Tauri app by writing ...
0
votes
0
answers
28
views
agora media push apis to support passing text as a label
I am using these apis in create and update converter. We handle these from BE side.
we want to pass text to display participants names...etc
it can't be shown here that it's supported
I tried adding ...
0
votes
1
answer
43
views
File not reaching backend on Streamlit - stuck on uploading on backend (localhost)
I've been trying to upload a file to streamlit and it is getting stuck on the uploading part. It was working perfectly before, the LLM was connected and I was getting correct responses. Then I added ...
2
votes
1
answer
128
views
How to dynamically update only provided fields in PostgreSQL using Neon + TypeScript + Zod schema?
I’m working on a Node.js/Express backend using PostgreSQL (Neon serverless), TypeScript, and Zod for validation.
I have a Students table with columns:
id UUID PRIMARY KEY,
firstName TEXT NOT NULL,
...
1
vote
0
answers
104
views
Parameter 0 of method entityManagerFactory in PrimaryDataSourceConfig required a bean of type EntityManagerFactoryBuilder that could not be found
I am trying to configure 2 databases in a single spring boot application. So that I have configured 2 separate Config files for Postgres and Postgres vector DB.
@Configuration
@...
0
votes
0
answers
30
views
How does setting the cookies samesite attribute to strict affect a web application with the FE and BE on two different sub domains?
In my web app, I have whitelisted all the domains for CORS. I still need to set the sameSite and secure attributes for cookies. My frontend and backend are in 2 different sub domains. my microservice ...
1
vote
1
answer
58
views
Two API with same structure but when calling from postman one is working without sessionid and credential and another is not working
I have created two api's in my spring mvc project which have identical structure. But while calling using Postman or while hitting the APIs in browser/UI project, one is working without any credential ...
1
vote
2
answers
62
views
Candid UI not showing shared query method in Motoko
I'm building a simple Internet Computer dapp using Motoko and DFX version 0.28.0. My backend canister (dbank_backend) contains a checkBalance function defined as a public shared query:
import Debug &...
0
votes
0
answers
102
views
Laravel Sanctum API: Authenticated user is null causing 500 error
I'm new to Laravel and building a backend API system from scratch using Laravel + Sanctum (no frontend yet, just Postman for now). I'm trying to create a simple authenticated API where each logged-in ...
-1
votes
1
answer
55
views
set cookie header is available in network tab but cookie is not set
I had hosted the server on the localhost:3000 and frontend on the localhost:5173 when i send the request to the server i get the response in network tab.
using node.js in backend and react in frontend
...
0
votes
0
answers
56
views
Why doesn't my Login button work in React Native?
Login button in React Native doesn’t trigger fetch request or show any response.
When I tap the Login button, I expect it to send a POST request to my backend server, get a response, and show an alert ...
0
votes
1
answer
127
views
NestJS/TypeORM Multi-tenancy (Schema-based) - DataSource Inject & Repository Init Issue in Specific Service
I'm implementing schema-based multi-tenancy with NestJS, TypeORM, and PostgreSQL, following a pattern similar to https://github.com/thomasvds/nestjs-multitenants/tree/master.
Most services work fine, ...
0
votes
1
answer
79
views
i have a monorepo project. i have a used nx for this project
when i try to run the backend im facing this error in the terminal.the issue i m facing is when i merge code im not able to run the project because nx daemon
npx nx serve backend
NX Daemon process ...
1
vote
0
answers
43
views
Flask helper function not saving files to app.config['UPLOAD_FOLDER'] path
I'm working on a Flask application and have created a file_handler.py file to organize some utility functions. One of the functions in helper.py is supposed to save an uploaded file to the folder ...
0
votes
1
answer
69
views
Why is my registration still failed after Operation `users.insertOne()` buffering timed out after 10000ms?
<authController.js under backend> controller file
const User = require('../models/User');
const bcrypt = require('bcryptjs');
const jwt = require('jsonwebtoken');
exports....
0
votes
1
answer
152
views
How to handle dynamic origin in FastAPI
I'm implementing a FastAPI backend where I want to allow CORS requests only from a predefined list of default origins and dynamically loaded origins stored in the database.
However, when the frontend ...
-6
votes
2
answers
118
views
Goroutines does not return when error is raised in error channel
I'm writing a process monitor in Go that periodically collects information from /proc/ using multiple goroutines. Each goroutine sends errors to a buffered channel if it fails (for example, if the ...
0
votes
2
answers
71
views
Is it possible to replicate ASP.NET RouteAttribute functionality in a non-WebAPI project?
I'm currently working on a console application that essentially mimics an ASP.NET Web API.
Everything was going smoothly until I ran into an issue regarding route attributes.
What I'm trying to ...
0
votes
0
answers
66
views
Why do i keep getting bad request when trying to send GraphApi batch request
My goal is to send a batch request of with the conversation id so I could get all the conversations that the user have in their inbox , I tried to read the docs many times but I find their docs ...
0
votes
1
answer
35
views
Spring security 403 forbidden in login via roles
im quite new in spring jwt, i get the 403 forbidden when i login, i succesfully register all my users. this is
package org.example.gestionrendezvousmedic.configs;
import jakarta.servlet.Filter;
...
2
votes
1
answer
86
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 ...