Questions tagged [backend]
For questions involving the data processing components of a system. These components are typically called to from the user interface or business layer components, rather than interacting directly with the end-user.
backend
8,860
questions
0
votes
0
answers
4
views
How to Handle Timezones and Ensure Date Consistency in a Multi-Timezone Application?
In our application, we manage data from multiple timezones, and we need to ensure that date consistency is maintained across the entire system. I have a few questions regarding best practices for ...
-1
votes
0
answers
29
views
JWT expires after refreshing page
I created a authentication system and thus was setting a JWT token in a cookie. However when I refresh the page it is getting deleted, even though I am setting it's expiry to be 24 hours.
jwt.sign(...
0
votes
1
answer
27
views
Unable to send a local image that isn't under wwwroot to openai using its new .NET library
I have an ASP.NET Core 6 Web API with the new official library from OpenAI (https://github.com/openai/openai-dotnet).
What I'm trying to do, is to use a local image file to OpenAI. The file isn't ...
0
votes
0
answers
33
views
How to debug HTTP 400 Bad Request errors in django?
I have an app with React frontend and Django backend. I'm trying to make a POST request from my react client but I get "Bad Request" error. I checked my request url and it matches with my ...
0
votes
1
answer
70
views
C# Problem with CancellationToken and Queue
I have a queue that contains items that I pass into a method to download something.
I would now like to ensure that a download that I want to cancel is also canceled. At the moment ALL downloads are ...
0
votes
1
answer
27
views
req.headers.auth is undefined In jwt and express js
I'm new to use jwt library ..
So I made a login form and if it success it generates token and verify but it generates token and respond that token , but I can't get that token in req.headers....
1
vote
1
answer
48
views
go.mod file getting updated when running go mod tidy
I have the following go.mod file. I'm unable to run the module as the compiler in VSCode asks me to run go mod tidy. When I run go mod tidy my go.mod file gets updated with go version getting bumped ...
-1
votes
0
answers
11
views
Backend error in MERN stack any one have solution? [closed]
node:internal/errors:496
ErrorCaptureStackTrace(err);
^
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
at new NodeError (node:internal/errors:405:5)
at ...
-3
votes
0
answers
30
views
Multiple User's are not being able to Connect to the WEBSITE [closed]
There is a problem in my backend that multiple users can't access the website at one's. If User1 login and a User2 arrives at the same time the 2nd User is seeing the interface of User1.
So, What ...
0
votes
0
answers
12
views
Uploading files using Elysiajs and save it to mongodb
I'm new to elysiajs and trying to upload files using multer and elysia, but its not working for me
i tried to add a beforehandle and afterhandle but it's still not working ,
..............................
0
votes
0
answers
32
views
How To Handle Lost Data Packets In TCP?
What are the proper ways to handle the TCP data packets lost during the transit?
I'm developing an instant messaging application with real-time chat feature. I rely mainly on TCP (Transmission Control ...
-1
votes
0
answers
14
views
express js urls calling same route.get() [closed]
"use strict"
const express = require("express")
const router = express.Router()
require("dotenv").config()
const current_file_version = process.env.CURRENT_APP_VERSION +...
-1
votes
0
answers
20
views
Is it possible to write purely oop code in express in typescript? [closed]
I was trying to write pure oop code in the express backend as I am using typescript but I was confused that is it possible to use the pure oop in my backend ?
I tried to learn using oop but got no any ...
-3
votes
0
answers
37
views
Error when trying to access property from MongoDB [closed]
When I console.log(entry), it outputs:
({
_id: new ObjectId('669c834c6e93a548837c6572'),
shortId: 'NpreYDMaH',
redirectURL: 'amazon.in',
visitHistory: [],
createdAt: 2024-07-21T03:41:00.236Z,
...
0
votes
1
answer
62
views
What is wrong with my GET and PUT test commands?
For my CRUD in Django the POST and DELETE tests are working:
curl -X POST http://localhost:8000/user/ -H "Content-Type: application/json" -d "{\"username\": \"john_doe\&...