27,319 questions
-5
votes
0
answers
59
views
TypeError: Cannot read properties of undefined when accessing object property in JavaScript [closed]
I am trying to access a property from an object in JavaScript, but I am getting the following error:
TypeError: Cannot read properties of undefined
Here is a simplified version of my code:
let user;
...
Advice
0
votes
5
replies
55
views
How to validate the request and return errors properly in a REST service?
A client sends a request to the server, e.g. POST /companies, where the request body looks like that:
{
"name": String (unique),
"ownerId": Long (fk)
}
When I validate the ...
2
votes
2
answers
111
views
Right way to throw errors using $PSCmdlet.ThrowTerminatingError()
What's the right way to throw a generic error using $PSCmdlet.ThrowTerminatingError()?
My (possibly flawed) understanding is that inside an advanced function, such as one using the CmdletBinding, we ...
1
vote
2
answers
123
views
Best Practices for try-catch blocks inside the Get part of an indexer [closed]
I've been creating a basic version of a LinkedList class mainly for the sake of an assignment (though also to gain a better understanding of it all). I've gotten to the stage where I'm writing error ...
0
votes
1
answer
137
views
Propagate errors across task boundaries in an ergonomic way
I am writing a small cli application to learn rust and did start my error propagation with a lot of Result<_, Box<dyn std::error::Error>>. This is quite flexible and works nicely.
Now I ...
Best practices
0
votes
2
replies
94
views
How to do a proper error handling in typescript?
This is my first attempt at implementing proper error handling in my project. I realized that as my project grows in complexity, the lack of structured error handling makes development much more ...
Advice
0
votes
7
replies
94
views
Can a user cause a SyntaxError?
I am currently learning the basics of python and I am the beginning of my programming journey. I was doing a course and came across the following problem.
I initially picked TypeError and ValueError ...
0
votes
0
answers
30
views
Feedback Loop using LLM call
Im building a platform which ends up allowing users to make use of mutliple tools to create meaningful outputs. One of them is manim illustration generation, this makes an llm call and generates code ...
Best practices
3
votes
10
replies
182
views
Does malloc failure imply ENOMEM?
If I run malloc and it fails and returns NULL, can I assume that errno is set to ENOMEM? Of course, there are probably hundreds of embedded systems or otherwise slightly non-standard implementations ...
0
votes
0
answers
56
views
Debugging error and success notices prior to parsing data
I have a custom app that I am developing but in the process of testing each step of the development process, I am running into trouble with the csv and xlsx notifications when uploading. I am getting ...
1
vote
1
answer
69
views
GluonTS DeepAREstimator fails to load checkpoint in PyTorch 2.6
I am currently working on a project where I have to use GluonTS (the DeepAREstimator and DLinearEstimator). At the beginning it worked well. But now, even when I use the example code from the GluonTS ...
1
vote
1
answer
61
views
How to disable the error overlay (red bar) in Nuxt 2 when receiving bad responses from backend?
I'm working with a Nuxt 2 application, and whenever I receive a 4XX or 5XX error response from my backend API, a red error "loading" overlay bar appears at the top of the application.
I want ...
1
vote
1
answer
123
views
I want to delete rows from a Named Range that contains several items listed in MyArray. But I get an error if not found
Sub DELETE_Db_ROWS_THAT_CONTAIN_ITEMS_IN_AN_ARRAY()
Dim MyArray As Variant
MyArray = Array("Reinvest", "DBS", "WDL") 'Delete all rows containing these items
...
0
votes
0
answers
71
views
ElevenLabs SDK not not showing errors (elevenlabs/react : v0.13.1)
I am developing a agent in my platform to have conversation with a user. For that i am using the signed URL api provided by the elevenLabs platform to generate the signed URL after that i am using the ...
2
votes
1
answer
157
views
"That Function Isn't Valid" for unqualified "Message" UDF in Excel
Question
Why do I get this pop-up error for my UDF, only when it is
named Message()
and called within an Excel formula
and not qualified with the module name.
I have found only two SO questions that ...
0
votes
0
answers
71
views
Snowflake CLI Invalid connection configuration. 250001: 250001: Could not connect to Snowflake backend after 2 attempt(s)
I am trying to run snow git execute @advanced_data_engineering_snowflake/branches/main/forums-analyes/pipeline/data/load_forums_data.sql -D "env='STAGING'" --database=COURSE_REPO --schema=...
0
votes
1
answer
49
views
Apex trigger works for single records but hits governor limits during bulk insert/update
I’m a Salesforce developer working on an Apex trigger that updates contact records based on related account data. The trigger behaves as expected when records are created or updated one at a time from ...
5
votes
1
answer
227
views
how to catch Java exceptions using a C++ launcher?
I am writing a client application using Java Swing. I am quite confused about how a launcher can capture JVM crash information when the JVM crashes.
The hs_err_pid[PID].log file is not generated. I ...
-1
votes
1
answer
72
views
Mathematica looping lstol
My program loops through a large number of parameter combinations and performs FindRoot on functions of those parameters. The results of the FindRoot calls are used in additional computations. At ...
Advice
1
vote
11
replies
6k
views
How to handle generic type changing as you move up the call stack when using the result pattern
I am learning about different ways to handle errors in .NET REST APIs. I saw the result pattern being mentioned, and I'm now trying to implement it in a personal project.
However, I can't help but ...
-1
votes
2
answers
170
views
How can I implement consistent typed error propagation in C# without scattering try/catch across layers?
I have a C# application with multiple layers (controllers, services, domain logic, and background workers). Error handling has become inconsistent because many methods contain their own try/catch ...
Advice
0
votes
3
replies
90
views
Handling and error checking with RxJs HTTP calls
I'm working with Angular 21 and I've added an interceptor like this:
export const httpErrorInterceptor: HttpInterceptorFn = (req, next) => {
return next(req).pipe(
catchError((error: ...
Tooling
0
votes
0
replies
55
views
VS Code: Display error gutters for folded code
Using VS Code, I usually fold/collapse all functions & code using Ctrl + K + 0 except for the function(s) I'm currently editing. However, if my changes induce errors in other parts of the code, I ...
2
votes
2
answers
239
views
How to bubble up `std::unexpected` values when the expected types are different?
This question is very similar to "How can we forward a failed std::expected up through the call stack". Given a chain of function calls that each return std::expected values, errors should ...
-1
votes
1
answer
73
views
suppress onnxruntime warnings
I have a node.js project doing speech-to-text transcription with the xenova/transformers models. My project shows a lot of warnings - how do I suppress the warnings to log only errors?
I've tried ...
0
votes
1
answer
112
views
Loading images in HTML – Differentiation between no response and error response
I'm building a kind of gallery app. Users are adding images by inserting URLs into the database and the HTML page is then hotlinking those. Obviously, because of link rotting, the gallery is full of ...
1
vote
0
answers
48
views
IdempotencyBreachExceptionHandling in service used in kafka listener
I’m encountering an issue with possible idempotencyBreachException in a service used by Kafka listener.
I’m not entirely sure how to handle this situation correctly. I have a lockExecutor that locks a ...
1
vote
1
answer
72
views
how to make socket server propagate exceptions up to TaskGroup where they're started from?
How to make exceptions thrown from a socket server running in a task group task be propagated up to its parent TaskGroup? With given example, I'd expect to see the error raised from ...
-4
votes
1
answer
82
views
I tried everything and I just wanna toggle my elements [closed]
I'm doing a mini project for a coding bootcamp and I'm trying to toggle elements.
I have a form on my page that I want to make invisible when you submit it, so that the rest of the page shows. It isn'...
1
vote
1
answer
294
views
Very long errors when attempting to save flows in PA Cloud
Power Automate (Cloud) lately has been having trouble properly displaying error messages. Instead of the errors being parsed for display, an incredibly verbose piece of JSON is displayed (sometimes ...
1
vote
1
answer
417
views
Handling LangGraph ToolExceptions in a REPL
I have a LangGraph agent that is supposed to interact with the user in multi-round conversations and perform modifications to a kubernetes environment. I am using an external Model Context Protocol ...
1
vote
1
answer
113
views
HTTPError: 400 Client Error: Bad Request for url. Plot an Ensemble of CMIP6 Climate Projections — C3S Training
I am following the code from this tutorial.
https://ecmwf-projects.github.io/copernicus-training-c3s/projections-cmip6.html
When I type:
# DOWNLOAD DATA FOR HISTORICAL PERIOD
c = cdsapi.Client(url=...
0
votes
1
answer
84
views
How can I use Rails internal error reporting to swallow the error in production but not in test or development
If I use:
Rails.error.handle do
my_possible_error_code
end
The possible error is swallowed and never raised.
If I use:
Rails.error.record do
my_possible_error_code
end
The possible error is ...
1
vote
0
answers
192
views
Vs code with Qt6, ERROR qt.qpa.plugin: Could not find the Qt platform plugin "windows" in "C:\tools\vcpkg\installed\x64-windows\Qt6\plugins\platforms"
I am new in C++ and Qt, I want to develop a simple app to practice C++. I am developing this simple app on VS Code using Qt6. Any time I try to run a simple code like the below one, this error message ...
0
votes
0
answers
32
views
Workaround to possible bug in Powershell 5.1.26100.6899 with Select-string -path
When using select-string to find if certain contents are in a file, if the file doesn't exist, -erroraction silentlycontinue appears to be ignored.
Example:
select-string -path "C:\temp\Test.txt&...
1
vote
1
answer
212
views
Should I store Stripe Subscription details in local DB or query Stripes API to determine if a user is subscribed?
I have the following requirement.
A website (lets call it Website A) where I sell subscription plans for my SaaS
Payments are handled with Stripe
I am using an authentication service (Auth0) so users ...
-3
votes
1
answer
101
views
Usage of tap({ error }) vs. catchError for side effects [closed]
In Angular/RxJS, when should you use tap({ error }) and when catchError for side effects? How do you best separate the two logically or combine them?
For example, does resetting the UI to its previous ...
1
vote
1
answer
142
views
R package loading error - .onAttach failed in attachNamespace()
SEE FINAL EDIT FOR PARTIAL WORKAROUND
I am trying to use the marginaleffects package in R, but when I call:
library(marginaleffects)
I get the error:
Error: package or namespace load failed for ‘...
0
votes
0
answers
151
views
New dbt Prehook Depreciation Syntax?
I have a prehook in the config section of my model. I don't want it to be part of the project yml, just in my model query itself. It's been working fine up until this week where I started getting ...
-2
votes
1
answer
94
views
How to automatically refresh access token when receiving 403 errors in Redux Toolkit async thunks? [duplicate]
I'm building a React application with Redux Toolkit and need to handle token expiration automatically. When my access token expires, the server returns a 403 error, and I want to automatically refresh ...
1
vote
1
answer
142
views
PPP_support.h error() function terminates program without printing custom message
I'm working through Bjarne Stroustrup's "Programming: Principles and Practice Using C++" and using the PPP_support.h file from the official website https://www.stroustrup.com/PPP_support.h
I ...
1
vote
1
answer
98
views
prevent PHP from using ellipses (...) in the paths of INCLUDE statements in error messages
I have a .php page that generates a Fatal error:
...
#2 [path1]/header.php(22): include('/Library/WebSer...')
#3 [path2]/index.php(4): include('/Library/WebSer...')
...
(where I've substituted [path#...
2
votes
1
answer
81
views
Terminating Error is not showing in Transcript
When I run the following PowerShell code:
Start-Transcript
try {
throw 'I want to log this message...'
}
finally {
Stop-Transcript
}
The message does not show in the transcript file.
However,...
0
votes
0
answers
87
views
How to distinguish an OpenAI API "quota exceeded" 429 from a standard rate limit 429?
I'm integrating the OpenAI API into my application and keep encountering a 429 error with the message "You exceeded your current quota, please check your plan and billing details".
I ...
0
votes
0
answers
70
views
How to override traits error response structure in raml
There is a trait defined for error response which has all error codes but for few resources I want to update a separate error response for few error codes like 400,403. I defined the 400 error data ...
0
votes
1
answer
201
views
How to fix this Python script error with win32com outlook app
I'm following a video on youtube on creating a new mail with python. But I'm getting error. Am I missing something? My goal is to create a new mail and insert images from a folder into it. The first ...
0
votes
1
answer
72
views
Is there a way to have an angular component throw an actually fatal error?
In our application, there are times when we the code isn't correct and we'd like to fail fast in that case. Say a component relies on a core configuration to function, but that configuration hasn't ...
1
vote
1
answer
599
views
Supabase Error: "AuthApiError: Request rate limit reached"
I've been working on a project on Next.js 14.1 using Supabase.
I also use Supabase Auth for session and cookies storage. There is an error that happens really often and I haven't found a real solution ...
0
votes
2
answers
110
views
Why does the rust compiler produce an error for type T in Result<T, U> if the block of code only executes on is_err?
I am trying to check if a value in a Result from a Rust function is an Err, and if so, print it out. However, when I run this, Rust gives an error that looks like it was expecting the Ok type.
MWE:
fn ...
0
votes
0
answers
57
views
NetSuite "RESTlet" errors are serialized as invalid JSON sometimes
I've been working with a "RESTlet" for a NetSuite installation. The RESTlet works fine, but it's based around some SuiteQL calls (SQL, basically), and while doing updates and testing I ...