Questions tagged [error-handling]

0 votes
2 replies
How to access psycopg2 error wrapped in sqlalchemy error
I'm uploading a pandas data frame to a table in Postgres using SQLalchemy and psycopg2. How do I access the psycopg2 error that is within the SQL...
5 votes
3 replies
How to centralize exception handling in multiple methods of an API
This is a plain Java 8+ question, no frameworks used. We are producing an API for a higher layer which deals with the presentation layer among o...
asked 4 months ago
0 votes
0 replies
How can I manage an error on media player?
I'm looking for a method to avoid the stop of the application. I have a media player, sometimes when it load the video file my application stops....
asked 4 months ago
0 votes
0 replies
How to customize error handling in flask rest-plus
I have an API endpoint, I used Flask, Flask Rest-plus, to parse request I used request-parser. The problem is when I send a POST request to regi...
0 votes
0 replies
How to announce failure when inside a catch-all statement?
Unfortunately, some of the code base I have to work with and unable to change right now looks something like this: while True: try:...
asked 4 months ago
0 votes
0 replies
Using Axios interceptors to regroup Error responses to Client?
I am currently trying to handle error from an api call made with axios. How can I avoid doing this for each call ? switch (error.response.status...
asked 4 months ago
-1 votes
0 replies
A loop says I have 50 or more errors
I am working in R, using MASS to create multivariate distributed vectors. I am trying to create 1000 values for Y, which need to be computed by...
3 votes
1 replies
Handling the “Error in x[, 1] : incorrect number of dimensions”
I've downloaded stocks data with the getSymbols function and one of the downloads failed. So I managed to get around that as you can see in the m...
asked 4 months ago
0 votes
1 replies
Implementing custom WARP loss function in Keras/Tensorflow with error: LookupError: No gradient defined for operation
I am creating a custom loss function - I have made others before this one, which work fine. However, I am running into an error on the gradients:...
0 votes
2 replies
How to skip the rest of the tokens in a line after an error in Bison
I'm writing an application for an assignment that uses Flex and Bison to determine if a statement is valid or not. After detecting an error in a...
asked 4 months ago
0 votes
1 replies
Exception in thread “main” java.Lang.NullPointerException; unable to identify problem [duplicate]
This question already has an answer here: What is a NullPointerException, and how do I fix it?...
asked 4 months ago
1 votes
0 replies
Handling 'Input string is not a valid number' errors in json deserialization
Using Newtonsoft.Json, I need to deserialize a json which contains the number '2.696539702293474e308' which is their way of expressing a NaN the...
3 votes
1 replies
Angular, error interceptor, retry the original request on different url
I started working with Angular a few months ago on a new project but now I need to write a more complicated error interceptor which will detect w...
0 votes
0 replies
get npm call errors from batch script
I've a batch script to deploy my Angular 7 app. This batch runs a npm command. Some time this command fails (because there are some errors in the...
asked 4 months ago
1 votes
0 replies
how to handle the mysql error in nodejs?if the result is an empty array?
i have a nodejs code given below. The sql query works perfect when i gave a valid data, if the input is not available in sql it will return a nul...
asked 4 months ago
-1 votes
0 replies
Resource punkt not found [duplicate]
Updated answer:NLTK works for 2.7 well. I had 3.2. I uninstalled 3.2 and installed 2.7. Now it works!! I have installed NLTK and tried to downlo...
asked 4 months ago
0 votes
2 replies
Why isn't 'error' variable reassignment functionally scoped inside of catch{} block?
I am working with try-catch blocks in JavaScript and have run into some variable scoping behaviour I don't completely understand. I understand...
1 votes
0 replies
WebClient's bodyToMono on Empty Body Expected Behavior
What is the expected behavior when WebClient bodyToMono encounters an empty body? In my specific example we are checking the status returned from...
-2 votes
0 replies
Monolog: Logging PHP engine errors, Bad HTTP requests, Timeouts
I am using Monolog in a php project to log errors. I successfully have it working to log certain things such as user logging in or out, bad DB re...
asked 4 months ago
0 votes
0 replies
non-conformable arrays MGCV GAM
I am running a GAM model in the mgcv package and trying to allow for random intercepts using s(x, bs = "re" Whenever I run the model I get the e...
asked 4 months ago
0 votes
1 replies
How can I solve the error “Dataset was not found in location US” in BigQuery?
I'm trying to run some tests with Google BigQuery to calculate data from my Google Spreadsheets. When trying to run the code, I am getting the er...
0 votes
0 replies
Error reporting not helpful for large project structures
Basic problem: When GraphQL throws errors, it lists the line number which is calculated by going through the files in alphabetical order. Exam...
0 votes
0 replies
catchError with throwError fails jasmine test with Uncaught [object Object] thrown message
I'm creating a custom error handler for my angular app. I have this component calling a service method, which does a http request and returns an...
0 votes
1 replies
Catch JIT Errors in Visual Studio
I am trying to write any errors out our users receive in a vb.net application to a log file and I was wondering if there is any way to catch JIT...
0 votes
1 replies
Why are my error messages defined on a schema static method not showing up even though the error handling is apparently working?
I've defined a static method on the schema that is defining the structure of User documents in my mongodb database. The method .findByCredentials...